diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-02-27 06:11:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-27 06:11:53 +0100 |
| commit | abc82484d4cf03900eca5a28115cc3b733a604eb (patch) | |
| tree | 8c57be9f30bf89cc4dc1a9be38f1833615af2708 /tests | |
| parent | 69b1b94d0c3fc7fd4948aa547493cf36fdf14705 (diff) | |
| parent | 752ddd028c877c2033940d0dcd4e3dcbf569ae9d (diff) | |
| download | rust-abc82484d4cf03900eca5a28115cc3b733a604eb.tar.gz rust-abc82484d4cf03900eca5a28115cc3b733a604eb.zip | |
Rollup merge of #108486 - cjgillot:owner-ditem, r=Nilstrieb
Merge diagnostic_items duplicate diagnostics To deduplicate how we diagnose duplication.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/tool-attributes/duplicate-diagnostic.rs | 2 | ||||
| -rw-r--r-- | tests/ui/tool-attributes/duplicate-diagnostic.stderr | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/ui/tool-attributes/duplicate-diagnostic.rs b/tests/ui/tool-attributes/duplicate-diagnostic.rs index 39c2ca1cb86..e2cf9508757 100644 --- a/tests/ui/tool-attributes/duplicate-diagnostic.rs +++ b/tests/ui/tool-attributes/duplicate-diagnostic.rs @@ -9,5 +9,5 @@ extern crate p1; extern crate p2; #[rustc_diagnostic_item = "Foo"] -pub struct Foo {} //~ ERROR duplicate diagnostic item found +pub struct Foo {} //~ ERROR duplicate diagnostic item in crate `duplicate_diagnostic`: `Foo` fn main() {} diff --git a/tests/ui/tool-attributes/duplicate-diagnostic.stderr b/tests/ui/tool-attributes/duplicate-diagnostic.stderr index e315fdc7d84..26bd6a82e34 100644 --- a/tests/ui/tool-attributes/duplicate-diagnostic.stderr +++ b/tests/ui/tool-attributes/duplicate-diagnostic.stderr @@ -2,11 +2,13 @@ error: duplicate diagnostic item in crate `p2`: `Foo`. | = note: the diagnostic item is first defined in crate `p1`. -error: duplicate diagnostic item found: `Foo`. +error: duplicate diagnostic item in crate `duplicate_diagnostic`: `Foo`. --> $DIR/duplicate-diagnostic.rs:12:1 | LL | pub struct Foo {} | ^^^^^^^^^^^^^^ + | + = note: the diagnostic item is first defined in crate `p2`. error: aborting due to 2 previous errors |
