Skip to content

Commit bb8fc87

Browse files
committed
XXX: no chaining of Diagnostic methods.
that's what `DiagnosticBuilder` is for.
1 parent c171e62 commit bb8fc87

File tree

8 files changed

+52
-106
lines changed

8 files changed

+52
-106
lines changed

compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
12911291

12921292
fn suggest_slice_method_if_applicable(
12931293
&self,
1294-
err: &mut Diagnostic,
1294+
err: &mut DiagnosticBuilder<'tcx>,
12951295
place: Place<'tcx>,
12961296
borrowed_place: Place<'tcx>,
12971297
) {

0 commit comments

Comments
 (0)