mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Expand asm!
to format_args!
This commit is contained in:
parent
8b45de596f
commit
cca6ee5757
3 changed files with 28 additions and 5 deletions
|
@ -477,6 +477,8 @@ mod panic {
|
|||
macro_rules! panic {}
|
||||
#[rustc_builtin_macro]
|
||||
macro_rules! assert {}
|
||||
#[rustc_builtin_macro]
|
||||
macro_rules! asm {}
|
||||
|
||||
macro_rules! toho {
|
||||
() => ($crate::panic!("not yet implemented"));
|
||||
|
@ -537,6 +539,7 @@ fn main() {
|
|||
assert!(true, "{}", 1);
|
||||
assert!(true, "{} asdasd", 1);
|
||||
toho!("{}fmt", 0);
|
||||
asm!("mov eax, {0}");
|
||||
}"#
|
||||
.trim(),
|
||||
expect_file!["./test_data/highlight_strings.html"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue