Skip to content

Commit 190e7fc

Browse files
committed
fix(toml): Improve map/sequence error message
This is a follow up to #13375
1 parent 0f37cfb commit 190e7fc

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testsuite/diagnostics.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ edition = "2021"
2121
.with_stderr(
2222
"\
2323
error: invalid type: map, expected a sequence
24-
--> Cargo.toml:1:1
25-
|
26-
|
24+
--> Cargo.toml:6:3
25+
|
26+
6 | [[bench.foo]]
27+
| ^^^^^
28+
|
2729
",
2830
)
2931
.run();

0 commit comments

Comments
 (0)