diff options
| author | Igor Matuszewski <Xanewok@gmail.com> | 2019-01-12 16:13:33 +0100 |
|---|---|---|
| committer | Igor Matuszewski <Xanewok@gmail.com> | 2019-01-12 16:18:55 +0100 |
| commit | 7948b184146c961e552716ead12bcb443cdd07e9 (patch) | |
| tree | 59ba5f72aa034efe6026079bb9a7ad9564a6b522 /src/librustc_codegen_llvm/debuginfo | |
| parent | 1190f7cdf7a62e25c9a8eaf58e0906849692bf2b (diff) | |
| download | rust-7948b184146c961e552716ead12bcb443cdd07e9.tar.gz rust-7948b184146c961e552716ead12bcb443cdd07e9.zip | |
Use `ptr::eq` where applicable
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo')
| -rw-r--r-- | src/librustc_codegen_llvm/debuginfo/metadata.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/metadata.rs b/src/librustc_codegen_llvm/debuginfo/metadata.rs index 72ed55df946..6deedd0b5ea 100644 --- a/src/librustc_codegen_llvm/debuginfo/metadata.rs +++ b/src/librustc_codegen_llvm/debuginfo/metadata.rs @@ -47,7 +47,7 @@ use syntax_pos::{self, Span, FileName}; impl PartialEq for llvm::Metadata { fn eq(&self, other: &Self) -> bool { - self as *const _ == other as *const _ + ptr::eq(self, other) } } |
