0e408bf83c
If the line width is width within config width, attribute is inline. I don't want to change default rustfmt behavior, so config default value is 0. - fix description - fix test comment - remove unnecessary clone - remove unnecessary test file - fix test for β version - attributes => attribute
46 lines
1.1 KiB
Rust
46 lines
1.1 KiB
Rust
// 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;
|