mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
add a section to Configuration.md
- attributes => attribute
This commit is contained in:
parent
0e408bf83c
commit
e68044f8bc
@ -2408,6 +2408,27 @@ pub enum Foo {}
|
||||
pub enum Foo {}
|
||||
```
|
||||
|
||||
## `inline_attribute_width`
|
||||
|
||||
Write an item and its attribute on the same line if their combined width is below a threshold
|
||||
|
||||
- **Default value**: 0
|
||||
- **Possible values**: any positive integer
|
||||
- **Stable**: No (tracking issue: #3343)
|
||||
|
||||
### Example
|
||||
|
||||
#### `0` (default):
|
||||
```rust
|
||||
#[cfg(feature = "alloc")]
|
||||
use core::slice;
|
||||
```
|
||||
|
||||
#### `50`:
|
||||
```rust
|
||||
#[cfg(feature = "alloc")] use core::slice;
|
||||
```
|
||||
|
||||
## `emit_mode`
|
||||
|
||||
Internal option
|
||||
|
Loading…
Reference in New Issue
Block a user