diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-27 17:34:46 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-27 17:34:46 +0100 |
commit | a2940c42c0ab30e80e1a63494ca17fb2d81bdd1f (patch) | |
tree | 7d755c4edd86c0b031452eb45536eb42d802f65c /crates/ide_completion/src/test_utils.rs | |
parent | cc5d8069219a0a52f9c98b6766d2421eaf4664d8 (diff) | |
parent | 3a16950fd919f46fd879c36423810a40105b2c10 (diff) |
Merge #9020
9020: fix: Don't complete non-macro item paths in impls and modules r=Veykril a=Veykril
Part of #8518
bors r+
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide_completion/src/test_utils.rs')
-rw-r--r-- | crates/ide_completion/src/test_utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_completion/src/test_utils.rs b/crates/ide_completion/src/test_utils.rs index 37be575e5..6656fd725 100644 --- a/crates/ide_completion/src/test_utils.rs +++ b/crates/ide_completion/src/test_utils.rs | |||
@@ -132,7 +132,7 @@ pub(crate) fn check_edit_with_config( | |||
132 | assert_eq_text!(&ra_fixture_after, &actual) | 132 | assert_eq_text!(&ra_fixture_after, &actual) |
133 | } | 133 | } |
134 | 134 | ||
135 | pub(crate) fn check_pattern_is_applicable(code: &str, check: fn(SyntaxElement) -> bool) { | 135 | pub(crate) fn check_pattern_is_applicable(code: &str, check: impl FnOnce(SyntaxElement) -> bool) { |
136 | let (db, pos) = position(code); | 136 | let (db, pos) = position(code); |
137 | 137 | ||
138 | let sema = Semantics::new(&db); | 138 | let sema = Semantics::new(&db); |