From 9e99213831a876bdb9b84dbf30462e4a845cf84f Mon Sep 17 00:00:00 2001 From: est31 Date: Sun, 20 Nov 2016 06:44:56 +0100 Subject: [PATCH] Compilation fixes --- src/Cargo.lock | 2 +- src/librustc_incremental/Cargo.toml | 1 + src/librustc_incremental/lib.rs | 2 ++ 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",