-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad span when a root field is a map instead of a table #669
Comments
epage
added
C-bug
Category: Things not working as expected
A-parse
Area: Parsing TOML
labels
Jan 31, 2024
bors
added a commit
to rust-lang/cargo
that referenced
this issue
Jan 31, 2024
fix(diagnostic): Don't panic on empty spans ### What does this PR try to resolve? There is another level to this bug where we better point to where the error occurs, see toml-rs/toml#669. Fixes #13374 ### How should we test and review this PR? ### Additional information
epage
added a commit
to epage/toml_edit
that referenced
this issue
Jan 31, 2024
weihanglo
pushed a commit
to weihanglo/cargo
that referenced
this issue
Feb 4, 2024
fix(diagnostic): Don't panic on empty spans ### What does this PR try to resolve? There is another level to this bug where we better point to where the error occurs, see toml-rs/toml#669. Fixes rust-lang#13374 ### How should we test and review this PR? ### Additional information
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=cd6a70687d41e3341a4f7898e55583a9
(the span is empty)
The text was updated successfully, but these errors were encountered: