• B
    Auto merge of #41907 - est31:macro_unused, r=jseyfried · 86319e47
    bors 提交于
    Add lint for unused macros
    
    Addresses parts of #34938, to add a lint for unused macros.
    
    We now output warnings by default when we encounter a macro that we didn't use for expansion.
    
    Issues to be resolved before this PR is ready for merge:
    
    - [x] fix the NodeId issue described above
    - [x] remove all unused macros from rustc and the libraries or set `#[allow(unused_macros)]` next to them if they should be kept for some reason. This is needed for successful boostrap and bors to accept the PR. -> #41934
    - [x] ~~implement the full extent of #34938, that means the macro match arm checking as well.~~ *let's not do this for now*
    86319e47
lib.rs 144.8 KB