Rename buffer_non_error_diag
as buffer_non_error
.
To match `buffer_error`.
This commit is contained in:
parent
11f32b73e0
commit
f066be5f29
3 changed files with 5 additions and 5 deletions
|
@ -251,6 +251,6 @@ impl OutlivesSuggestionBuilder {
|
||||||
diag.sort_span = mir_span.shrink_to_hi();
|
diag.sort_span = mir_span.shrink_to_hi();
|
||||||
|
|
||||||
// Buffer the diagnostic
|
// Buffer the diagnostic
|
||||||
mbcx.buffer_non_error_diag(diag);
|
mbcx.buffer_non_error(diag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2435,7 +2435,7 @@ mod error {
|
||||||
self.buffered.push(t.into_diagnostic());
|
self.buffered.push(t.into_diagnostic());
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn buffer_non_error_diag(&mut self, t: DiagnosticBuilder<'_, ()>) {
|
pub fn buffer_non_error(&mut self, t: DiagnosticBuilder<'_, ()>) {
|
||||||
self.buffered.push(t.into_diagnostic());
|
self.buffered.push(t.into_diagnostic());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2449,8 +2449,8 @@ mod error {
|
||||||
self.errors.buffer_error(t);
|
self.errors.buffer_error(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn buffer_non_error_diag(&mut self, t: DiagnosticBuilder<'_, ()>) {
|
pub fn buffer_non_error(&mut self, t: DiagnosticBuilder<'_, ()>) {
|
||||||
self.errors.buffer_non_error_diag(t);
|
self.errors.buffer_non_error(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn buffer_move_error(
|
pub fn buffer_move_error(
|
||||||
|
|
|
@ -310,7 +310,7 @@ pub(super) fn dump_annotation<'tcx>(
|
||||||
err.note(format!("Inferred opaque type values:\n{opaque_type_values:#?}"));
|
err.note(format!("Inferred opaque type values:\n{opaque_type_values:#?}"));
|
||||||
}
|
}
|
||||||
|
|
||||||
errors.buffer_non_error_diag(err);
|
errors.buffer_non_error(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn for_each_region_constraint<'tcx>(
|
fn for_each_region_constraint<'tcx>(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue