Skip to content

Commit 50c83a9

Browse files
committed
remove now unnecessary trait impls
1 parent 0d51e80 commit 50c83a9

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/librustc_mir/tcx/mod.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
use hair::*;
1919
use repr::*;
20-
use std::fmt::{Debug, Formatter, Error};
21-
use std::hash::{Hash, Hasher};
2220

2321
use rustc::middle::const_eval::ConstVal;
2422
use rustc::middle::def_id::DefId;
@@ -153,29 +151,6 @@ impl<'a,'tcx:'a> Cx<'a, 'tcx> {
153151
}
154152
}
155153

156-
// We only need this impl so that we do deriving for things that are
157-
// defined relative to the `Hair` trait. See `Hair` trait for more
158-
// details.
159-
impl<'a,'tcx> PartialEq for Cx<'a,'tcx> {
160-
fn eq(&self, _: &Cx<'a,'tcx>) -> bool {
161-
panic!("Cx should never ACTUALLY be compared for equality")
162-
}
163-
}
164-
165-
impl<'a,'tcx> Eq for Cx<'a,'tcx> { }
166-
167-
impl<'a,'tcx> Hash for Cx<'a,'tcx> {
168-
fn hash<H: Hasher>(&self, _: &mut H) {
169-
panic!("Cx should never ACTUALLY be hashed")
170-
}
171-
}
172-
173-
impl<'a,'tcx> Debug for Cx<'a,'tcx> {
174-
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error> {
175-
write!(fmt, "Tcx")
176-
}
177-
}
178-
179154
mod block;
180155
mod expr;
181156
mod pattern;

0 commit comments

Comments
 (0)