mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
internal: Implement naked_asm!
builtin
This commit is contained in:
parent
acd469681f
commit
f748eb510e
3 changed files with 4 additions and 1 deletions
|
@ -74,7 +74,7 @@ impl BuiltinFnLikeExpander {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_asm(&self) -> bool {
|
pub fn is_asm(&self) -> bool {
|
||||||
matches!(self, Self::Asm | Self::GlobalAsm)
|
matches!(self, Self::Asm | Self::GlobalAsm | Self::NakedAsm)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,6 +122,7 @@ register_builtin! {
|
||||||
(stringify, Stringify) => stringify_expand,
|
(stringify, Stringify) => stringify_expand,
|
||||||
(asm, Asm) => asm_expand,
|
(asm, Asm) => asm_expand,
|
||||||
(global_asm, GlobalAsm) => asm_expand,
|
(global_asm, GlobalAsm) => asm_expand,
|
||||||
|
(naked_asm, NakedAsm) => asm_expand,
|
||||||
(cfg, Cfg) => cfg_expand,
|
(cfg, Cfg) => cfg_expand,
|
||||||
(core_panic, CorePanic) => panic_expand,
|
(core_panic, CorePanic) => panic_expand,
|
||||||
(std_panic, StdPanic) => panic_expand,
|
(std_panic, StdPanic) => panic_expand,
|
||||||
|
|
|
@ -434,6 +434,7 @@ impl<'db> SemanticsImpl<'db> {
|
||||||
| BuiltinFnLikeExpander::ModulePath
|
| BuiltinFnLikeExpander::ModulePath
|
||||||
| BuiltinFnLikeExpander::Asm
|
| BuiltinFnLikeExpander::Asm
|
||||||
| BuiltinFnLikeExpander::GlobalAsm
|
| BuiltinFnLikeExpander::GlobalAsm
|
||||||
|
| BuiltinFnLikeExpander::NakedAsm
|
||||||
| BuiltinFnLikeExpander::LogSyntax
|
| BuiltinFnLikeExpander::LogSyntax
|
||||||
| BuiltinFnLikeExpander::TraceMacros
|
| BuiltinFnLikeExpander::TraceMacros
|
||||||
| BuiltinFnLikeExpander::FormatArgs
|
| BuiltinFnLikeExpander::FormatArgs
|
||||||
|
|
|
@ -307,6 +307,7 @@ define_symbols! {
|
||||||
module_path,
|
module_path,
|
||||||
mul_assign,
|
mul_assign,
|
||||||
mul,
|
mul,
|
||||||
|
naked_asm,
|
||||||
ne,
|
ne,
|
||||||
neg,
|
neg,
|
||||||
Neg,
|
Neg,
|
||||||
|
|
Loading…
Reference in a new issue