make unevaluated const substs optional
This commit is contained in:
@@ -179,8 +179,8 @@ where
|
||||
{
|
||||
type BreakTy = V::BreakTy;
|
||||
|
||||
fn tcx_for_anon_const_substs(&self) -> TyCtxt<'tcx> {
|
||||
self.def_id_visitor.tcx()
|
||||
fn tcx_for_anon_const_substs(&self) -> Option<TyCtxt<'tcx>> {
|
||||
Some(self.def_id_visitor.tcx())
|
||||
}
|
||||
|
||||
fn visit_ty(&mut self, ty: Ty<'tcx>) -> ControlFlow<V::BreakTy> {
|
||||
|
||||
Reference in New Issue
Block a user