Correctly handle line comments in attributes and generate extern crates

outside of wrapping function
This commit is contained in:
Guillaume Gomez 2025-03-07 15:20:14 +01:00
parent 6f7e8d441a
commit 123ea25542
7 changed files with 98 additions and 25 deletions

View file

@ -8,11 +8,11 @@ fn main() {
let should_contain = &[
"input.rs - foo (line 5)",
"input.rs:7:15",
"input.rs:8:15",
"input.rs - bar (line 13)",
"input.rs:15:15",
"input.rs:16:15",
"input.rs - bar (line 22)",
"input.rs:24:15",
"input.rs:25:15",
];
for text in should_contain {
assert!(output.contains(text), "output doesn't contains {:?}", text);