about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-16 06:26:20 +0200
committerGitHub <noreply@github.com>2023-10-16 06:26:20 +0200
commit1de910fc0d66c3321037b749a57d88d7241518c7 (patch)
tree39aee421a3a605d91d84176484dcbe449b8b1312 /compiler/rustc_errors/src
parent58352c06497ac1cc8f7c49d30d6df967134efbaf (diff)
parent25d38c48c3c7d06c14ae65e964a114b89c09756e (diff)
downloadrust-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.rs1
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)) {