-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
A-lintArea: New lintsArea: New lintsT-macrosType: Issues with macros and macro expansionType: Issues with macros and macro expansion
Description
The below program has typos inside the cfg macro call.
(feeture instead of feature)
The below program compiles without any errors, and clippy also does not print any warnings.
pub fn main() {
if cfg!(feeture="EXT1") {
println!("EXTRA FEATURE1 ADDED");
}
#[cfg(feeture="EXT2")] {
println!("EXTRA FEATURE2 ADDED");
}
}cfg macro seems to be a compiler built-in macro (source code not available?).
I found this issue while debugging my Rust code.
Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lintsT-macrosType: Issues with macros and macro expansionType: Issues with macros and macro expansion