diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-09-29 13:36:11 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-29 13:36:11 +0100 |
commit | bdc1f76cbda7478f39c190cc6ba296bc0030928f (patch) | |
tree | 91d3312e41626d40387d59e9243ae32b099eecb1 /crates/ide/src/runnables.rs | |
parent | e813de6cdd53e542bce8d4a554288dc2f17bbf5e (diff) | |
parent | 91da41b3b13129007920943d7300459921faf3c5 (diff) |
Merge #5928
5928: Add method references CodeLens r=vsrs a=vsrs
The PR adds CodeLens for methods and free-standing functions:
![method_refs](https://user-images.githubusercontent.com/62505555/91858244-95fbfb00-ec71-11ea-90c7-5b3ee067e305.png)
Relates to #5836
Co-authored-by: vsrs <[email protected]>
Diffstat (limited to 'crates/ide/src/runnables.rs')
-rw-r--r-- | crates/ide/src/runnables.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs index 989a63c09..cfeff40c1 100644 --- a/crates/ide/src/runnables.rs +++ b/crates/ide/src/runnables.rs | |||
@@ -203,7 +203,7 @@ impl TestAttr { | |||
203 | /// | 203 | /// |
204 | /// It may produce false positives, for example, `#[wasm_bindgen_test]` requires a different command to run the test, | 204 | /// It may produce false positives, for example, `#[wasm_bindgen_test]` requires a different command to run the test, |
205 | /// but it's better than not to have the runnables for the tests at all. | 205 | /// but it's better than not to have the runnables for the tests at all. |
206 | fn has_test_related_attribute(fn_def: &ast::Fn) -> bool { | 206 | pub(crate) fn has_test_related_attribute(fn_def: &ast::Fn) -> bool { |
207 | fn_def | 207 | fn_def |
208 | .attrs() | 208 | .attrs() |
209 | .filter_map(|attr| attr.path()) | 209 | .filter_map(|attr| attr.path()) |