Compilation fixes

This commit is contained in:
est31 2016-11-20 06:44:56 +01:00
parent 8bcb021991
commit 9e99213831
4 changed files with 5 additions and 2 deletions

2
src/Cargo.lock generated
View File

@ -201,7 +201,6 @@ dependencies = [
name = "proc_macro" name = "proc_macro"
version = "0.0.0" version = "0.0.0"
dependencies = [ dependencies = [
"rustc_i128 0.0.0",
"syntax 0.0.0", "syntax 0.0.0",
] ]
@ -388,6 +387,7 @@ dependencies = [
"log 0.0.0", "log 0.0.0",
"rustc 0.0.0", "rustc 0.0.0",
"rustc_data_structures 0.0.0", "rustc_data_structures 0.0.0",
"rustc_i128 0.0.0",
"serialize 0.0.0", "serialize 0.0.0",
"syntax 0.0.0", "syntax 0.0.0",
"syntax_pos 0.0.0", "syntax_pos 0.0.0",

View File

@ -16,3 +16,4 @@ serialize = { path = "../libserialize" }
log = { path = "../liblog" } log = { path = "../liblog" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../libsyntax_pos" }
rustc_i128 = { path = "../librustc_i128" }

View File

@ -33,6 +33,8 @@ extern crate serialize as rustc_serialize;
#[macro_use] extern crate syntax; #[macro_use] extern crate syntax;
extern crate syntax_pos; extern crate syntax_pos;
extern crate rustc_i128;
const ATTR_DIRTY: &'static str = "rustc_dirty"; const ATTR_DIRTY: &'static str = "rustc_dirty";
const ATTR_CLEAN: &'static str = "rustc_clean"; const ATTR_CLEAN: &'static str = "rustc_clean";
const ATTR_DIRTY_METADATA: &'static str = "rustc_metadata_dirty"; const ATTR_DIRTY_METADATA: &'static str = "rustc_metadata_dirty";

View File

@ -1614,7 +1614,7 @@ impl PrimitiveType {
} }
pub fn as_str(&self) -> &'static str { pub fn as_str(&self) -> &'static str {
use PrimitiveType::*; use self::PrimitiveType::*;
match *self { match *self {
Isize => "isize", Isize => "isize",
I8 => "i8", I8 => "i8",