8d4d572e4d
When encountering a verbose/multipart suggestion that has changes that are only caused by different capitalization of ASCII letters that have little differenciation, expand the message to highlight that fact (like we already do for inline suggestions). The logic to do this was already present, but implemented incorrectly.
26 lines
696 B
Plaintext
26 lines
696 B
Plaintext
error[E0425]: cannot find value `True` in this scope
|
|
--> $DIR/bool_typo_err_suggest.rs:5:13
|
|
|
|
|
LL | let x = True;
|
|
| ^^^^ not found in this scope
|
|
|
|
|
help: you may want to use a bool value instead
|
|
|
|
|
LL | let x = true;
|
|
| ~~~~
|
|
|
|
error[E0425]: cannot find value `False` in this scope
|
|
--> $DIR/bool_typo_err_suggest.rs:9:13
|
|
|
|
|
LL | let y = False;
|
|
| ^^^^^ not found in this scope
|
|
|
|
|
help: you may want to use a bool value instead (notice the capitalization difference)
|
|
|
|
|
LL | let y = false;
|
|
| ~~~~~
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0425`.
|