We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdbbc25 commit 05e5530Copy full SHA for 05e5530
src/librustc_hir/print.rs
@@ -648,7 +648,7 @@ impl<'a> State<'a> {
648
self.s.space();
649
}
650
651
- if let hir::Constness::Const = constness {
+ if constness == hir::Constness::Const {
652
self.word_nbsp("const");
653
654
src/librustc_parse/parser/item.rs
@@ -646,7 +646,7 @@ impl<'a> Parser<'a> {
646
self.expect_semi()?;
647
let whole_span = lo.to(self.prev_span);
- if let IsAuto::Yes = is_auto {
+ if is_auto == IsAuto::Yes {
let msg = "trait aliases cannot be `auto`";
self.struct_span_err(whole_span, msg).span_label(whole_span, msg).emit();
0 commit comments