diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2021-02-04 13:59:23 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2021-02-21 16:27:29 -0800 |
| commit | 020edd91a911cebf8aeada9f04dff047dc76171e (patch) | |
| tree | c89ef48189e9b38f0bb4dbbfb3ff1172bf3c1658 /compiler | |
| parent | 796ce9fcb7e35767e6e57ad79099dcf730a0a94b (diff) | |
| download | rust-020edd91a911cebf8aeada9f04dff047dc76171e.tar.gz rust-020edd91a911cebf8aeada9f04dff047dc76171e.zip | |
reword `;` suggestions to have consistent wording
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_typeck/src/check/callee.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_typeck/src/check/callee.rs b/compiler/rustc_typeck/src/check/callee.rs index 4836418b3c2..f2fbb95fc02 100644 --- a/compiler/rustc_typeck/src/check/callee.rs +++ b/compiler/rustc_typeck/src/check/callee.rs @@ -346,7 +346,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { if call_is_multiline { err.span_suggestion( callee.span.shrink_to_hi(), - "try adding a semicolon", + "consider using a semicolon here", ";".to_owned(), Applicability::MaybeIncorrect, ); diff --git a/compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs b/compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs index 9d816e76c00..e5a2e139817 100644 --- a/compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs +++ b/compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs @@ -395,7 +395,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { | ExprKind::Block(..) => { err.span_suggestion( cause_span.shrink_to_hi(), - "try adding a semicolon", + "consider using a semicolon here", ";".to_string(), Applicability::MachineApplicable, ); |
