diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-10-16 06:26:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-16 06:26:20 +0200 |
| commit | 1de910fc0d66c3321037b749a57d88d7241518c7 (patch) | |
| tree | 39aee421a3a605d91d84176484dcbe449b8b1312 /compiler/rustc_errors/src | |
| parent | 58352c06497ac1cc8f7c49d30d6df967134efbaf (diff) | |
| parent | 25d38c48c3c7d06c14ae65e964a114b89c09756e (diff) | |
| download | rust-1de910fc0d66c3321037b749a57d88d7241518c7.tar.gz rust-1de910fc0d66c3321037b749a57d88d7241518c7.zip | |
Rollup merge of #115196 - chenyukang:yukang-fix-86094, r=estebank
Suggest adding `return` if the for semi which can coerce to the fn return type Fixes #86094 r? `@estebank`
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index c2af7f38d70..da74ee6391a 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -507,6 +507,7 @@ pub enum StashKey { CallAssocMethod, TraitMissingMethod, OpaqueHiddenTypeMismatch, + MaybeForgetReturn, } fn default_track_diagnostic(d: &mut Diagnostic, f: &mut dyn FnMut(&mut Diagnostic)) { |
