Skip to content

Commit 1efe0b3

Browse files
committed
Rename variables in rustc’s SelectionContext::copy_clone_conditions
1 parent 00721de commit 1efe0b3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/librustc/traits/select.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -2086,10 +2086,9 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
20862086

20872087
ty::TyClosure(def_id, substs) => {
20882088
let trait_id = obligation.predicate.def_id();
2089-
let copy_closures = Some(trait_id) == self.tcx().lang_items().copy_trait();
2090-
let clone_closures = Some(trait_id) == self.tcx().lang_items().clone_trait();
2091-
2092-
if copy_closures || clone_closures {
2089+
let is_copy_trait = Some(trait_id) == self.tcx().lang_items().copy_trait();
2090+
let is_clone_trait = Some(trait_id) == self.tcx().lang_items().clone_trait();
2091+
if is_copy_trait || is_clone_trait {
20932092
Where(ty::Binder(substs.upvar_tys(def_id, self.tcx()).collect()))
20942093
} else {
20952094
Never

0 commit comments

Comments
 (0)