about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2018-11-23 10:05:51 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2018-11-23 10:05:51 +0100
commit311c8e29b1686ca40c25826f798c31edaecd366e (patch)
tree116eca1e913ee1b704abdb4d21b9a79d70a46e81
parentff7da3264e0b848cf728f0f20a44cd1c3172ec89 (diff)
downloadrust-311c8e29b1686ca40c25826f798c31edaecd366e.tar.gz
rust-311c8e29b1686ca40c25826f798c31edaecd366e.zip
rustup https://github.com/rust-lang/rust/pull/54071/
-rw-r--r--clippy_lints/src/types.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/types.rs b/clippy_lints/src/types.rs
index e5e3138acf6..d7adcd17981 100644
--- a/clippy_lints/src/types.rs
+++ b/clippy_lints/src/types.rs
@@ -1064,8 +1064,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for CastPass {
             if_chain!{
                 if let ty::RawPtr(from_ptr_ty) = &cast_from.sty;
                 if let ty::RawPtr(to_ptr_ty) = &cast_to.sty;
-                if let Some(from_align) = cx.layout_of(from_ptr_ty.ty).ok().map(|a| a.align.abi());
-                if let Some(to_align) = cx.layout_of(to_ptr_ty.ty).ok().map(|a| a.align.abi());
+                if let Some(from_align) = cx.layout_of(from_ptr_ty.ty).ok().map(|a| a.align.abi);
+                if let Some(to_align) = cx.layout_of(to_ptr_ty.ty).ok().map(|a| a.align.abi);
                 if from_align < to_align;
                 // with c_void, we inherently need to trust the user
                 if ! (