Skip to content

Commit

Permalink
fix(toml): Improve map/sequence error message
Browse files Browse the repository at this point in the history
This is a follow up to #13375
  • Loading branch information
epage committed Jan 31, 2024
1 parent 0f37cfb commit bd6b4a9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ tar = { version = "0.4.40", default-features = false }
tempfile = "3.9.0"
thiserror = "1.0.56"
time = { version = "0.3", features = ["parsing", "formatting", "serde"] }
toml = "0.8.8"
toml_edit = { version = "0.21.0", features = ["serde"] }
toml = "0.8.9"
toml_edit = { version = "0.21.1", features = ["serde"] }
tracing = "0.1.37" # be compatible with rustc_log: https://github.com/rust-lang/rust/blob/e51e98dde6a/compiler/rustc_log/Cargo.toml#L9
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
unicase = "2.7.0"
Expand Down
8 changes: 5 additions & 3 deletions tests/testsuite/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ edition = "2021"
.with_stderr(
"\
error: invalid type: map, expected a sequence
--> Cargo.toml:1:1
|
|
--> Cargo.toml:6:3
|
6 | [[bench.foo]]
| ^^^^^
|
",
)
.run();
Expand Down

0 comments on commit bd6b4a9

Please sign in to comment.