diff options
| author | bors <bors@rust-lang.org> | 2023-12-11 14:33:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-11 14:33:16 +0000 |
| commit | c8213a49bb4508c95f29cd5689737c65ac786862 (patch) | |
| tree | 2d5099ee219756347d1c3b4753e09770dbfe173f /tests/rustdoc-js-std/osstring-to-string.js | |
| parent | 1f9b674bbf44eec9a40639e16ee95f2050d7a591 (diff) | |
| parent | a2ea760b88280d459804d10b9ead954495aa41e5 (diff) | |
| download | rust-c8213a49bb4508c95f29cd5689737c65ac786862.tar.gz rust-c8213a49bb4508c95f29cd5689737c65ac786862.zip | |
Auto merge of #117758 - Urgau:lint_pointer_trait_comparisons, r=davidtwco
Add lint against ambiguous wide pointer comparisons This PR is the resolution of https://github.com/rust-lang/rust/issues/106447 decided in https://github.com/rust-lang/rust/issues/117717 by T-lang. ## `ambiguous_wide_pointer_comparisons` *warn-by-default* The `ambiguous_wide_pointer_comparisons` lint checks comparison of `*const/*mut ?Sized` as the operands. ### Example ```rust let ab = (A, B); let a = &ab.0 as *const dyn T; let b = &ab.1 as *const dyn T; let _ = a == b; ``` ### Explanation The comparison includes metadata which may not be expected. ------- This PR also drops `clippy::vtable_address_comparisons` which is superseded by this one. ~~One thing: is the current naming right? `invalid` seems a bit too much.~~ Fixes https://github.com/rust-lang/rust/issues/117717
Diffstat (limited to 'tests/rustdoc-js-std/osstring-to-string.js')
0 files changed, 0 insertions, 0 deletions
