Skip to content

Commit f066be5

Browse files
committed
Rename buffer_non_error_diag as buffer_non_error.
To match `buffer_error`.
1 parent 11f32b7 commit f066be5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

compiler/rustc_borrowck/src/diagnostics/outlives_suggestion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,6 @@ impl OutlivesSuggestionBuilder {
251251
diag.sort_span = mir_span.shrink_to_hi();
252252

253253
// Buffer the diagnostic
254-
mbcx.buffer_non_error_diag(diag);
254+
mbcx.buffer_non_error(diag);
255255
}
256256
}

compiler/rustc_borrowck/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,7 +2435,7 @@ mod error {
24352435
self.buffered.push(t.into_diagnostic());
24362436
}
24372437

2438-
pub fn buffer_non_error_diag(&mut self, t: DiagnosticBuilder<'_, ()>) {
2438+
pub fn buffer_non_error(&mut self, t: DiagnosticBuilder<'_, ()>) {
24392439
self.buffered.push(t.into_diagnostic());
24402440
}
24412441

@@ -2449,8 +2449,8 @@ mod error {
24492449
self.errors.buffer_error(t);
24502450
}
24512451

2452-
pub fn buffer_non_error_diag(&mut self, t: DiagnosticBuilder<'_, ()>) {
2453-
self.errors.buffer_non_error_diag(t);
2452+
pub fn buffer_non_error(&mut self, t: DiagnosticBuilder<'_, ()>) {
2453+
self.errors.buffer_non_error(t);
24542454
}
24552455

24562456
pub fn buffer_move_error(

compiler/rustc_borrowck/src/nll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ pub(super) fn dump_annotation<'tcx>(
310310
err.note(format!("Inferred opaque type values:\n{opaque_type_values:#?}"));
311311
}
312312

313-
errors.buffer_non_error_diag(err);
313+
errors.buffer_non_error(err);
314314
}
315315

316316
fn for_each_region_constraint<'tcx>(

0 commit comments

Comments
 (0)