Skip to content

Commit 754b4c0

Browse files
authored
Merge pull request #3452 from matthiaskrgr/rustup
rustup rust-lang/rust#54071
2 parents 61501b2 + 311c8e2 commit 754b4c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,8 +1064,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for CastPass {
10641064
if_chain!{
10651065
if let ty::RawPtr(from_ptr_ty) = &cast_from.sty;
10661066
if let ty::RawPtr(to_ptr_ty) = &cast_to.sty;
1067-
if let Some(from_align) = cx.layout_of(from_ptr_ty.ty).ok().map(|a| a.align.abi());
1068-
if let Some(to_align) = cx.layout_of(to_ptr_ty.ty).ok().map(|a| a.align.abi());
1067+
if let Some(from_align) = cx.layout_of(from_ptr_ty.ty).ok().map(|a| a.align.abi);
1068+
if let Some(to_align) = cx.layout_of(to_ptr_ty.ty).ok().map(|a| a.align.abi);
10691069
if from_align < to_align;
10701070
// with c_void, we inherently need to trust the user
10711071
if ! (

0 commit comments

Comments
 (0)