rust/tests/ui/rfcs
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
..
rfc-0107-bind-by-move-pattern-guards Better group RFC ui tests together 2023-06-05 16:09:46 +00:00
rfc-1014-stdout-existential-crisis Better group RFC ui tests together 2023-06-05 16:09:46 +00:00
rfc-1445-restrict-constants-in-patterns make pointer_structural_match warn-by-default 2023-10-28 17:02:18 +02:00
rfc-1623-static Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
rfc-1717-dllimport Better group RFC ui tests together 2023-06-05 16:09:46 +00:00
rfc-1789-as-cell Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rfc-1857-stabilize-drop-order Better group RFC ui tests together 2023-06-05 16:09:46 +00:00
rfc-1937-termination-trait Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
rfc-2005-default-binding-mode Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
rfc-2008-non-exhaustive Suggest to set lint level on whole match 2023-11-04 14:44:00 +01:00
rfc-2027-object-safe-for-dispatch Only consider object candidates for object-safe dyn types 2023-08-15 01:01:44 +00:00
rfc-2091-track-caller s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
rfc-2093-infer-outlives remove trailing dots 2023-10-08 10:06:17 +00:00
rfc-2126-crate-paths Better group RFC ui tests together 2023-06-05 16:09:46 +00:00
rfc-2126-extern-absolute-paths Better group RFC ui tests together 2023-06-05 16:09:46 +00:00
rfc-2151-raw-identifiers Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rfc-2175-or-if-while-let Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rfc-2294-if-let-guard Use PlaceMention for match scrutinees. 2023-10-24 15:30:17 +00:00
rfc-2302-self-struct-ctor Better group RFC ui tests together 2023-06-05 16:09:46 +00:00
rfc-2306-convert-id Better group RFC ui tests together 2023-06-05 16:09:46 +00:00
rfc-2361-dbg-macro Use PlaceMention for match scrutinees. 2023-10-24 15:30:17 +00:00
rfc-2396-target_feature-11 Pretty print Fn traits in rustc_on_unimplemented 2023-11-02 20:57:05 +00:00
rfc-2397-do-not-recommend Better group RFC ui tests together 2023-06-05 16:09:46 +00:00
rfc-2421-unreserve-pure-offsetof-sizeof-alignof Better group RFC ui tests together 2023-06-05 16:09:46 +00:00
rfc-2457-non-ascii-idents Mention the syntax for use on mod foo; if foo doesn't exist 2023-10-21 15:56:01 +00:00
rfc-2497-if-let-chains Address review comments 2023-09-13 15:00:31 +00:00
rfc-2528-type-changing-struct-update Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
rfc-2565-param-attrs Adjust UI tests for unit_bindings 2023-06-12 20:24:48 +08:00
rfc-2627-raw-dylib Rollup merge of #113754 - cjgillot:simplify-foreign, r=petrochenkov 2023-07-19 22:37:07 +05:30
rfc-2632-const-trait-impl Rollup merge of #117516 - matthiaskrgr:test_effects_113375_oob, r=fee1-dead 2023-11-06 20:31:55 +01:00
rfc-3348-c-string-literals add proc macro test 2023-07-23 10:09:43 +00:00