about summary refs log tree commit diff
path: root/src/test/ui/drop/repeat-drop-2.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-15/+0
2022-09-24Note the type when unable to drop values in compile timeDeadbeef-1/+1
2022-07-07On partial uninit error point at where we need initEsteban Küber-1/+1
When a binding is declared without a value, borrowck verifies that all codepaths have *one* assignment to them to initialize them fully. If there are any cases where a condition can be met that leaves the binding uninitialized or we attempt to initialize a field of an unitialized binding, we emit E0381. We now look at all the statements that initialize the binding, and use them to explore branching code paths that *don't* and point at them. If we find *no* potential places where an assignment to the binding might be missing, we display the spans of all the existing initializers to provide some context.
2022-05-24Modify MIR building to drop `foo` in `[foo; 0]`Jakob Degen-0/+15