]> git.lizzy.rs Git - rust.git/commit
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)
commit058971cef3e7ce5925fa910239645f7c793d8dbc
treeca2405a852667ef777c40b1ff878c160cdb27bcf
parent4910206b4a5b36ce0d82e08f1e33e72875fd28df
parentf633dd385f7b064b4d9eb77e77a4836dc65ca82c
Rollup merge of #73300 - crlf0710:crate_level_only_check, r=petrochenkov

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.
src/librustc_session/lint/builtin.rs