mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-30 11:37:31 +00:00
fix: do not offer completions within macro strings
This commit is contained in:
parent
4a03036744
commit
cb0221d774
3 changed files with 72 additions and 1 deletions
|
|
@ -713,6 +713,28 @@ struct Foo;
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn issue_17479() {
|
||||
check(
|
||||
r#"
|
||||
//- proc_macros: issue_17479
|
||||
fn main() {
|
||||
proc_macros::issue_17479!("te$0");
|
||||
}
|
||||
"#,
|
||||
expect![""],
|
||||
);
|
||||
check(
|
||||
r#"
|
||||
//- proc_macros: issue_17479
|
||||
fn main() {
|
||||
proc_macros::issue_17479!("$0");
|
||||
}
|
||||
"#,
|
||||
expect![""],
|
||||
)
|
||||
}
|
||||
|
||||
mod cfg {
|
||||
use super::*;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue