You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue in a larger project where toml sometimes reports incorrect spans for missing fields declared at the top level.
Below is a minimal recreation of what I think is the same issue.
Cargo.toml:
[package]
name = "toml-span-bug"version = "0.0.0"edition = "2021"publish = false
[dependencies]
serde = { version = "1.0.178", default-features = false, features = ["derive"] }
toml = { version = "0.7.6", default-features = false, features = ["parse"] }
I have an issue in a larger project where
toml
sometimes reports incorrect spans for missing fields declared at the top level.Below is a minimal recreation of what I think is the same issue.
Cargo.toml:
main.rs:
Running this gives the following output:
I would expect the following span instead:
Interestingly, the span stays the same if I add a newline at the top of the source, so it's not tied to the field
a
.The text was updated successfully, but these errors were encountered: