Skip to content

Commit 66b840c

Browse files
committed
Fix after rebase
1 parent 8577bb4 commit 66b840c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/infer/error_reporting/need_type_info.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
122122
let mut printer = ty::print::FmtPrinter::new(self.tcx, &mut s, Namespace::TypeNS);
123123
let ty_vars = self.type_variables.borrow();
124124
let getter = move |ty_vid| {
125-
if let TypeVariableOrigin::TypeParameterDefinition(_, name) =
126-
*ty_vars.var_origin(ty_vid) {
125+
if let TypeVariableOriginKind::TypeParameterDefinition(name) =
126+
ty_vars.var_origin(ty_vid).kind {
127127
return Some(name.to_string());
128128
}
129129
None

0 commit comments

Comments
 (0)