diff options
| author | bors <bors@rust-lang.org> | 2025-07-11 05:27:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-07-11 05:27:32 +0000 |
| commit | 855e0fe46e68d94e9f6147531b75ac2d488c548e (patch) | |
| tree | e7d73ebfdb909118cf6e79acac8a64a6f414f54b /compiler/rustc_middle/src | |
| parent | cdac44e608c3df9a241e0a1b53b3f62af250dbf1 (diff) | |
| parent | 25eb3829e5661ab85067188ca9e6586c29aed6e9 (diff) | |
| download | rust-855e0fe46e68d94e9f6147531b75ac2d488c548e.tar.gz rust-855e0fe46e68d94e9f6147531b75ac2d488c548e.zip | |
Auto merge of #142911 - mejrs:unsized, r=compiler-errors
Remove support for dynamic allocas Followup to rust-lang/rust#141811
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/traits/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/traits/mod.rs b/compiler/rustc_middle/src/traits/mod.rs index 1a5a9765ce7..5bdde3a514e 100644 --- a/compiler/rustc_middle/src/traits/mod.rs +++ b/compiler/rustc_middle/src/traits/mod.rs @@ -412,6 +412,10 @@ pub enum ObligationCauseCode<'tcx> { /// Obligations emitted during the normalization of a free type alias. TypeAlias(ObligationCauseCodeHandle<'tcx>, Span, DefId), + + /// Only reachable if the `unsized_fn_params` feature is used. Unsized function arguments must + /// be place expressions because we can't store them in MIR locals as temporaries. + UnsizedNonPlaceExpr(Span), } /// Whether a value can be extracted into a const. |
