7467b83377
This adds a `suggest_remove_item` helper that will remove an item and all trailing whitespace. This should handle both attributes on the same line as the function and on a separate line; the function takes the position of the original attribute.
24 lines
259 B
Rust
24 lines
259 B
Rust
|
|
|
|
|
|
#![warn(inline_fn_without_body)]
|
|
#![allow(inline_always)]
|
|
|
|
trait Foo {
|
|
#[inline]
|
|
fn default_inline();
|
|
|
|
#[inline(always)]fn always_inline();
|
|
|
|
#[inline(never)]
|
|
|
|
fn never_inline();
|
|
|
|
#[inline]
|
|
fn has_body() {
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
}
|