• A
    Forbid unnecessary visibility on view items · 4a78364d
    Alex Crichton 提交于
    For `use` statements, this means disallowing qualifiers when in functions and
    disallowing `priv` outside of functions.
    
    For `extern mod` statements, this means disallowing everything everywhere. It
    may have been envisioned for `pub extern mod foo` to be a thing, but it
    currently doesn't do anything (resolve doesn't pick it up), so better to err on
    the side of forwards-compatibility and forbid it entirely for now.
    
    Closes #9957
    4a78364d
issue-9957.rs 887 字节