Commit cced63b
committed
Auto merge of #116930 - RalfJung:raw-ptr-match, r=davidtwco
patterns: reject raw pointers that are not just integers
Matching against `0 as *const i32` is fine, matching against `&42 as *const i32` is not.
This extends the existing check against function pointers and wide pointers: we now uniformly reject all these pointer types during valtree construction, and then later lint because of that. See [here](rust-lang/rust#116930 (comment)) for some more explanation and context.
Also fixes rust-lang/rust#116929.
Cc `@oli-obk` `@lcnr`File tree
0 file changed
+0
-0
lines changed0 file changed
+0
-0
lines changed
0 commit comments