bors fdaaaf9f92 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](https://github.com/rust-lang/rust/pull/116930#issuecomment-1784654073) for some more explanation and context.

Also fixes https://github.com/rust-lang/rust/issues/116929.

Cc `@oli-obk` `@lcnr`
2023-11-08 20:42:32 +00:00
..
2023-05-01 16:15:13 +08:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-08-06 13:34:53 +00:00
2023-04-16 11:38:52 +00:00
2023-01-31 17:26:06 +00:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:35:59 -03:00
2023-04-16 11:38:52 +00:00
2023-07-27 15:51:02 +00:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:54:13 -03:00
2023-02-16 11:42:35 -03:00
2023-04-03 15:59:21 +00:00
2023-02-16 11:42:35 -03:00
2023-07-27 15:51:02 +00:00
2023-04-03 15:59:21 +00:00
2023-01-12 02:28:38 +00:00
2023-01-12 02:28:38 +00:00
2023-01-12 02:28:38 +00:00
2023-07-27 15:51:02 +00:00
2023-10-08 10:06:17 +00:00
2023-05-05 20:36:21 +02:00
2023-10-16 16:29:35 +00:00
2023-10-16 16:29:35 +00:00
2023-07-29 11:47:26 +02:00
2023-01-15 19:46:20 +00:00
2023-08-06 13:34:53 +00:00
2023-08-07 17:16:10 +00:00
2023-04-16 11:38:52 +00:00