maud_lints: replace usage of InternedString by LocalInternedString
refs: https://github.com/rust-lang/rust/pull/49894
This commit is contained in:
parent
e606e64ef2
commit
05fb7364c6
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
use rustc::hir::def_id::DefId;
|
use rustc::hir::def_id::DefId;
|
||||||
use rustc::lint::LateContext;
|
use rustc::lint::LateContext;
|
||||||
use rustc::ty;
|
use rustc::ty;
|
||||||
use syntax::symbol::{InternedString, Symbol};
|
use syntax::symbol::{LocalInternedString, Symbol};
|
||||||
|
|
||||||
/// Check if a `DefId`'s path matches the given absolute type path usage.
|
/// Check if a `DefId`'s path matches the given absolute type path usage.
|
||||||
///
|
///
|
||||||
|
@ -15,7 +15,7 @@ use syntax::symbol::{InternedString, Symbol};
|
||||||
/// ```
|
/// ```
|
||||||
pub fn match_def_path(cx: &LateContext, def_id: DefId, path: &[&str]) -> bool {
|
pub fn match_def_path(cx: &LateContext, def_id: DefId, path: &[&str]) -> bool {
|
||||||
struct AbsolutePathBuffer {
|
struct AbsolutePathBuffer {
|
||||||
names: Vec<InternedString>,
|
names: Vec<LocalInternedString>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ty::item_path::ItemPathBuffer for AbsolutePathBuffer {
|
impl ty::item_path::ItemPathBuffer for AbsolutePathBuffer {
|
||||||
|
|
Loading…
Add table
Reference in a new issue