forked from rust-lang/rustfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request rust-lang#3409 from rchaser53/issue-3343
add config inline_attribute_width
- Loading branch information
Showing
6 changed files
with
150 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// rustfmt-inline_attribute_width: 50 | ||
|
||
#[cfg(feature = "alloc")] | ||
use core::slice; | ||
|
||
#[cfg(feature = "alloc")] | ||
use total_len_is::_50__; | ||
|
||
#[cfg(feature = "alloc")] | ||
use total_len_is::_51___; | ||
|
||
#[cfg(feature = "alloc")] | ||
extern crate len_is_50_; | ||
|
||
#[cfg(feature = "alloc")] | ||
extern crate len_is_51__; | ||
|
||
/// this is a comment to test is_sugared_doc property | ||
use core::convert; | ||
|
||
#[fooooo] | ||
#[barrrrr] | ||
use total_len_is_::_51______; | ||
|
||
#[cfg(not(all( | ||
feature = "std", | ||
any( | ||
target_os = "linux", | ||
target_os = "android", | ||
target_os = "netbsd", | ||
target_os = "dragonfly", | ||
target_os = "haiku", | ||
target_os = "emscripten", | ||
target_os = "solaris", | ||
target_os = "cloudabi", | ||
target_os = "macos", | ||
target_os = "ios", | ||
target_os = "freebsd", | ||
target_os = "openbsd", | ||
target_os = "bitrig", | ||
target_os = "redox", | ||
target_os = "fuchsia", | ||
windows, | ||
all(target_arch = "wasm32", feature = "stdweb"), | ||
all(target_arch = "wasm32", feature = "wasm-bindgen"), | ||
) | ||
)))] | ||
use core::slice; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// rustfmt-inline_attribute_width: 50 | ||
|
||
#[cfg(feature = "alloc")] use core::slice; | ||
|
||
#[cfg(feature = "alloc")] use total_len_is::_50__; | ||
|
||
#[cfg(feature = "alloc")] | ||
use total_len_is::_51___; | ||
|
||
#[cfg(feature = "alloc")] extern crate len_is_50_; | ||
|
||
#[cfg(feature = "alloc")] | ||
extern crate len_is_51__; | ||
|
||
/// this is a comment to test is_sugared_doc property | ||
use core::convert; | ||
|
||
#[fooooo] | ||
#[barrrrr] | ||
use total_len_is_::_51______; | ||
|
||
#[cfg(not(all( | ||
feature = "std", | ||
any( | ||
target_os = "linux", | ||
target_os = "android", | ||
target_os = "netbsd", | ||
target_os = "dragonfly", | ||
target_os = "haiku", | ||
target_os = "emscripten", | ||
target_os = "solaris", | ||
target_os = "cloudabi", | ||
target_os = "macos", | ||
target_os = "ios", | ||
target_os = "freebsd", | ||
target_os = "openbsd", | ||
target_os = "bitrig", | ||
target_os = "redox", | ||
target_os = "fuchsia", | ||
windows, | ||
all(target_arch = "wasm32", feature = "stdweb"), | ||
all(target_arch = "wasm32", feature = "wasm-bindgen"), | ||
) | ||
)))] | ||
use core::slice; |