• A
    rustc: Add deprecation/renaming support for lints · 31b7d64f
    Aaron Turon 提交于
    Since a large number of lints are being renamed for RFC 344, this commit
    adds some basic deprecation/renaming functionality to the pluggable lint
    system. It allows a simple mapping of old to new names, and can warn
    when old names are being used.
    
    This change needs to be rolled out in stages. In this commit, the
    deprecation warning is commented out, but the old name is forwarded to
    the new one.
    
    Once the commit lands and we have generated a new snapshot of the
    compiler, we can add the deprecation warning and rename all uses of the
    lints in the rust codebase.
    31b7d64f
context.rs 30.0 KB