Remove extern crate rustc_macros
from numerous crates.
This commit is contained in:
parent
10505a1cc9
commit
4814fd0a4b
110 changed files with 99 additions and 94 deletions
|
@ -49,6 +49,7 @@ use rustc_data_structures::fingerprint::{Fingerprint, PackedFingerprint};
|
|||
use rustc_data_structures::stable_hasher::{HashStable, StableHasher, StableOrd, ToStableHashKey};
|
||||
use rustc_data_structures::AtomicRef;
|
||||
use rustc_hir::definitions::DefPathHash;
|
||||
use rustc_macros::{Decodable, Encodable};
|
||||
use std::fmt;
|
||||
use std::hash::Hash;
|
||||
|
||||
|
@ -285,8 +286,7 @@ pub struct DepKindStruct<Tcx: DepContext> {
|
|||
/// some independent path or string that persists between runs without
|
||||
/// the need to be mapped or unmapped. (This ensures we can serialize
|
||||
/// them even in the absence of a tcx.)
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[derive(Encodable, Decodable)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Encodable, Decodable)]
|
||||
pub struct WorkProductId {
|
||||
hash: Fingerprint,
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
|
|||
use rustc_data_structures::sync::{AtomicU32, AtomicU64, Lock, Lrc};
|
||||
use rustc_data_structures::unord::UnordMap;
|
||||
use rustc_index::IndexVec;
|
||||
use rustc_macros::{Decodable, Encodable};
|
||||
use rustc_serialize::opaque::{FileEncodeResult, FileEncoder};
|
||||
use std::assert_matches::assert_matches;
|
||||
use std::collections::hash_map::Entry;
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
extern crate tracing;
|
||||
#[macro_use]
|
||||
extern crate rustc_data_structures;
|
||||
#[macro_use]
|
||||
extern crate rustc_macros;
|
||||
|
||||
pub mod cache;
|
||||
pub mod dep_graph;
|
||||
|
|
|
@ -20,6 +20,7 @@ use rustc_data_structures::stable_hasher::Hash64;
|
|||
use rustc_data_structures::sync::Lock;
|
||||
use rustc_errors::DiagInner;
|
||||
use rustc_hir::def::DefKind;
|
||||
use rustc_macros::{Decodable, Encodable};
|
||||
use rustc_span::def_id::DefId;
|
||||
use rustc_span::Span;
|
||||
use thin_vec::ThinVec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue