diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-05 17:56:39 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-05 17:56:39 +0100 |
commit | 32246b91c217fff5b3b6ea062c9b9a8797a3fdf5 (patch) | |
tree | 8e4aa127fffdf2c2e3ccd3571c9fe28a1227f59b /crates/ra_ide/src/syntax_highlighting | |
parent | dab810b1e623449cf3e9a422cf49d89cac17507f (diff) | |
parent | 4e2e3543c72b5963eb91b94b8180fecf268930e3 (diff) |
Merge #5664
5664: Fix renamed self module. r=jonas-schievink a=Nashenas88
Fixes #5663
Now `inner_mod` below is properly marked as a `module`.
```rust
use crate::inner::{self as inner_mod};
mod inner {}
```
Co-authored-by: Paul Daniel Faria <[email protected]>
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting/tests.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting/tests.rs b/crates/ra_ide/src/syntax_highlighting/tests.rs index 87a6e2523..2deee404c 100644 --- a/crates/ra_ide/src/syntax_highlighting/tests.rs +++ b/crates/ra_ide/src/syntax_highlighting/tests.rs | |||
@@ -9,6 +9,9 @@ use crate::{mock_analysis::single_file, FileRange, TextRange}; | |||
9 | fn test_highlighting() { | 9 | fn test_highlighting() { |
10 | check_highlighting( | 10 | check_highlighting( |
11 | r#" | 11 | r#" |
12 | use inner::{self as inner_mod}; | ||
13 | mod inner {} | ||
14 | |||
12 | #[derive(Clone, Debug)] | 15 | #[derive(Clone, Debug)] |
13 | struct Foo { | 16 | struct Foo { |
14 | pub x: i32, | 17 | pub x: i32, |