diff options
author | Alan Egerton <eggyal@gmail.com> | 2022-06-17 10:53:29 +0100 |
---|---|---|
committer | Alan Egerton <eggyal@gmail.com> | 2022-07-05 22:25:15 +0100 |
commit | e4b9625b87c4d3b5845ea5660cf84739de224192 (patch) | |
tree | 932111ee5ad67cb91e90508f290f5649b62cd9cf /compiler/rustc_middle/src/thir.rs | |
parent | bca894909cdb49b510dc6f60edbfa1465a948d09 (diff) | |
download | rust-e4b9625b87c4d3b5845ea5660cf84739de224192.tar.gz |
Add #[derive(TypeVisitable)]
Diffstat (limited to 'compiler/rustc_middle/src/thir.rs')
-rw-r--r-- | compiler/rustc_middle/src/thir.rs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/compiler/rustc_middle/src/thir.rs b/compiler/rustc_middle/src/thir.rs index 120d09ee353..03c11c2863f 100644 --- a/compiler/rustc_middle/src/thir.rs +++ b/compiler/rustc_middle/src/thir.rs @@ -191,18 +191,8 @@ pub enum StmtKind<'tcx> { #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] rustc_data_structures::static_assert_size!(Expr<'_>, 104); -#[derive( - Clone, - Debug, - Copy, - PartialEq, - Eq, - Hash, - HashStable, - TyEncodable, - TyDecodable, - TypeFoldable -)] +#[derive(Clone, Debug, Copy, PartialEq, Eq, Hash, HashStable, TyEncodable, TyDecodable)] +#[derive(TypeFoldable, TypeVisitable)] pub struct LocalVarId(pub hir::HirId); /// A THIR expression. |