diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-04-29 11:14:55 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-04-29 11:19:16 +1000 |
| commit | 6ce258f6572425d10f3ae6e76340d3f2a45dac12 (patch) | |
| tree | cc15bd901c2257849da1caf222b07127b6baa0cc /compiler/rustc_middle/src/ty/adt.rs | |
| parent | 4814fd0a4bcc2288ba15fb212610bdf3d1d5eb11 (diff) | |
| download | rust-6ce258f6572425d10f3ae6e76340d3f2a45dac12.tar.gz rust-6ce258f6572425d10f3ae6e76340d3f2a45dac12.zip | |
Remove `extern crate rustc_macros` from `rustc_middle`.
Diffstat (limited to 'compiler/rustc_middle/src/ty/adt.rs')
| -rw-r--r-- | compiler/rustc_middle/src/ty/adt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/adt.rs b/compiler/rustc_middle/src/ty/adt.rs index a7f1ba46b61..87b6a607952 100644 --- a/compiler/rustc_middle/src/ty/adt.rs +++ b/compiler/rustc_middle/src/ty/adt.rs @@ -12,6 +12,7 @@ use rustc_hir as hir; use rustc_hir::def::{CtorKind, DefKind, Res}; use rustc_hir::def_id::DefId; use rustc_index::{IndexSlice, IndexVec}; +use rustc_macros::{HashStable, TyDecodable, TyEncodable}; use rustc_query_system::ich::StableHashingContext; use rustc_session::DataTypeKind; use rustc_span::symbol::sym; @@ -582,8 +583,7 @@ impl<'tcx> AdtDef<'tcx> { } } -#[derive(Clone, Copy, Debug)] -#[derive(HashStable)] +#[derive(Clone, Copy, Debug, HashStable)] pub enum Representability { Representable, Infinite(ErrorGuaranteed), |
