diff options
| author | bors <bors@rust-lang.org> | 2023-01-26 00:17:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-01-26 00:17:52 +0000 |
| commit | 23ea47b7eb0439a991f69edf8b92ce550bcaffb2 (patch) | |
| tree | 2911380cb10b0555761a5e10dc5dc9a99f46b224 /tests/ui | |
| parent | a9c251f11d2a07ec57ca4b8e17674f7f29daf249 (diff) | |
| parent | 20cc72e8a8269107f3405a24861ea7f9d2d748dc (diff) | |
| download | rust-23ea47b7eb0439a991f69edf8b92ce550bcaffb2.tar.gz rust-23ea47b7eb0439a991f69edf8b92ce550bcaffb2.zip | |
Auto merge of #10226 - not-my-profile:module_name_repetitions-span, r=giraffate
Improve span for module_name_repetitions changelog: [`module_name_repetitions`]: Narrowed span to the identifier
Diffstat (limited to 'tests/ui')
| -rw-r--r-- | tests/ui/module_name_repetitions.stderr | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/ui/module_name_repetitions.stderr b/tests/ui/module_name_repetitions.stderr index 3f343a3e430..277801194a1 100644 --- a/tests/ui/module_name_repetitions.stderr +++ b/tests/ui/module_name_repetitions.stderr @@ -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 |
