-
Notifications
You must be signed in to change notification settings - Fork 13.3k
regression: error: expected identifier, found metavariable #140219
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
Comments
Possibly #137517, but I haven't performed any bisection or minimization. |
I've reproduced it locally with the |
Minimized: Other crate (let's call it macro_rules! make_macro {
($function:path) => {
#[macro_export]
macro_rules! some_macro {
() => {
$crate::$function();
};
}
};
}
make_macro!(my_function);
pub fn my_function() {} Main crate: use some_crate::some_macro;
fn main() {
some_macro!();
} I can't figure out how to inline into one crate; that makes it fail on both stable and beta:
|
Checks out; I bisect to cc @nnethercote |
Closing this as an intentional breaking change; relnotes against 1.87.0 is tracked in #140241. |
Three crater results failed with similar error messages:
These macros come from the
ndarray-linalg
crate, and AFAICT they haven't changed since 2019.https://github.com/rust-ndarray/ndarray-linalg/blob/master/ndarray-linalg/src/assert.rs
Version it worked on
It most recently worked on: 1.86.0
Version with regression
rustc 1.87.0-beta.5 (386abeb93 2025-04-19)
in crater #139827.@rustbot modify labels: +regression-from-stable-to-beta -regression-untriaged
The text was updated successfully, but these errors were encountered: