about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authoryukang <moorekang@gmail.com>2023-08-20 00:56:22 +0800
committeryukang <moorekang@gmail.com>2023-10-15 22:57:03 +0800
commit25d38c48c3c7d06c14ae65e964a114b89c09756e (patch)
tree92855e638442edc16837da4ad75be8af16ea98ec /compiler/rustc_errors/src
parent4331c151b09a065f6b3bedf4158edc336317bc0d (diff)
downloadrust-25d38c48c3c7d06c14ae65e964a114b89c09756e.tar.gz
rust-25d38c48c3c7d06c14ae65e964a114b89c09756e.zip
Suggest adding `return` if the type of unused semi return value can coerce to the fn return type
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 63226504d37..19b4d0c2bdf 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)) {