Skip to content

Organize macro tests a bit more #143514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: ty
--> $DIR/mbe-async-trait-bound-theoretical-regression.rs:8:19
--> $DIR/macro-async-trait-bound-theoretical-regression.rs:8:19
|
LL | ($ty:ty) => { compile_error!("ty"); };
| ^^^^^^^^^^^^^^^^^^^^
Expand All @@ -10,7 +10,7 @@ LL | demo! { impl async Trait }
= note: this error originates in the macro `demo` (in Nightly builds, run with -Z macro-backtrace for more info)

error: ty
--> $DIR/mbe-async-trait-bound-theoretical-regression.rs:8:19
--> $DIR/macro-async-trait-bound-theoretical-regression.rs:8:19
|
LL | ($ty:ty) => { compile_error!("ty"); };
| ^^^^^^^^^^^^^^^^^^^^
Expand All @@ -21,7 +21,7 @@ LL | demo! { dyn async Trait }
= note: this error originates in the macro `demo` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0658]: `async` trait bounds are unstable
--> $DIR/mbe-async-trait-bound-theoretical-regression.rs:15:14
--> $DIR/macro-async-trait-bound-theoretical-regression.rs:15:14
|
LL | demo! { impl async Trait }
| ^^^^^
Expand All @@ -32,7 +32,7 @@ LL | demo! { impl async Trait }
= help: use the desugared name of the async trait, such as `AsyncFn`

error[E0658]: `async` trait bounds are unstable
--> $DIR/mbe-async-trait-bound-theoretical-regression.rs:18:13
--> $DIR/macro-async-trait-bound-theoretical-regression.rs:18:13
|
LL | demo! { dyn async Trait }
| ^^^^^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: this file contains an unclosed delimiter
--> $DIR/mbe_missing_right_paren.rs:3:19
--> $DIR/macro-missing-right-paren.rs:3:19
|
LL | macro_rules! abc(ؼ
| - ^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: expected identifier, found `]`
--> $DIR/mbe-bare-trait-objects-const-trait-bounds.rs:20:16
--> $DIR/macro-bare-trait-objects-const-trait-bounds.rs:20:16
|
LL | ($Type:ty) => {
| -------- while parsing argument for this `ty` macro fragment
Expand All @@ -8,7 +8,7 @@ LL | check! { [const] Trait }
| ^ expected identifier

error[E0658]: const trait impls are experimental
--> $DIR/mbe-bare-trait-objects-const-trait-bounds.rs:20:11
--> $DIR/macro-bare-trait-objects-const-trait-bounds.rs:20:11
|
LL | check! { [const] Trait }
| ^^^^^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: ty
--> $DIR/mbe-const-trait-bound-theoretical-regression.rs:8:19
--> $DIR/macro-const-trait-bound-theoretical-regression.rs:8:19
|
LL | ($ty:ty) => { compile_error!("ty"); };
| ^^^^^^^^^^^^^^^^^^^^
Expand All @@ -10,7 +10,7 @@ LL | demo! { impl const Trait }
= note: this error originates in the macro `demo` (in Nightly builds, run with -Z macro-backtrace for more info)

error: ty
--> $DIR/mbe-const-trait-bound-theoretical-regression.rs:8:19
--> $DIR/macro-const-trait-bound-theoretical-regression.rs:8:19
|
LL | ($ty:ty) => { compile_error!("ty"); };
| ^^^^^^^^^^^^^^^^^^^^
Expand All @@ -21,7 +21,7 @@ LL | demo! { dyn const Trait }
= note: this error originates in the macro `demo` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0658]: const trait impls are experimental
--> $DIR/mbe-const-trait-bound-theoretical-regression.rs:15:14
--> $DIR/macro-const-trait-bound-theoretical-regression.rs:15:14
|
LL | demo! { impl const Trait }
| ^^^^^
Expand All @@ -31,7 +31,7 @@ LL | demo! { impl const Trait }
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: const trait impls are experimental
--> $DIR/mbe-const-trait-bound-theoretical-regression.rs:18:13
--> $DIR/macro-const-trait-bound-theoretical-regression.rs:18:13
|
LL | demo! { dyn const Trait }
| ^^^^^
Expand Down
Loading