Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #152702 - oli-obk:nonnulltransmute, r=scottmcm
Prepare NonNull for pattern types
Pull out the changes that affect some tests, but do not require pattern types.
See https://github.com/rust-lang/rust/pull/136006#discussion_r2806740338 for what triggered this PR
r? @scottmcm