diff options
| author | est31 <MTest31@outlook.com> | 2016-11-20 06:44:56 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2016-12-30 15:17:27 +0100 |
| commit | 9e99213831a876bdb9b84dbf30462e4a845cf84f (patch) | |
| tree | 9c78b0e98f67b3225d58f051171b26a90a20c6ac | |
| parent | 8bcb021991879b676769eb593c043abe4837369b (diff) | |
Compilation fixes
| -rw-r--r-- | src/Cargo.lock | 2 | ||||
| -rw-r--r-- | src/librustc_incremental/Cargo.toml | 1 | ||||
| -rw-r--r-- | src/librustc_incremental/lib.rs | 2 | ||||
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 2 |
4 files changed, 5 insertions, 2 deletions
diff --git a/src/Cargo.lock b/src/Cargo.lock index 19e394f301b..b4455a34e49 100644 --- a/src/Cargo.lock +++ b/src/Cargo.lock @@ -201,7 +201,6 @@ dependencies = [ name = "proc_macro" version = "0.0.0" dependencies = [ - "rustc_i128 0.0.0", "syntax 0.0.0", ] @@ -388,6 +387,7 @@ dependencies = [ "log 0.0.0", "rustc 0.0.0", "rustc_data_structures 0.0.0", + "rustc_i128 0.0.0", "serialize 0.0.0", "syntax 0.0.0", "syntax_pos 0.0.0", diff --git a/src/librustc_incremental/Cargo.toml b/src/librustc_incremental/Cargo.toml index e3ee7527545..8a38f36a5d1 100644 --- a/src/librustc_incremental/Cargo.toml +++ b/src/librustc_incremental/Cargo.toml @@ -16,3 +16,4 @@ serialize = { path = "../libserialize" } log = { path = "../liblog" } syntax = { path = "../libsyntax" } syntax_pos = { path = "../libsyntax_pos" } +rustc_i128 = { path = "../librustc_i128" } diff --git a/src/librustc_incremental/lib.rs b/src/librustc_incremental/lib.rs index ce73b14ef2d..d02e4f9b165 100644 --- a/src/librustc_incremental/lib.rs +++ b/src/librustc_incremental/lib.rs @@ -33,6 +33,8 @@ extern crate serialize as rustc_serialize; #[macro_use] extern crate syntax; extern crate syntax_pos; +extern crate rustc_i128; + const ATTR_DIRTY: &'static str = "rustc_dirty"; const ATTR_CLEAN: &'static str = "rustc_clean"; const ATTR_DIRTY_METADATA: &'static str = "rustc_metadata_dirty"; diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 1c8c63a1445..5978791fbc7 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -1614,7 +1614,7 @@ impl PrimitiveType { } pub fn as_str(&self) -> &'static str { - use PrimitiveType::*; + use self::PrimitiveType::*; match *self { Isize => "isize", I8 => "i8", |
