1
Fork 0

Suggest adding return if the type of unused semi return value can coerce to the fn return type

This commit is contained in:
yukang 2023-08-20 00:56:22 +08:00
parent 4331c151b0
commit 25d38c48c3
7 changed files with 230 additions and 12 deletions

View file

@ -507,6 +507,7 @@ pub enum StashKey {
CallAssocMethod,
TraitMissingMethod,
OpaqueHiddenTypeMismatch,
MaybeForgetReturn,
}
fn default_track_diagnostic(d: &mut Diagnostic, f: &mut dyn FnMut(&mut Diagnostic)) {