<!-- Thank you for filing a bug report! 🐛 Please provide a short summary of the bug, along with any information you feel relevant to replicating the bug. --> I tried this code: ```rust #![feature(transmutability)] fn func(n: &i32) -> &'static i32 { unsafe{ core::mem::TransmuteFrom::<_, { core::mem::Assume::NOTHING }>::transmute(n) } } ``` I expected to see this happen: code doesn't compile Instead, this happened: code compiles The code didn't compile before #161251, so it may be caused by #163946 https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=b210e3e8210e93103d5780374ce126f9 ### Meta <!-- If you're using the stable version of the compiler, you should also check if the bug also exists in the beta or nightly versions. --> ``` rustc 1.101.0-nightly 2026-10-12 ``` </p> </details>
Activity
Rollup merge of rust-lang#164365 - lsunsi:avoid-erased-region-on-tran…
Unrolled build for #164365 in rollup 164430