Skip to content

Commit 0485223

Browse files
committed
1 parent 03f1dc7 commit 0485223

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ extern crate syntax;
2020
extern crate rustc;
2121

2222
use syntax::ast;
23+
use rustc::middle::def_id::DefId;
2324
use syntax::visit;
2425
use syntax::codemap::Span;
2526
use rustc::lint::LintPassObject;
@@ -220,7 +221,7 @@ impl Pass
220221
}
221222

222223
/// Locate a #[tag_safe(<name>)] attribute on the passed item
223-
pub fn method_is_safe(&mut self, tcx: &ty::ctxt, id: ast::DefId, name: &str, unknown_assume: bool) -> bool
224+
pub fn method_is_safe(&mut self, tcx: &ty::ctxt, id: DefId, name: &str, unknown_assume: bool) -> bool
224225
{
225226
debug!("{}Checking method {:?} (A {})", Indent(self.lvl), id, unknown_assume);
226227
self.lvl += 1;

0 commit comments

Comments
 (0)