]> git.lizzy.rs Git - rust.git/commitdiff
Remove `LocalInternedString` uses from `librustc/lint/`.
authorNicholas Nethercote <nnethercote@mozilla.com>
Tue, 3 Sep 2019 06:02:32 +0000 (16:02 +1000)
committerNicholas Nethercote <nnethercote@mozilla.com>
Tue, 3 Sep 2019 06:02:32 +0000 (16:02 +1000)
src/librustc/lint/context.rs
src/librustc/lint/levels.rs

index affda256322a492f8ca05373c9a9136cc475a5a6..77df93080cd165cfeb9ea33870184163f4f92a0e 100644 (file)
@@ -33,7 +33,7 @@
 use std::default::Default as StdDefault;
 use syntax::ast;
 use syntax::edition;
-use syntax_pos::{MultiSpan, Span, symbol::{LocalInternedString, Symbol}};
+use syntax_pos::{MultiSpan, Span, symbol::Symbol};
 use errors::DiagnosticBuilder;
 use crate::hir;
 use crate::hir::def_id::{CrateNum, DefId, LOCAL_CRATE};
@@ -405,7 +405,7 @@ pub fn check_lint_name_cmdline(&self,
     pub fn check_lint_name(
         &self,
         lint_name: &str,
-        tool_name: Option<LocalInternedString>,
+        tool_name: Option<Symbol>,
     ) -> CheckLintNameResult<'_> {
         let complete_name = if let Some(tool_name) = tool_name {
             format!("{}::{}", tool_name, lint_name)
index 139f4343117af8b37ac2eb91a0b2d34791917c8c..cbc6dbdba7e6cc9716f29a7c2e8c295291c483ea 100644 (file)
@@ -291,7 +291,7 @@ pub fn push(&mut self, attrs: &[ast::Attribute]) -> BuilderPush {
                         continue;
                     }
 
-                    Some(tool_ident.as_str())
+                    Some(tool_ident.name)
                 } else {
                     None
                 };