Rollup merge of #133545 - clubby789:symbol-intern-lit, r=jieyouxu
Lint against Symbol::intern on a string literal Disabled in tests where this doesn't make much sense
This commit is contained in:
commit
453a1a8b7f
20 changed files with 94 additions and 37 deletions
|
@ -87,7 +87,7 @@ pub fn find_crate_name(sess: &Session, attrs: &[ast::Attribute]) -> Symbol {
|
|||
}
|
||||
}
|
||||
|
||||
Symbol::intern("rust_out")
|
||||
sym::rust_out
|
||||
}
|
||||
|
||||
pub fn validate_crate_name(sess: &Session, s: Symbol, sp: Option<Span>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue