Skip to content

Commit aef5caf

Browse files
authored
Rollup merge of #149344 - lapla-cogito:const_unwrap_sugg, r=Kivooeo
Don't suggest unwrap for Result in const close rust-lang/rust#149316 Regarding `const fn` that returns `Result`, we should avoid suggesting unwrapping. The original issue reported cases where types didn't match, but in practice, such suggestions may also appear when methods are not found, so this PR includes a fix for that case as well.
2 parents dacc2eb + 6c4aa7d commit aef5caf

0 file changed

File tree

    0 commit comments

    Comments
     (0)