mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Auto merge of #17741 - Veykril:include-raw, r=Veykril
fix: Fix builtin includes rejecting raw string literals Fixes https://github.com/rust-lang/rust-analyzer/issues/17701
This commit is contained in:
commit
5b934bd25c
2 changed files with 14 additions and 2 deletions
|
@ -439,7 +439,7 @@ macro_rules! include_bytes {
|
|||
($file:expr,) => {{ /* compiler built-in */ }};
|
||||
}
|
||||
|
||||
fn main() { include_bytes("foo"); }
|
||||
fn main() { include_bytes("foo");include_bytes(r"foo"); }
|
||||
"#,
|
||||
expect![[r##"
|
||||
#[rustc_builtin_macro]
|
||||
|
@ -448,7 +448,7 @@ macro_rules! include_bytes {
|
|||
($file:expr,) => {{ /* compiler built-in */ }};
|
||||
}
|
||||
|
||||
fn main() { include_bytes("foo"); }
|
||||
fn main() { include_bytes("foo");include_bytes(r"foo"); }
|
||||
"##]],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue