-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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 #64483 - petrochenkov:expectattr2, r=Centril
resolve: Tweak some "cannot find" wording for macros
- Loading branch information
Showing
64 changed files
with
169 additions
and
163 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
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,9 +1,9 @@ | ||
// Obsolete attributes fall back to unstable custom attributes. | ||
|
||
#[ab_isize="stdcall"] extern {} | ||
//~^ ERROR cannot find attribute macro `ab_isize` in this scope | ||
//~^ ERROR cannot find attribute `ab_isize` in this scope | ||
|
||
#[fixed_stack_segment] fn f() {} | ||
//~^ ERROR cannot find attribute macro `fixed_stack_segment` in this scope | ||
//~^ ERROR cannot find attribute `fixed_stack_segment` in this scope | ||
|
||
fn main() {} |
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
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
2 changes: 1 addition & 1 deletion
2
src/test/ui/conditional-compilation/cfg-attr-unknown-attribute-macro-expansion.rs
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
2 changes: 1 addition & 1 deletion
2
src/test/ui/conditional-compilation/cfg-attr-unknown-attribute-macro-expansion.stderr
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
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,9 +1,9 @@ | ||
#![feature(stmt_expr_attributes)] | ||
|
||
#[foo] //~ ERROR cannot find attribute macro `foo` in this scope | ||
#[foo] //~ ERROR cannot find attribute `foo` in this scope | ||
fn main() { | ||
#[foo] //~ ERROR cannot find attribute macro `foo` in this scope | ||
#[foo] //~ ERROR cannot find attribute `foo` in this scope | ||
let x = (); | ||
#[foo] //~ ERROR cannot find attribute macro `foo` in this scope | ||
#[foo] //~ ERROR cannot find attribute `foo` in this scope | ||
x | ||
} |
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
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
26 changes: 13 additions & 13 deletions
26
src/test/ui/feature-gates/feature-gate-custom_attribute.rs
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,18 +1,18 @@ | ||
// Check that literals in attributes parse just fine. | ||
|
||
#[fake_attr] //~ ERROR cannot find attribute macro `fake_attr` in this scope | ||
#[fake_attr(100)] //~ ERROR cannot find attribute macro `fake_attr` in this scope | ||
#[fake_attr(1, 2, 3)] //~ ERROR cannot find attribute macro `fake_attr` in this scope | ||
#[fake_attr("hello")] //~ ERROR cannot find attribute macro `fake_attr` in this scope | ||
#[fake_attr(name = "hello")] //~ ERROR cannot find attribute macro `fake_attr` in this scope | ||
#[fake_attr(1, "hi", key = 12, true, false)] //~ ERROR cannot find attribute macro `fake_attr` in th | ||
#[fake_attr(key = "hello", val = 10)] //~ ERROR cannot find attribute macro `fake_attr` in this scop | ||
#[fake_attr(key("hello"), val(10))] //~ ERROR cannot find attribute macro `fake_attr` in this scope | ||
#[fake_attr(enabled = true, disabled = false)] //~ ERROR cannot find attribute macro `fake_attr` in | ||
#[fake_attr(true)] //~ ERROR cannot find attribute macro `fake_attr` in this scope | ||
#[fake_attr(pi = 3.14159)] //~ ERROR cannot find attribute macro `fake_attr` in this scope | ||
#[fake_attr(b"hi")] //~ ERROR cannot find attribute macro `fake_attr` in this scope | ||
#[fake_doc(r"doc")] //~ ERROR cannot find attribute macro `fake_doc` in this scope | ||
#[fake_attr] //~ ERROR cannot find attribute `fake_attr` in this scope | ||
#[fake_attr(100)] //~ ERROR cannot find attribute `fake_attr` in this scope | ||
#[fake_attr(1, 2, 3)] //~ ERROR cannot find attribute `fake_attr` in this scope | ||
#[fake_attr("hello")] //~ ERROR cannot find attribute `fake_attr` in this scope | ||
#[fake_attr(name = "hello")] //~ ERROR cannot find attribute `fake_attr` in this scope | ||
#[fake_attr(1, "hi", key = 12, true, false)] //~ ERROR cannot find attribute `fake_attr` in th | ||
#[fake_attr(key = "hello", val = 10)] //~ ERROR cannot find attribute `fake_attr` in this scop | ||
#[fake_attr(key("hello"), val(10))] //~ ERROR cannot find attribute `fake_attr` in this scope | ||
#[fake_attr(enabled = true, disabled = false)] //~ ERROR cannot find attribute `fake_attr` in | ||
#[fake_attr(true)] //~ ERROR cannot find attribute `fake_attr` in this scope | ||
#[fake_attr(pi = 3.14159)] //~ ERROR cannot find attribute `fake_attr` in this scope | ||
#[fake_attr(b"hi")] //~ ERROR cannot find attribute `fake_attr` in this scope | ||
#[fake_doc(r"doc")] //~ ERROR cannot find attribute `fake_doc` in this scope | ||
struct Q {} | ||
|
||
fn main() {} |
26 changes: 13 additions & 13 deletions
26
src/test/ui/feature-gates/feature-gate-custom_attribute.stderr
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
Oops, something went wrong.