about summary refs log tree commit diff
path: root/tests/ui/union
AgeCommit message (Collapse)AuthorLines
2023-11-24Show number in error message even for one errorNilstrieb-13/+13
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-18tweak logic of "unknown field" labelEsteban Küber-2/+12
2023-11-16recover primary span labelEsteban Küber-2/+2
2023-11-16Suggest `unwrap()` on field not found for `Result`/`Option`Esteban Küber-2/+12
When encountering a `Result<T, _>` or `Option<T>` where `T` has a field that's being accessed, suggest calling `.unwrap()` to get to the field.
2023-11-06Visit patterns in THIR let expressionsMatthew Jasper-27/+45
This fixes some THIR unsafety checking errors not being emitted for let expressions in these situations.
2023-10-25Work around the fact that `check_mod_type_wf` may spuriously return ↵Oli Scherer-9/+75
`ErrorGuaranteed`, even if that error is only emitted by `check_modwitem_types`
2023-09-10Point out if a local trait has no implementationsMichael Goulet-0/+11
2023-08-24Parse unnamed fields and anonymous structs or unionsFrank King-0/+230
Anonymous structs or unions are only allowed in struct field definitions. Co-authored-by: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com>
2023-06-15change `std::marker::Sized` to just `Sized`Lukas Markeffsky-3/+3
2023-06-05Don't mention already set fieldsMichael Goulet-2/+2
2023-05-03rustc_middle: Fix `opt_item_ident` for non-local def idsVadim Petrochenkov-3/+6
2023-04-12Tweak output for 'add line' suggestionEsteban Küber-6/+12
2023-03-09Auto merge of #108920 - matthiaskrgr:rollup-qrr9a0u, r=matthiaskrgrbors-45/+62
Rollup of 8 pull requests Successful merges: - #108754 (Retry `pred_known_to_hold_modulo_regions` with fulfillment if ambiguous) - #108759 (1.41.1 supported 32-bit Apple targets) - #108839 (Canonicalize root var when making response from new solver) - #108856 (Remove DropAndReplace terminator) - #108882 (Tweak E0740) - #108898 (Set `LIBC_CHECK_CFG=1` when building Rust code in bootstrap) - #108911 (Improve rustdoc-gui/tester.js code a bit) - #108916 (Remove an unused return value in `rustc_hir_typeck`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-03-08Tweak E0740Michael Goulet-45/+45
2023-03-08Don't report E0740 for type errorMichael Goulet-0/+17
2023-03-08may not => cannotMichael Goulet-2/+2
2023-01-17Add failing test for invalid projection as union field typeGuillaume Gomez-0/+61
2023-01-16Add ui test for projection used as union field typeGuillaume Gomez-0/+19
2023-01-11Tweak outputEsteban Küber-6/+0
2023-01-11Move /src/test to /testsAlbert Larsan-0/+3172