#[rustversion::attr(not(stable(1.89.0)), deprecated(note = "Update the rustc version (you may need to update UI tests)"))]
#[allow(dead_code)]
fn matching_rust_version() -> bool {
rustversion::cfg!(stable(1.89.0))
}
#[test]
fn test_metrics_macro() {
if !matching_rust_version() {
eprintln!(
"Rust version does not match. not running tests to avoid spurious failures. Update the Rust version to match the current rust version"
);
return;
}
let t = trybuild::TestCases::new();
t.pass("tests/ui/pass/*.rs");
t.compile_fail("tests/ui/fail/*.rs");
}