about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2019-11-16 11:53:44 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2019-11-17 22:37:16 +0100
commit3d97a91e7f896e8fbb94fef43dd57f2e6fb061c8 (patch)
tree7e27f0cc47c48c606183628094ec9bcee0d6812f /src/libsyntax
parent5b4dad7ad2666237a45e0467374fd744dd01bb6e (diff)
downloadrust-3d97a91e7f896e8fbb94fef43dd57f2e6fb061c8.tar.gz
rust-3d97a91e7f896e8fbb94fef43dd57f2e6fb061c8.zip
Remove extern crate.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs1
-rw-r--r--src/libsyntax/attr/builtin.rs1
-rw-r--r--src/libsyntax/lib.rs2
-rw-r--r--src/libsyntax/token.rs1
4 files changed, 3 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index aa658986d87..a9f03e4af5b 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -37,6 +37,7 @@ use rustc_data_structures::sync::Lrc;
 use rustc_data_structures::thin_vec::ThinVec;
 use rustc_index::vec::Idx;
 use rustc_serialize::{self, Decoder, Encoder};
+use rustc_macros::HashStable_Generic;
 
 use std::fmt;
 
diff --git a/src/libsyntax/attr/builtin.rs b/src/libsyntax/attr/builtin.rs
index 6032e8a5b21..c10541c8c7e 100644
--- a/src/libsyntax/attr/builtin.rs
+++ b/src/libsyntax/attr/builtin.rs
@@ -9,6 +9,7 @@ use errors::{Applicability, Handler};
 use std::num::NonZeroU32;
 use syntax_pos::hygiene::Transparency;
 use syntax_pos::{symbol::Symbol, symbol::sym, Span};
+use rustc_macros::HashStable_Generic;
 
 use super::{mark_used, MetaItemKind};
 
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs
index 23db4cf985c..e3eca75dfe7 100644
--- a/src/libsyntax/lib.rs
+++ b/src/libsyntax/lib.rs
@@ -19,8 +19,6 @@
 
 #![recursion_limit="256"]
 
-#[macro_use] extern crate rustc_macros;
-
 pub use errors;
 use rustc_data_structures::sync::Lock;
 use rustc_index::bit_set::GrowableBitSet;
diff --git a/src/libsyntax/token.rs b/src/libsyntax/token.rs
index 8099b55780c..fd1623384a4 100644
--- a/src/libsyntax/token.rs
+++ b/src/libsyntax/token.rs
@@ -15,6 +15,7 @@ use syntax_pos::{self, Span, DUMMY_SP};
 use std::fmt;
 use std::mem;
 use rustc_data_structures::sync::Lrc;
+use rustc_macros::HashStable_Generic;
 
 #[derive(Clone, PartialEq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]
 pub enum BinOpToken {