mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 03:53:20 +00:00
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.
23 lines
259 B
Rust
23 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() {
|
|
}
|