This commit is contained in:
flip1995 2019-02-14 14:01:43 +01:00
parent 533dd360d7
commit 10811d5d89
No known key found for this signature in database
GPG Key ID: 693086869D506637

View File

@ -17,7 +17,7 @@ use rustc::ty::{
Binder, Ty, TyCtxt,
};
use rustc_data_structures::sync::Lrc;
use rustc_errors::{Applicability, CodeSuggestion, Substitution, SubstitutionPart};
use rustc_errors::{Applicability, CodeSuggestion, Substitution, SubstitutionPart, SuggestionStyle};
use std::borrow::Cow;
use std::env;
use std::mem;
@ -745,7 +745,7 @@ where
.collect(),
}],
msg: help_msg,
show_code_when_inline: true,
style: SuggestionStyle::ShowCode,
applicability: Applicability::Unspecified,
};
db.suggestions.push(sugg);