#![macro_escape]
use std::hash;
-use std::ascii::StrAsciiExt;
+use std::ascii::AsciiExt;
use syntax::codemap::Span;
use syntax::visit::FnKind;
use syntax::ast;
impl PartialEq for LintId {
fn eq(&self, other: &LintId) -> bool {
- (self.lint as *Lint) == (other.lint as *Lint)
+ (self.lint as *const Lint) == (other.lint as *const Lint)
}
}
impl<S: hash::Writer> hash::Hash<S> for LintId {
fn hash(&self, state: &mut S) {
- let ptr = self.lint as *Lint;
+ let ptr = self.lint as *const Lint;
ptr.hash(state);
}
}