Add support for const operands and options to global_asm!
On x86, the default syntax is also switched to Intel to match asm!
This commit is contained in:
parent
952c5732c2
commit
5918ee4317
36 changed files with 928 additions and 800 deletions
|
@ -2279,14 +2279,6 @@ pub struct ForeignMod {
|
|||
pub items: Vec<P<ForeignItem>>,
|
||||
}
|
||||
|
||||
/// Global inline assembly.
|
||||
///
|
||||
/// Also known as "module-level assembly" or "file-scoped assembly".
|
||||
#[derive(Clone, Encodable, Decodable, Debug, Copy)]
|
||||
pub struct GlobalAsm {
|
||||
pub asm: Symbol,
|
||||
}
|
||||
|
||||
#[derive(Clone, Encodable, Decodable, Debug)]
|
||||
pub struct EnumDef {
|
||||
pub variants: Vec<Variant>,
|
||||
|
@ -2669,7 +2661,7 @@ pub enum ItemKind {
|
|||
/// E.g., `extern {}` or `extern "C" {}`.
|
||||
ForeignMod(ForeignMod),
|
||||
/// Module-level inline assembly (from `global_asm!()`).
|
||||
GlobalAsm(GlobalAsm),
|
||||
GlobalAsm(InlineAsm),
|
||||
/// A type alias (`type`).
|
||||
///
|
||||
/// E.g., `type Foo = Bar<u8>;`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue