Commit cc74523
committed
Auto merge of #14413 - ctz:master, r=epage
Correct diagnostic for `TomlDebugInfo`
This is missing the friendly aliases introduced in 3dbb474.
### What does this PR try to resolve?
I wrote:
```
[profile.bench]
debug = "all"
```
I got this diagnostic:
```
error: invalid value: string "all", expected a boolean, 0, 1, 2, "line-tables-only", or "line-directives-only"
--> Cargo.toml:31:9
|
31 | debug = "all"
| ^^^^^
|
```
I meant to write "full", as [documented here](https://doc.rust-lang.org/cargo/reference/profiles.html#debug), but that wasn't mentioned in the diagnostic.
### How should we test and review this PR?
Updated the existing tests for this diagnostic.File tree
2 files changed
+3
-3
lines changed- crates/cargo-util-schemas/src/manifest
- tests/testsuite
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1088 | 1088 | | |
1089 | 1089 | | |
1090 | 1090 | | |
1091 | | - | |
| 1091 | + | |
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2686 | 2686 | | |
2687 | 2687 | | |
2688 | 2688 | | |
2689 | | - | |
| 2689 | + | |
2690 | 2690 | | |
2691 | 2691 | | |
2692 | 2692 | | |
| |||
2719 | 2719 | | |
2720 | 2720 | | |
2721 | 2721 | | |
2722 | | - | |
| 2722 | + | |
2723 | 2723 | | |
2724 | 2724 | | |
2725 | 2725 | | |
| |||
0 commit comments