mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
40 lines
1 KiB
Text
40 lines
1 KiB
Text
error: missing `#[inline]` for a function
|
|
--> $DIR/missing_inline.rs:33:1
|
|
|
|
|
33 | pub fn pub_foo() {} // missing #[inline]
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::missing-inline-in-public-items` implied by `-D warnings`
|
|
|
|
error: missing `#[inline]` for a default trait method
|
|
--> $DIR/missing_inline.rs:48:5
|
|
|
|
|
48 | fn PubBar_b() {} // missing #[inline]
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: missing `#[inline]` for a method
|
|
--> $DIR/missing_inline.rs:61:5
|
|
|
|
|
61 | fn PubBar_a() {} // missing #[inline]
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: missing `#[inline]` for a method
|
|
--> $DIR/missing_inline.rs:62:5
|
|
|
|
|
62 | fn PubBar_b() {} // missing #[inline]
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: missing `#[inline]` for a method
|
|
--> $DIR/missing_inline.rs:63:5
|
|
|
|
|
63 | fn PubBar_c() {} // missing #[inline]
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: missing `#[inline]` for a method
|
|
--> $DIR/missing_inline.rs:73:5
|
|
|
|
|
73 | pub fn PubFooImpl() {} // missing #[inline]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 6 previous errors
|
|
|