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.
This commit is contained in:
Manish Goregaokar 2020-06-19 09:15:08 -07:00 committed by GitHub
commit 058971cef3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 148 additions and 11 deletions

View file

@ -11,7 +11,7 @@
// ignore-asmjs wasm2js does not support source maps yet
#![feature(non_ascii_idents)]
#[allow(uncommon_codepoints)]
#![allow(uncommon_codepoints)]
#[path = "issue-48508-aux.rs"]
mod other_file;