We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ea159e commit 7cfba1cCopy full SHA for 7cfba1c
src/librustc_errors/emitter.rs
@@ -46,7 +46,10 @@ impl Emitter for EmitterWriter {
46
// don't display long messages as labels
47
sugg.msg.split_whitespace().count() < 10 &&
48
// don't display multiline suggestions as labels
49
- !sugg.substitutions[0].parts[0].snippet.contains('\n') {
+ !sugg.substitutions[0].parts[0].snippet.contains('\n') &&
50
+ // when this style is set we want the suggestion to be a message, not inline
51
+ sugg.style != SuggestionStyle::HideCodeAlways
52
+ {
53
let substitution = &sugg.substitutions[0].parts[0].snippet.trim();
54
let msg = if substitution.len() == 0 || sugg.style.hide_inline() {
55
// This substitution is only removal or we explicitly don't want to show the
0 commit comments