Open
Description
Consider this tiny two-file crate:
// main.rs
#![deny(keyword_idents)]
mod submod;
fn main() {}
// submod.rs
fn async() {}
fn await() {}
fn try() {}
fn dyn() {}
fn gen() {}
Building this crate should fail with several violations of the keyword_idents_2018
and keyword_idents_2024
lints. But instead, building unexpectedly succeeds!
(This particular example requires Rust 2015, but the same issue can be observed in 2018/2021 regarding the gen
keyword only.)