We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mir::Constant::user_ty
1 parent 20f7379 commit 6ca1d87Copy full SHA for 6ca1d87
compiler/rustc_middle/src/mir/type_foldable.rs
@@ -342,8 +342,8 @@ impl<'tcx> TypeFoldable<'tcx> for Constant<'tcx> {
342
}
343
344
fn super_visit_with<V: TypeVisitor<'tcx>>(&self, visitor: &mut V) -> ControlFlow<V::BreakTy> {
345
- self.literal.visit_with(visitor)
346
- // FIXME: should this be visiting the `user_ty`, too?
+ self.literal.visit_with(visitor)?;
+ self.user_ty.visit_with(visitor)
347
348
349
0 commit comments