Skip to content
Permalink
Browse files

Fix after rebase

  • Loading branch information...
varkor committed Jun 5, 2019
1 parent 8577bb4 commit 66b840c2408190206fc018a63de8d5b0a7ee9870
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/librustc/infer/error_reporting/need_type_info.rs
@@ -122,8 +122,8 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
let mut printer = ty::print::FmtPrinter::new(self.tcx, &mut s, Namespace::TypeNS);
let ty_vars = self.type_variables.borrow();
let getter = move |ty_vid| {
if let TypeVariableOrigin::TypeParameterDefinition(_, name) =
*ty_vars.var_origin(ty_vid) {
if let TypeVariableOriginKind::TypeParameterDefinition(name) =
ty_vars.var_origin(ty_vid).kind {
return Some(name.to_string());
}
None

0 comments on commit 66b840c

Please sign in to comment.
You can’t perform that action at this time.