about summary refs log tree commit diff
path: root/clippy_lints/src/casts
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-10-27 18:32:17 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-10-27 18:41:26 +0400
commit471d855a8e52492c6ea6c91e9eac77c692b92a4e (patch)
tree6dd7fab8a92098f584644e034b555a1c8cc88e06 /clippy_lints/src/casts
parent5b336fddd3558743a558d6e5da23504ddff99ca0 (diff)
downloadrust-471d855a8e52492c6ea6c91e9eac77c692b92a4e.tar.gz
rust-471d855a8e52492c6ea6c91e9eac77c692b92a4e.zip
Update tooling
Diffstat (limited to 'clippy_lints/src/casts')
-rw-r--r--clippy_lints/src/casts/ptr_as_ptr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/casts/ptr_as_ptr.rs b/clippy_lints/src/casts/ptr_as_ptr.rs
index c2b9253ec35..b9509ca656f 100644
--- a/clippy_lints/src/casts/ptr_as_ptr.rs
+++ b/clippy_lints/src/casts/ptr_as_ptr.rs
@@ -26,7 +26,7 @@ pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, msrv: Option<RustcVer
             (Mutability::Not, Mutability::Not) | (Mutability::Mut, Mutability::Mut));
         // The `U` in `pointer::cast` have to be `Sized`
         // as explained here: https://github.com/rust-lang/rust/issues/60602.
-        if to_pointee_ty.is_sized(cx.tcx.at(expr.span), cx.param_env);
+        if to_pointee_ty.is_sized(cx.tcx, cx.param_env);
         then {
             let mut applicability = Applicability::MachineApplicable;
             let cast_expr_sugg = Sugg::hir_with_applicability(cx, cast_expr, "_", &mut applicability);