Remove obsolete derivations of Hash.

This commit is contained in:
Dan Gohman
2017-09-12 12:28:25 -07:00
parent 9b5295f3e2
commit 2e046d68ce
3 changed files with 19 additions and 19 deletions

View File

@@ -8,7 +8,6 @@
use cretonne::ir::{Ebb, Value, Inst, Type, DataFlowGraph, JumpTables, Layout, Cursor, CursorBase,
InstBuilder};
use cretonne::ir::instructions::BranchInfo;
use std::hash::Hash;
use cretonne::entity::{EntityRef, PrimaryMap, EntityMap};
use cretonne::packed_option::PackedOption;
use cretonne::packed_option::ReservedValue;
@@ -200,7 +199,7 @@ enum UseVarCases {
///
impl<Variable> SSABuilder<Variable>
where
Variable: EntityRef + Hash + Default,
Variable: EntityRef + Default,
{
/// Declares a new definition of a variable in a given basic block.
/// The SSA value is passed as an argument because it should be created with
@@ -594,7 +593,7 @@ mod tests {
use std::u32;
/// An opaque reference to variable.
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub struct Variable(u32);
impl EntityRef for Variable {
fn new(index: usize) -> Self {