Commit b0942d3
authored
fix(toml): Teach users how to pin edition (#16851)
### What does this PR try to resolve?
Only when not `--quiet` (note: piped stderr implies `--quiet`)
This tries to strike a balance between
- Helping users know how to react to the warning
- Good noise that encourages users to pin the edition
- Bad noise that overwhelms the throwaway scripts
### How to test and review this PR12 files changed
Lines changed: 112 additions & 27 deletions
File tree
- src/cargo/util/toml
- tests/testsuite
- cargo_add
- script_bare
- script_frontmatter_empty
- script_shebang
- cargo_remove
- script_last
- script
- lints
- script
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
636 | | - | |
| 636 | + | |
637 | 637 | | |
638 | 638 | | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
639 | 644 | | |
640 | 645 | | |
641 | 646 | | |
| |||
Loading
Lines changed: 11 additions & 6 deletions
Loading
Loading
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3091 | 3091 | | |
3092 | 3092 | | |
3093 | 3093 | | |
| 3094 | + | |
3094 | 3095 | | |
3095 | 3096 | | |
3096 | 3097 | | |
| |||
3129 | 3130 | | |
3130 | 3131 | | |
3131 | 3132 | | |
| 3133 | + | |
3132 | 3134 | | |
3133 | 3135 | | |
3134 | 3136 | | |
| |||
3169 | 3171 | | |
3170 | 3172 | | |
3171 | 3173 | | |
| 3174 | + | |
3172 | 3175 | | |
3173 | 3176 | | |
3174 | 3177 | | |
| |||
3208 | 3211 | | |
3209 | 3212 | | |
3210 | 3213 | | |
| 3214 | + | |
3211 | 3215 | | |
3212 | 3216 | | |
3213 | 3217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
0 commit comments