de-stabilize bench attribute This has been soft-unstable since forever (https://github.com/rust-lang/rust/pull/64066), and shown in future-compat reports since Rust 1.77 (https://github.com/rust-lang/rust/pull/116274). The feature covering `bench` itself is tracked in https://github.com/rust-lang/rust/issues/50297, which has been closed despite still having active feature gates referencing it. Cc `@rust-lang/libs-api`
29 lines
703 B
Rust
29 lines
703 B
Rust
//@ check-pass
|
|
|
|
#[warn(meta_variable_misuse)]
|
|
macro_rules! foo {
|
|
( $($i:ident)* ) => { $($i)+ }; //~ WARN meta-variable repeats with different Kleene operator
|
|
}
|
|
|
|
#[warn(missing_fragment_specifier)]
|
|
macro_rules! m { ($i) => {} } //~ WARN missing fragment specifier
|
|
//~| WARN this was previously accepted
|
|
|
|
#[deprecated = "reason"]
|
|
macro_rules! deprecated {
|
|
() => {}
|
|
}
|
|
|
|
#[allow(deprecated)]
|
|
mod deprecated {
|
|
deprecated!(); // No warning
|
|
}
|
|
|
|
#[warn(incomplete_include)]
|
|
fn main() {
|
|
// WARN see in the stderr file, the warning points to the included file.
|
|
include!("expansion-time-include.rs");
|
|
}
|
|
|
|
//~? WARN include macro expected single expression in source
|