Skip to content

Commit 6cc449a

Browse files
committed
rename rustc_const_eval to rustc_const_math
1 parent a48c9a1 commit 6cc449a

File tree

32 files changed

+30
-30
lines changed

32 files changed

+30
-30
lines changed

mk/crates.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ DEPS_test := std getopts term native:rust_test_helpers
9292
DEPS_syntax := std term serialize log arena libc rustc_bitflags rustc_unicode
9393
DEPS_syntax_ext := syntax fmt_macros
9494

95-
DEPS_rustc_const_eval := std syntax
95+
DEPS_rustc_const_math := std syntax log serialize
9696

9797
DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml rustc_front\
9898
log graphviz rustc_back rustc_data_structures\

src/librustc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ log = { path = "../liblog" }
1818
rbml = { path = "../librbml" }
1919
rustc_back = { path = "../librustc_back" }
2020
rustc_bitflags = { path = "../librustc_bitflags" }
21-
rustc_const_eval = { path = "../librustc_const_eval" }
21+
rustc_const_math = { path = "../librustc_const_math" }
2222
rustc_data_structures = { path = "../librustc_data_structures" }
2323
rustc_front = { path = "../librustc_front" }
2424
serialize = { path = "../libserialize" }

src/librustc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extern crate rustc_front;
5555
extern crate rustc_data_structures;
5656
extern crate serialize;
5757
extern crate collections;
58-
extern crate rustc_const_eval;
58+
extern crate rustc_const_math;
5959
#[macro_use] extern crate log;
6060
#[macro_use] extern crate syntax;
6161
#[macro_use] #[no_link] extern crate rustc_bitflags;

src/librustc/middle/const_eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use std::hash;
4646
use std::mem::transmute;
4747
use std::rc::Rc;
4848

49-
use rustc_const_eval::*;
49+
use rustc_const_math::*;
5050

5151
macro_rules! math {
5252
($e:expr, $op:expr) => {

src/librustc/mir/repr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use graphviz::IntoCow;
1212
use middle::const_eval::ConstVal;
13-
use rustc_const_eval::{ConstUsize, ConstInt};
13+
use rustc_const_math::{ConstUsize, ConstInt};
1414
use middle::def_id::DefId;
1515
use ty::subst::Substs;
1616
use ty::{self, AdtDef, ClosureSubsts, FnOutput, Region, Ty};

src/librustc/mir/visit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use middle::def_id::DefId;
1313
use ty::subst::Substs;
1414
use ty::{ClosureSubsts, FnOutput, Region, Ty};
1515
use mir::repr::*;
16-
use rustc_const_eval::ConstUsize;
16+
use rustc_const_math::ConstUsize;
1717
use rustc_data_structures::tuple_slice::TupleSlice;
1818
use syntax::codemap::Span;
1919

src/librustc/ty/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ use syntax::attr::{self, AttrMetaMethods};
5050
use syntax::codemap::{DUMMY_SP, Span};
5151
use syntax::parse::token::InternedString;
5252

53-
use rustc_const_eval::ConstInt;
53+
use rustc_const_math::ConstInt;
5454

5555
use rustc_front::hir;
5656
use rustc_front::hir::{ItemImpl, ItemTrait, PatKind};

src/librustc/ty/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use ty::{self, Ty, TyCtxt, TypeAndMut, TypeFlags, TypeFoldable};
2222
use ty::{Disr, ParameterEnvironment};
2323
use ty::TypeVariants::*;
2424

25-
use rustc_const_eval::{ConstInt, ConstIsize, ConstUsize};
25+
use rustc_const_math::{ConstInt, ConstIsize, ConstUsize};
2626

2727
use std::cmp;
2828
use std::hash::{Hash, SipHasher, Hasher};

src/librustc_const_eval/Cargo.toml renamed to src/librustc_const_math/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
authors = ["The Rust Project Developers"]
3-
name = "rustc_const_eval"
3+
name = "rustc_const_math"
44
version = "0.0.0"
55

66
[lib]
7-
name = "rustc_const_eval"
7+
name = "rustc_const_math"
88
path = "lib.rs"
99
crate-type = ["dylib"]
1010

File renamed without changes.

0 commit comments

Comments
 (0)