diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-06-23 06:07:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-23 06:07:19 +0200 |
| commit | 9b6665fafa3b8f13576d425ba57d9affa9655017 (patch) | |
| tree | 87ae030ff320708582a9b55736dae9d6dff6872a /tests | |
| parent | f63fdde7646668d57f7674e8b55cd3eb6c19c45f (diff) | |
| parent | 2084831cd54eb603fec6cd85ebd9d1426b09f628 (diff) | |
| download | rust-9b6665fafa3b8f13576d425ba57d9affa9655017.tar.gz rust-9b6665fafa3b8f13576d425ba57d9affa9655017.zip | |
Rollup merge of #142823 - JonathanBrouwer:no_mangle_parser, r=jdonszelmann
Port `#[no_mangle]` to new attribute parsing infrastructure Ports `no_mangle` to the new attribute parsing infrastructure for https://github.com/rust-lang/rust/issues/131229#issuecomment-2971353197 r? ``@jdonszelmann``
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/lint/unused/unused-attr-duplicate.stderr | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/ui/lint/unused/unused-attr-duplicate.stderr b/tests/ui/lint/unused/unused-attr-duplicate.stderr index 6fdd0adf4cf..4abf7dd134e 100644 --- a/tests/ui/lint/unused/unused-attr-duplicate.stderr +++ b/tests/ui/lint/unused/unused-attr-duplicate.stderr @@ -115,18 +115,6 @@ LL | #[export_name = "exported_symbol_name2"] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! error: unused attribute - --> $DIR/unused-attr-duplicate.rs:98:1 - | -LL | #[no_mangle] - | ^^^^^^^^^^^^ help: remove this attribute - | -note: attribute also specified here - --> $DIR/unused-attr-duplicate.rs:97:1 - | -LL | #[no_mangle] - | ^^^^^^^^^^^^ - -error: unused attribute --> $DIR/unused-attr-duplicate.rs:102:1 | LL | #[used] @@ -289,5 +277,17 @@ note: attribute also specified here LL | #[cold] | ^^^^^^^ +error: unused attribute + --> $DIR/unused-attr-duplicate.rs:98:1 + | +LL | #[no_mangle] + | ^^^^^^^^^^^^ help: remove this attribute + | +note: attribute also specified here + --> $DIR/unused-attr-duplicate.rs:97:1 + | +LL | #[no_mangle] + | ^^^^^^^^^^^^ + error: aborting due to 23 previous errors |
