diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-09 16:16:36 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-09 16:16:36 +0100 |
commit | 343b14f7e06f3ec82a15b3648ba229e03e0b0583 (patch) | |
tree | 6ac8072d75595b2a8eae527d8d10b9c8ca5bcb64 /crates/ide_assists/src | |
parent | c08e690c937bc19ab518a4ba4a6178218b20b69a (diff) | |
parent | ec2895e95649ca87bcac54ee635abb8b6f78b086 (diff) |
Merge #8450
8450: Don't ignore unnamed consts when looking for definitions r=Veykril a=Veykril
Fixes #8448
bors r+
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide_assists/src')
-rw-r--r-- | crates/ide_assists/src/handlers/remove_dbg.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_assists/src/handlers/remove_dbg.rs b/crates/ide_assists/src/handlers/remove_dbg.rs index 2862cfa9c..c8226550f 100644 --- a/crates/ide_assists/src/handlers/remove_dbg.rs +++ b/crates/ide_assists/src/handlers/remove_dbg.rs | |||
@@ -30,7 +30,7 @@ pub(crate) fn remove_dbg(acc: &mut Assists, ctx: &AssistContext) -> Option<()> { | |||
30 | if new_contents.is_empty() { | 30 | if new_contents.is_empty() { |
31 | match_ast! { | 31 | match_ast! { |
32 | match it { | 32 | match it { |
33 | ast::BlockExpr(it) => { | 33 | ast::BlockExpr(_it) => { |
34 | macro_call.syntax() | 34 | macro_call.syntax() |
35 | .prev_sibling_or_token() | 35 | .prev_sibling_or_token() |
36 | .and_then(whitespace_start) | 36 | .and_then(whitespace_start) |