replace tabs with spaces (#1504)
This commit is contained in:
parent
43e41174c0
commit
2bdb02c587
26
src/asm.md
26
src/asm.md
|
|
@ -13,8 +13,8 @@ represents either a literal or a placeholder for an operand (just like format st
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
pub enum InlineAsmTemplatePiece {
|
pub enum InlineAsmTemplatePiece {
|
||||||
String(String),
|
String(String),
|
||||||
Placeholder { operand_idx: usize, modifier: Option<char>, span: Span },
|
Placeholder { operand_idx: usize, modifier: Option<char>, span: Span },
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -38,17 +38,17 @@ string parsing. The remaining options are mostly passed through to LLVM with lit
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
bitflags::bitflags! {
|
bitflags::bitflags! {
|
||||||
pub struct InlineAsmOptions: u16 {
|
pub struct InlineAsmOptions: u16 {
|
||||||
const PURE = 1 << 0;
|
const PURE = 1 << 0;
|
||||||
const NOMEM = 1 << 1;
|
const NOMEM = 1 << 1;
|
||||||
const READONLY = 1 << 2;
|
const READONLY = 1 << 2;
|
||||||
const PRESERVES_FLAGS = 1 << 3;
|
const PRESERVES_FLAGS = 1 << 3;
|
||||||
const NORETURN = 1 << 4;
|
const NORETURN = 1 << 4;
|
||||||
const NOSTACK = 1 << 5;
|
const NOSTACK = 1 << 5;
|
||||||
const ATT_SYNTAX = 1 << 6;
|
const ATT_SYNTAX = 1 << 6;
|
||||||
const RAW = 1 << 7;
|
const RAW = 1 << 7;
|
||||||
const MAY_UNWIND = 1 << 8;
|
const MAY_UNWIND = 1 << 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue