diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-09-15 15:05:03 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-09-15 15:05:03 +0000 |
| commit | 9d9306828c08a997c4994c9bb4ec36205dddd5cd (patch) | |
| tree | 8f2a36ed59eca6e567281277ff32bf2a628f828e /compiler/rustc_middle/src/mir | |
| parent | a5ab8da1e22c2cbfca30209ef30cd469a913f08a (diff) | |
| download | rust-9d9306828c08a997c4994c9bb4ec36205dddd5cd.tar.gz rust-9d9306828c08a997c4994c9bb4ec36205dddd5cd.zip | |
Replace more manual TypeFoldable and TypeVisitable impls with derives
Diffstat (limited to 'compiler/rustc_middle/src/mir')
| -rw-r--r-- | compiler/rustc_middle/src/mir/interpret/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/mir/interpret/mod.rs b/compiler/rustc_middle/src/mir/interpret/mod.rs index 0fc1217d571..5e3dfcbcc49 100644 --- a/compiler/rustc_middle/src/mir/interpret/mod.rs +++ b/compiler/rustc_middle/src/mir/interpret/mod.rs @@ -137,7 +137,7 @@ pub use self::pointer::{Pointer, PointerArithmetic, Provenance}; /// - A constant /// - A static #[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, TyEncodable, TyDecodable)] -#[derive(HashStable, Lift)] +#[derive(HashStable, Lift, TypeFoldable, TypeVisitable)] pub struct GlobalId<'tcx> { /// For a constant or static, the `Instance` of the item itself. /// For a promoted global, the `Instance` of the function they belong to. |
