Rename the entity_ref module to 'entity'.

This is in preparation for moving a number of data structures into
sub-modules of the 'entity' module:

- EntityList
- EntityMap
- SparseMap
This commit is contained in:
Jakob Stoklund Olesen
2017-08-18 14:37:03 -07:00
parent c7b9bc1abf
commit 8599372098
16 changed files with 23 additions and 21 deletions

View File

@@ -122,7 +122,7 @@ impl Display for JumpTableData {
mod tests {
use super::JumpTableData;
use ir::Ebb;
use entity_ref::EntityRef;
use entity::EntityRef;
#[test]
fn empty() {

View File

@@ -1086,7 +1086,7 @@ impl<'c, 'fc: 'c, 'fd> InstInserterBase<'fd> for LayoutCursorInserter<'c, 'fc, '
#[cfg(test)]
mod tests {
use super::{Layout, Cursor, CursorBase, CursorPosition};
use entity_ref::EntityRef;
use entity::EntityRef;
use ir::{Ebb, Inst, ProgramOrder};
use std::cmp::Ordering;

View File

@@ -1,6 +1,6 @@
//! Program points.
use entity_ref::EntityRef;
use entity::EntityRef;
use ir::{Ebb, Inst, ValueDef};
use std::fmt;
use std::u32;
@@ -135,7 +135,7 @@ pub trait ProgramOrder {
#[cfg(test)]
mod tests {
use super::*;
use entity_ref::EntityRef;
use entity::EntityRef;
use ir::{Inst, Ebb};
#[test]