rust/compiler/rustc_borrowck/src
Matthias Krüger db23a76217
Rollup merge of #141811 - mejrs:bye_locals, r=compiler-errors
Unimplement unsized_locals

Implements https://github.com/rust-lang/compiler-team/issues/630

Tracking issue here: https://github.com/rust-lang/rust/issues/111942

Note that this just removes the feature, not the implementation, and does not touch `unsized_fn_params`. This is because it is required to support `Box<dyn FnOnce()>: FnOnce()`.

There may be more that should be removed (possibly in follow up prs)
- the `forget_unsized` function and `forget` intrinsic.
- the `unsized_locals` test directory; I've just fixed up the tests for now
- various codegen support for unsized values and allocas

cc ``@JakobDegen`` ``@oli-obk`` ``@Noratrieb`` ``@programmerjake`` ``@bjorn3``

``@rustbot`` label F-unsized_locals

Fixes rust-lang/rust#79409
2025-06-14 11:27:10 +02:00
..
constraints Move placeholder handling to a proper preprocessing step 2025-06-03 12:20:15 +02:00
diagnostics Rollup merge of #141069 - chenyukang:yukang-fix-137486-suggest-mut, r=davidtwco 2025-06-12 22:09:41 +02:00
polonius Use an enum for SCC representatives, plus other code review 2025-06-04 13:26:08 +02:00
region_infer Auto merge of #140466 - amandasystems:move-to-preprocessing-step, r=lcnr 2025-06-05 05:27:41 +00:00
type_check Unimplement unsized_locals 2025-06-13 01:16:36 +02:00
borrow_set.rs rename BitSet to DenseBitSet 2025-01-11 11:34:01 +00:00
borrowck_errors.rs Use closure parse code 2025-03-06 17:58:32 -03:00
consumers.rs borrowck typeck children together with their parent 2025-04-08 00:34:40 +02:00
dataflow.rs move out of scope precomputer code 2025-01-12 07:39:20 +00:00
def_use.rs Visit place in BackwardIncompatibleDropHint statement 2025-04-13 22:01:54 +00:00
handle_placeholders.rs Use an enum for SCC representatives, plus other code review 2025-06-04 13:26:08 +02:00
lib.rs Auto merge of #140466 - amandasystems:move-to-preprocessing-step, r=lcnr 2025-06-05 05:27:41 +00:00
member_constraints.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
nll.rs Auto merge of #140466 - amandasystems:move-to-preprocessing-step, r=lcnr 2025-06-05 05:27:41 +00:00
path_utils.rs remove borrowck duplicate of std::ops::ControlFlow 2025-01-01 12:13:33 +00:00
place_ext.rs Remove #[macro_use] extern crate tracing from rustc_borrowck. 2024-08-30 17:14:53 +10:00
places_conflict.rs Implement MIR, CTFE, and codegen for unsafe binders 2025-01-31 17:19:53 +00:00
prefixes.rs Implement MIR, CTFE, and codegen for unsafe binders 2025-01-31 17:19:53 +00:00
renumber.rs Squash fold into ty 2025-03-15 06:34:36 +00:00
root_cx.rs borrowck nested items in dead code 2025-05-02 18:45:28 +00:00
session_diagnostics.rs move check_opaque_type_parameter_valid 2025-04-03 11:13:10 +02:00
universal_regions.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
used_muts.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00