Skip to content

Commit afa80f3

Browse files
committed
Rename some Diagnostic setters.
`Diagnostic` has 40 methods that return `&mut Self` and could be considered setters. Four of them have a `set_` prefix. This doesn't seem necessary for a type that implements the builder pattern. This commit removes the `set_` prefixes on those four methods.
1 parent e22f10f commit afa80f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ pub fn report_msg<'tcx>(
459459
DiagLevel::Note => Level::Note,
460460
};
461461
let mut err = DiagnosticBuilder::<()>::new(sess.dcx(), level, title);
462-
err.set_span(span);
462+
err.span(span);
463463

464464
// Show main message.
465465
if span != DUMMY_SP {

0 commit comments

Comments
 (0)