Skip to content

Commit

Permalink
maud_lints: replace usage of InternedString by LocalInternedString
Browse files Browse the repository at this point in the history
  • Loading branch information
barzamin authored and lambda-fairy committed May 2, 2018
1 parent e606e64 commit 05fb736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maud_lints/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use rustc::hir::def_id::DefId;
use rustc::lint::LateContext;
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.
///
Expand All @@ -15,7 +15,7 @@ use syntax::symbol::{InternedString, Symbol};
/// ```
pub fn match_def_path(cx: &LateContext, def_id: DefId, path: &[&str]) -> bool {
struct AbsolutePathBuffer {
names: Vec<InternedString>,
names: Vec<LocalInternedString>,
}

impl ty::item_path::ItemPathBuffer for AbsolutePathBuffer {
Expand Down

0 comments on commit 05fb736

Please sign in to comment.