1
Fork 0

Remove unused Lift derives.

I found these by commenting out all `Lift` derives and then adding back
the ones that were necessary to successfully compile.
This commit is contained in:
Nicholas Nethercote 2023-09-14 09:46:18 +10:00
parent 6b1980f9cf
commit af7d3e501b
17 changed files with 49 additions and 51 deletions

View file

@ -18,6 +18,9 @@ use std::fmt;
/// Monomorphization happens on-the-fly and no monomorphized MIR is ever created. Instead, this type
/// simply couples a potentially generic `InstanceDef` with some args, and codegen and const eval
/// will do all required substitution as they run.
///
/// Note: the `Lift` impl is currently not used by rustc, but is used by
/// rustc_codegen_cranelift when the `jit` feature is enabled.
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug, TyEncodable, TyDecodable)]
#[derive(HashStable, Lift, TypeFoldable, TypeVisitable)]
pub struct Instance<'tcx> {