diff options
| author | Rageking8 <tomleetyt@gmail.com> | 2022-10-04 16:46:12 +0800 |
|---|---|---|
| committer | Rageking8 <tomleetyt@gmail.com> | 2022-10-04 19:13:40 +0800 |
| commit | 5ddaece6508aeb376dc8483fba029f538307536e (patch) | |
| tree | 2bdc09f31a610b8c77bbbb20cb57789f46453857 /compiler | |
| parent | d9f8b4b98503e3f88623eb59d4f20432161b840a (diff) | |
slightly improve no return for returning function error
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/fn_ctxt/suggestions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/fn_ctxt/suggestions.rs b/compiler/rustc_hir_analysis/src/check/fn_ctxt/suggestions.rs index 05ed3b29972..1338852e112 100644 --- a/compiler/rustc_hir_analysis/src/check/fn_ctxt/suggestions.rs +++ b/compiler/rustc_hir_analysis/src/check/fn_ctxt/suggestions.rs @@ -1122,7 +1122,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { } else { err.span_suggestion_short( span_semi, - "remove this semicolon", + "remove this semicolon to return this value", "", Applicability::MachineApplicable, ); |
