Skip to content

Commit 62d6ee3

Browse files
nit: what the heck is o
1 parent 899d9e6 commit 62d6ee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
114114
//
115115
// We rely on a few heuristics to identify cases where this root
116116
// obligation is more important than the leaf obligation:
117-
let (main_trait_predicate, o) = if let ty::PredicateKind::Clause(
117+
let (main_trait_predicate, main_obligation) = if let ty::PredicateKind::Clause(
118118
ty::ClauseKind::Trait(root_pred)
119119
) = root_obligation.predicate.kind().skip_binder()
120120
&& !leaf_trait_predicate.self_ty().skip_binder().has_escaping_bound_vars()
@@ -199,7 +199,7 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
199199
notes,
200200
parent_label,
201201
append_const_msg,
202-
} = self.on_unimplemented_note(main_trait_predicate, o, &mut long_ty_file);
202+
} = self.on_unimplemented_note(main_trait_predicate, main_obligation, &mut long_ty_file);
203203

204204
let have_alt_message = message.is_some() || label.is_some();
205205
let is_try_conversion = self.is_try_conversion(span, main_trait_ref.def_id());

0 commit comments

Comments
 (0)