File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
compiler/rustc_mir_build/src/thir/cx Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -650,6 +650,9 @@ impl<'tcx> Cx<'tcx> {
650
650
} else {
651
651
None
652
652
} ;
653
+ debug ! ( ?var) ;
654
+ let substs = self . typeck_results . node_substs ( source. hir_id ) ;
655
+ debug ! ( ?substs) ;
653
656
654
657
let source = if let Some ( ( did, offset, var_ty) ) = var {
655
658
let param_env_ty = self . param_env . and ( var_ty) ;
@@ -671,7 +674,7 @@ impl<'tcx> Cx<'tcx> {
671
674
Some ( did) => {
672
675
// in case we are offsetting from a computed discriminant
673
676
// and not the beginning of discriminants (which is always `0`)
674
- let substs = InternalSubsts :: identity_for_item ( tcx , did ) ;
677
+
675
678
let kind =
676
679
ExprKind :: NamedConst { def_id : did, substs, user_ty : None } ;
677
680
let lhs = self . thir . exprs . push ( Expr {
You can’t perform that action at this time.
0 commit comments