Auto merge of #88493 - chenyukang:fix-duplicated-diagnostic, r=estebank
Fix #88256 remove duplicated diagnostics Fix #88256
This commit is contained in:
commit
8f3aa5e8b9
11 changed files with 59 additions and 65 deletions
|
@ -192,6 +192,7 @@ impl<'a> LintDiagnosticBuilder<'a> {
|
|||
/// Return the inner DiagnosticBuilder, first setting the primary message to `msg`.
|
||||
pub fn build(mut self, msg: &str) -> DiagnosticBuilder<'a> {
|
||||
self.0.set_primary_message(msg);
|
||||
self.0.set_is_lint();
|
||||
self.0
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue