forked from rust-lang/rust
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#10226 - not-my-profile:module_name_repetition…
…s-span, r=giraffate Improve span for module_name_repetitions changelog: [`module_name_repetitions`]: Narrowed span to the identifier
- Loading branch information
Showing
2 changed files
with
12 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
error: item name starts with its containing module's name | ||
--> $DIR/module_name_repetitions.rs:8:5 | ||
--> $DIR/module_name_repetitions.rs:8:12 | ||
| | ||
LL | pub fn foo_bar() {} | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^ | ||
| | ||
= note: `-D clippy::module-name-repetitions` implied by `-D warnings` | ||
|
||
error: item name ends with its containing module's name | ||
--> $DIR/module_name_repetitions.rs:9:5 | ||
--> $DIR/module_name_repetitions.rs:9:12 | ||
| | ||
LL | pub fn bar_foo() {} | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^ | ||
|
||
error: item name starts with its containing module's name | ||
--> $DIR/module_name_repetitions.rs:10:5 | ||
--> $DIR/module_name_repetitions.rs:10:16 | ||
| | ||
LL | pub struct FooCake; | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^ | ||
|
||
error: item name ends with its containing module's name | ||
--> $DIR/module_name_repetitions.rs:11:5 | ||
--> $DIR/module_name_repetitions.rs:11:14 | ||
| | ||
LL | pub enum CakeFoo {} | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^ | ||
|
||
error: item name starts with its containing module's name | ||
--> $DIR/module_name_repetitions.rs:12:5 | ||
--> $DIR/module_name_repetitions.rs:12:16 | ||
| | ||
LL | pub struct Foo7Bar; | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^ | ||
|
||
error: aborting due to 5 previous errors | ||
|