]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #73300 - crlf0710:crate_level_only_check, r=petrochenkov
authorManish Goregaokar <manishsmail@gmail.com>
Fri, 19 Jun 2020 16:15:08 +0000 (09:15 -0700)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2020 16:15:08 +0000 (09:15 -0700)
Implement crate-level-only lints checking.

This implements a crate_level_only flag on lints, and when it is true, it becomes an error when user tries  to specify this flag upon nodes other than crate node.

This also turns on this flag for all non_ascii_ident lints.

1  2 
src/librustc_session/lint/builtin.rs

Simple merge