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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+2-2
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.
File renamed without changes.
File renamed without changes.

src/librustc_const_eval/lib.rs renamed to src/librustc_const_math/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//!
1515
//! This API is completely unstable and subject to change.
1616
17-
#![crate_name = "rustc_const_eval"]
17+
#![crate_name = "rustc_const_math"]
1818
#![unstable(feature = "rustc_private", issue = "27812")]
1919
#![crate_type = "dylib"]
2020
#![crate_type = "rlib"]
File renamed without changes.

src/librustc_metadata/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ rbml = { path = "../librbml" }
1515
rustc = { path = "../librustc" }
1616
rustc_back = { path = "../librustc_back" }
1717
rustc_bitflags = { path = "../librustc_bitflags" }
18-
rustc_const_eval = { path = "../librustc_const_eval" }
18+
rustc_const_math = { path = "../librustc_const_math" }
1919
rustc_front = { path = "../librustc_front" }
2020
rustc_llvm = { path = "../librustc_llvm" }
2121
serialize = { path = "../libserialize" }

src/librustc_metadata/decoder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use rustc::ty::subst;
3636
use rustc::ty::{ImplContainer, TraitContainer};
3737
use rustc::ty::{self, Ty, TyCtxt, TypeFoldable, VariantKind};
3838

39-
use rustc_const_eval::ConstInt;
39+
use rustc_const_math::ConstInt;
4040

4141
use rustc::mir;
4242
use rustc::mir::visit::MutVisitor;

src/librustc_metadata/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extern crate rustc;
3737
extern crate rustc_back;
3838
extern crate rustc_front;
3939
extern crate rustc_llvm;
40-
extern crate rustc_const_eval;
40+
extern crate rustc_const_math;
4141

4242
pub use rustc::middle;
4343

src/librustc_mir/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ graphviz = { path = "../libgraphviz" }
1313
log = { path = "../liblog" }
1414
rustc = { path = "../librustc" }
1515
rustc_back = { path = "../librustc_back" }
16-
rustc_const_eval = { path = "../librustc_const_eval" }
16+
rustc_const_math = { path = "../librustc_const_math" }
1717
rustc_data_structures = { path = "../librustc_data_structures" }
1818
rustc_front = { path = "../librustc_front" }
1919
syntax = { path = "../libsyntax" }

src/librustc_mir/build/scope.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ use rustc::mir::repr::*;
9595
use syntax::codemap::{Span, DUMMY_SP};
9696
use syntax::parse::token::intern_and_get_ident;
9797
use rustc::middle::const_eval::ConstVal;
98-
use rustc_const_eval::ConstInt;
98+
use rustc_const_math::ConstInt;
9999

100100
pub struct Scope<'tcx> {
101101
/// the scope-id within the scope_datas

src/librustc_mir/hair/cx/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use hair::*;
1212
use rustc_data_structures::fnv::FnvHashMap;
13-
use rustc_const_eval::ConstInt;
13+
use rustc_const_math::ConstInt;
1414
use hair::cx::Cx;
1515
use hair::cx::block;
1616
use hair::cx::to_ref::ToRef;

src/librustc_mir/hair/cx/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use rustc::ty::{self, Ty, TyCtxt};
2626
use syntax::codemap::Span;
2727
use syntax::parse::token;
2828
use rustc_front::hir;
29-
use rustc_const_eval::{ConstInt, ConstUsize};
29+
use rustc_const_math::{ConstInt, ConstUsize};
3030

3131
#[derive(Copy, Clone)]
3232
pub struct Cx<'a, 'tcx: 'a> {

src/librustc_mir/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern crate rustc_data_structures;
3232
extern crate rustc_front;
3333
extern crate rustc_back;
3434
extern crate syntax;
35-
extern crate rustc_const_eval;
35+
extern crate rustc_const_math;
3636

3737
pub mod build;
3838
pub mod graphviz;

src/librustc_trans/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ graphviz = { path = "../libgraphviz" }
1616
log = { path = "../liblog" }
1717
rustc = { path = "../librustc" }
1818
rustc_back = { path = "../librustc_back" }
19-
rustc_const_eval = { path = "../librustc_const_eval" }
19+
rustc_const_math = { path = "../librustc_const_math" }
2020
rustc_data_structures = { path = "../librustc_data_structures" }
2121
rustc_front = { path = "../librustc_front" }
2222
rustc_llvm = { path = "../librustc_llvm" }

src/librustc_trans/consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use rustc::ty::adjustment::{AdjustUnsafeFnPointer, AdjustMutToConstPointer};
3838
use rustc::ty::{self, Ty, TyCtxt};
3939
use rustc::ty::cast::{CastTy,IntTy};
4040
use util::nodemap::NodeMap;
41-
use rustc_const_eval::{ConstInt, ConstMathErr, ConstUsize, ConstIsize};
41+
use rustc_const_math::{ConstInt, ConstMathErr, ConstUsize, ConstIsize};
4242

4343
use rustc_front::hir;
4444

src/librustc_trans/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub extern crate rustc_llvm as llvm;
5151
extern crate rustc_mir;
5252
extern crate rustc_platform_intrinsics as intrinsics;
5353
extern crate serialize;
54-
extern crate rustc_const_eval;
54+
extern crate rustc_const_math;
5555

5656
#[macro_use] extern crate log;
5757
#[macro_use] extern crate syntax;

src/librustc_trans/mir/constant.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use llvm::ValueRef;
1212
use rustc::ty::{Ty, TypeFoldable};
1313
use rustc::middle::const_eval::{self, ConstVal};
14-
use rustc_const_eval::ConstInt::*;
14+
use rustc_const_math::ConstInt::*;
1515
use rustc::mir::repr as mir;
1616
use abi;
1717
use common::{self, BlockAndBuilder, C_bool, C_bytes, C_floating_f64, C_integral,

src/librustc_trans/mir/rvalue.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use llvm::ValueRef;
1212
use rustc::ty::{self, Ty};
1313
use rustc::ty::cast::{CastTy, IntTy};
1414
use middle::const_eval::ConstVal;
15-
use rustc_const_eval::ConstInt;
15+
use rustc_const_math::ConstInt;
1616
use rustc::mir::repr as mir;
1717

1818
use asm;

src/librustc_typeck/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ arena = { path = "../libarena" }
1515
fmt_macros = { path = "../libfmt_macros" }
1616
rustc = { path = "../librustc" }
1717
rustc_back = { path = "../librustc_back" }
18-
rustc_const_eval = { path = "../librustc_const_eval" }
18+
rustc_const_math = { path = "../librustc_const_math" }
1919
rustc_front = { path = "../librustc_front" }
2020
rustc_platform_intrinsics = { path = "../librustc_platform_intrinsics" }

src/librustc_typeck/astconv.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ use rscope::{self, UnelidableRscope, RegionScope, ElidableRscope,
6565
use util::common::{ErrorReported, FN_OUTPUT_NAME};
6666
use util::nodemap::FnvHashSet;
6767

68-
use rustc_const_eval::ConstInt;
68+
use rustc_const_math::ConstInt;
6969

7070
use syntax::{abi, ast};
7171
use syntax::codemap::{Span, Pos};

src/librustc_typeck/collect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ use util::common::{ErrorReported, MemoizationMap};
8181
use util::nodemap::{FnvHashMap, FnvHashSet};
8282
use write_ty_to_tcx;
8383

84-
use rustc_const_eval::ConstInt;
84+
use rustc_const_math::ConstInt;
8585

8686
use std::cell::RefCell;
8787
use std::collections::HashSet;

src/librustc_typeck/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ extern crate rustc;
9292
extern crate rustc_platform_intrinsics as intrinsics;
9393
extern crate rustc_front;
9494
extern crate rustc_back;
95-
extern crate rustc_const_eval;
95+
extern crate rustc_const_math;
9696

9797
pub use rustc::dep_graph;
9898
pub use rustc::front;

src/test/auxiliary/dummy_mir_pass.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
#[macro_use] extern crate rustc;
1717
extern crate rustc_front;
1818
extern crate rustc_plugin;
19-
extern crate rustc_const_eval;
19+
extern crate rustc_const_math;
2020
extern crate syntax;
2121

2222
use rustc::mir::transform::{self, MirPass};
2323
use rustc::mir::repr::{Mir, Literal};
2424
use rustc::mir::visit::MutVisitor;
2525
use rustc::ty;
2626
use rustc::middle::const_eval::ConstVal;
27-
use rustc_const_eval::ConstInt;
27+
use rustc_const_math::ConstInt;
2828
use rustc_plugin::Registry;
2929

3030
use syntax::ast::NodeId;

0 commit comments

Comments
 (0)