Remove LocalInternedString uses from librustc/lint/.

This commit is contained in:
Nicholas Nethercote 2019-09-03 16:02:32 +10:00
parent 05dcd0e7e3
commit a8975a0752
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ use crate::util::common::time;
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 @@ impl LintStore {
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)

View File

@ -291,7 +291,7 @@ impl<'a> LintLevelsBuilder<'a> {
continue;
}
Some(tool_ident.as_str())
Some(tool_ident.name)
} else {
None
};