1
Fork 0
rust/compiler/rustc_mir_build/src
Michael Howell 6e973f0850 fix(lint): don't suggest refutable patterns to "fix" irrefutable bind
In function arguments and let bindings, do not suggest changing `C` to `Foo::C`
unless `C` is the only variant of `Foo`, because it won't work.

The general warning is still kept, because code like this is confusing.

Fixes #88730
2021-09-29 09:15:35 -07:00
..
build Use Rvalue::ShallowInitBox for box expression 2021-09-25 01:08:41 +01:00
thir fix(lint): don't suggest refutable patterns to "fix" irrefutable bind 2021-09-29 09:15:35 -07:00
check_unsafety.rs move thir visitor to rustc_middle 2021-09-09 01:32:03 +01:00
lib.rs Remove box syntax from rustc_mir_build 2021-08-18 09:25:26 +02:00
lints.rs Do not store attrs in FnKind. 2021-03-09 19:09:33 +01:00