Skip to content

regression: error: expected identifier, found metavariable #140219

Closed
@cuviper

Description

@cuviper

Three crater results failed with similar error messages:

[INFO] [stdout] error: expected identifier, found metavariable
[INFO] [stdout]    --> src/main.rs:341:9
[INFO] [stdout]     |
[INFO] [stdout] 341 |         assert_aclose!(trac, fd, 1e-8);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         expected identifier, found metavariable
[INFO] [stdout]     |         in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `assert_aclose` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected identifier, found metavariable
[INFO] [stdout]    --> src/main.rs:350:9
[INFO] [stdout]     |
[INFO] [stdout] 350 |         assert_aclose!(fd, d_traction, 1e-8);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         expected identifier, found metavariable
[INFO] [stdout]     |         in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `assert_aclose` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected identifier, found metavariable
[INFO] [stdout]    --> src/main.rs:358:9
[INFO] [stdout]     |
[INFO] [stdout] 358 |         assert_aclose!(trac, fd, 1e-8);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         expected identifier, found metavariable
[INFO] [stdout]     |         in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `assert_aclose` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected identifier, found metavariable
[INFO] [stdout]    --> src/main.rs:367:9
[INFO] [stdout]     |
[INFO] [stdout] 367 |         assert_aclose!(fd, d_traction, 1e-8);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         expected identifier, found metavariable
[INFO] [stdout]     |         in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `assert_aclose` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] error: expected identifier, found metavariable
[INFO] [stdout]   --> examples/ex1.rs:72:9
[INFO] [stdout]    |
[INFO] [stdout] 72 |         assert_close_l2!(&av, &ev, 1e-5);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         expected identifier, found metavariable
[INFO] [stdout]    |         in this macro invocation
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `assert_close_l2` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] error: expected identifier, found metavariable
[INFO] [stdout]    --> src/training/node_estimation/multi_kde/gaussian_kde.rs:125:9
[INFO] [stdout]     |
[INFO] [stdout] 125 |         assert_close_l1!(&result, &expected, 0.0000001);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         expected identifier, found metavariable
[INFO] [stdout]     |         in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `assert_close_l1` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected identifier, found metavariable
[INFO] [stdout]   --> src/training/node_estimation/multi_kde/gaussian_kernel_estimate.rs:82:9
[INFO] [stdout]    |
[INFO] [stdout] 82 |         assert_close_l1!(&result, &expected, 0.0000001)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         expected identifier, found metavariable
[INFO] [stdout]    |         in this macro invocation
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `assert_close_l1` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected identifier, found metavariable
[INFO] [stdout]    --> src/training/node_estimation/multi_kde/mod.rs:211:9
[INFO] [stdout]     |
[INFO] [stdout] 211 |         assert_close_l1!(&Array1::from_vec(peaks), &Array1::from_vec(expected), 0.4)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         expected identifier, found metavariable
[INFO] [stdout]     |         in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `assert_close_l1` (in Nightly builds, run with -Z macro-backtrace for more info)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserArea: The lexing & parsing of Rust source code to an ASTC-bugCategory: This is a bug.S-has-bisectionStatus: a bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions