Skip to content

Commit a3e3202

Browse files
author
Paolo Tranquilli
committed
Rust: show unexpanded macro
1 parent 862d690 commit a3e3202

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
| src/directory_module/not_loaded.rs:1:1:1:1 | semantic analyzer unavailable (not included as a module) | Extraction warning in src/directory_module/not_loaded.rs with message semantic analyzer unavailable (not included as a module) | 1 |
2+
| src/main.rs:1:10:1:40 | macro expansion failed: could not resolve macro 'include_str' | Extraction warning in src/main.rs with message macro expansion failed: could not resolve macro 'include_str' | 1 |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| src/main.rs:4:1:6:1 | fn main |
1+
| src/main.rs:6:1:8:1 | fn main |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello world!
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
#![doc = include_str!("./README.md")] // <- rust-analyzer 0.0.274 is not expanding this
2+
13
mod file_module;
24
mod directory_module;
35

46
fn main() {
5-
println!("Hello, world!");
7+
println!("Hello world!");
68
}
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
| Extraction errors | 0 |
2-
| Extraction warnings | 1 |
2+
| Extraction warnings | 2 |
33
| Files extracted - total | 5 |
4-
| Files extracted - with errors | 1 |
5-
| Files extracted - without errors | 4 |
6-
| Files extracted - without errors % | 80 |
4+
| Files extracted - with errors | 2 |
5+
| Files extracted - without errors | 3 |
6+
| Files extracted - without errors % | 60 |
77
| Inconsistencies - AST | 0 |
88
| Inconsistencies - CFG | 0 |
99
| Inconsistencies - Path resolution | 0 |
1010
| Inconsistencies - SSA | 0 |
1111
| Inconsistencies - data flow | 0 |
12+
<<<<<<< HEAD
1213
| Lines of code extracted | 6 |
1314
| Lines of user code extracted | 6 |
15+
=======
16+
| Lines of code extracted | 24 |
17+
| Lines of user code extracted | 7 |
18+
>>>>>>> c76d50da3be (Rust: show unexpanded macro)
1419
| Macro calls - resolved | 2 |
15-
| Macro calls - total | 2 |
16-
| Macro calls - unresolved | 0 |
20+
| Macro calls - total | 3 |
21+
| Macro calls - unresolved | 1 |

0 commit comments

Comments
 (0)