Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e12a316

Browse files
committed
Auto merge of rust-lang#5776 - flip1995:rustup, r=flip1995
Rustup changelog: none r? @ghost
2 parents ac85692 + c41fcad commit e12a316

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/escape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl<'a, 'tcx> Delegate<'tcx> for EscapeDelegate<'a, 'tcx> {
150150
return;
151151
}
152152

153-
if is_non_trait_box(cmt.place.ty) && !self.is_large_box(cmt.place.ty) {
153+
if is_non_trait_box(cmt.place.ty()) && !self.is_large_box(cmt.place.ty()) {
154154
self.set.insert(cmt.hir_id);
155155
}
156156
return;

clippy_lints/src/needless_pass_by_value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl<'tcx> LateLintPass<'tcx> for NeedlessPassByValue {
110110

111111
let fn_def_id = cx.tcx.hir().local_def_id(hir_id);
112112

113-
let preds = traits::elaborate_predicates(cx.tcx, cx.param_env.caller_bounds.iter())
113+
let preds = traits::elaborate_predicates(cx.tcx, cx.param_env.caller_bounds().iter())
114114
.filter(|p| !p.is_global())
115115
.filter_map(|obligation| {
116116
if let ty::PredicateKind::Trait(poly_trait_ref, _) = obligation.predicate.kind() {

0 commit comments

Comments
 (0)