diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-08-29 16:25:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-29 16:25:35 +0200 |
| commit | b7388024eb287c5d9b299ad25741a6854a010cd6 (patch) | |
| tree | e9c70b677213bef7aa0a54610ac7df78165a3ff6 /compiler/rustc_resolve | |
| parent | 9ffbd5029454425c012019aa7f06eb4f70bdf343 (diff) | |
| parent | 672d370764862272735466346e9291dbf3163aeb (diff) | |
| download | rust-b7388024eb287c5d9b299ad25741a6854a010cd6.tar.gz rust-b7388024eb287c5d9b299ad25741a6854a010cd6.zip | |
Rollup merge of #88411 - Aaron1011:remove-session-if-let, r=estebank
Remove `Session.if_let_suggestions` We can instead if either the LHS or RHS types contain `TyKind::Error`. In addition to covering the case where we would have previously updated `if_let_suggestions`, this might also prevent redundant errors in other cases as well.
Diffstat (limited to 'compiler/rustc_resolve')
| -rw-r--r-- | compiler/rustc_resolve/src/late/diagnostics.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/late/diagnostics.rs b/compiler/rustc_resolve/src/late/diagnostics.rs index 9d923599db7..b3601ecf1d3 100644 --- a/compiler/rustc_resolve/src/late/diagnostics.rs +++ b/compiler/rustc_resolve/src/late/diagnostics.rs @@ -215,7 +215,6 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> { "let ".to_string(), Applicability::MaybeIncorrect, ); - self.r.session.if_let_suggestions.borrow_mut().insert(*span); } _ => {} } |
