Skip to content

Commit a8975a0

Browse files
committed
Remove LocalInternedString uses from librustc/lint/.
1 parent 05dcd0e commit a8975a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc/lint/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use crate::util::common::time;
3333
use std::default::Default as StdDefault;
3434
use syntax::ast;
3535
use syntax::edition;
36-
use syntax_pos::{MultiSpan, Span, symbol::{LocalInternedString, Symbol}};
36+
use syntax_pos::{MultiSpan, Span, symbol::Symbol};
3737
use errors::DiagnosticBuilder;
3838
use crate::hir;
3939
use crate::hir::def_id::{CrateNum, DefId, LOCAL_CRATE};
@@ -405,7 +405,7 @@ impl LintStore {
405405
pub fn check_lint_name(
406406
&self,
407407
lint_name: &str,
408-
tool_name: Option<LocalInternedString>,
408+
tool_name: Option<Symbol>,
409409
) -> CheckLintNameResult<'_> {
410410
let complete_name = if let Some(tool_name) = tool_name {
411411
format!("{}::{}", tool_name, lint_name)

src/librustc/lint/levels.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ impl<'a> LintLevelsBuilder<'a> {
291291
continue;
292292
}
293293

294-
Some(tool_ident.as_str())
294+
Some(tool_ident.name)
295295
} else {
296296
None
297297
};

0 commit comments

Comments
 (0)