derive TypeVisitable and TypeFoldable for mir types

This commit is contained in:
Oli Scherer 2022-09-15 14:42:43 +00:00
parent d376012a43
commit a5ab8da1e2
5 changed files with 25 additions and 312 deletions

View file

@ -2028,6 +2028,7 @@ impl<'tcx> Debug for Rvalue<'tcx> {
/// particular, one must be wary of `NaN`!
#[derive(Clone, Copy, PartialEq, TyEncodable, TyDecodable, Hash, HashStable)]
#[derive(TypeFoldable, TypeVisitable)]
pub struct Constant<'tcx> {
pub span: Span,