From 25d38c48c3c7d06c14ae65e964a114b89c09756e Mon Sep 17 00:00:00 2001 From: yukang Date: Sun, 20 Aug 2023 00:56:22 +0800 Subject: Suggest adding `return` if the type of unused semi return value can coerce to the fn return type --- compiler/rustc_errors/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_errors/src') 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)) { -- cgit 1.4.1-3-g733a5