about summary refs log tree commit diff
path: root/src/test/ui/repr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-1281/+0
2022-12-27Emit fewer errors on invalid `#[repr(transparent)]` on `enum`Esteban Küber-0/+21
Fix #68420.
2022-11-03Move some tests from `src/test/ui` to more reasonable placesDeadbeef-0/+89
2022-10-01bless ui testsMaybe Waffle-28/+28
2022-09-06add list of recognized repr attributes to the unrecognized repr errorasquared31415-0/+52
2022-07-15Make item spans more consistentMichael Goulet-2/+2
2022-07-13remove untagged_union feature gateRalf Jung-21/+24
2022-07-13Rollup merge of #99011 - oli-obk:UnsoundCell, r=eddybDylan DPC-415/+0
`UnsafeCell` blocks niches inside its nested type from being available outside fixes #87341 This implements the plan by `@eddyb` in https://github.com/rust-lang/rust/issues/87341#issuecomment-886083646 Somewhat related PR (not strictly necessary, but that cleanup made this PR simpler): #94527
2022-07-12add more testsDeadbeef-18/+122
2022-07-12check non_exhaustive attr and private fields for transparent typesDeadbeef-0/+137
2022-07-07`UnsafeCell` now has no niches, ever.Oli Scherer-415/+0
2022-07-06use `named_span` in case of tuple variantTakayuki Maeda-1/+1
2022-07-01Shorten def_span for more items.Camille GILLOT-47/+29
2022-03-04Auto merge of #94096 - cjgillot:ensure-stability, r=lcnrbors-6/+4
Ensure stability directives are checked in all cases Split off #93017 Stability and deprecation were not checked in all cases, for instance if a type error happened. This PR moves the check earlier in the pipeline to ensure the errors are emitted in all cases. r? `@lcnr`
2022-03-03Cleanup feature gates.Camille GILLOT-6/+4
2022-03-03Remove the everybody loops passbjorn3-41/+0
It isn't used anymore by rustdoc
2021-12-01Pretty print empty blocks as {}David Tolnay-3/+2
2021-11-14Move some tests to more reasonable directoriesCaio-0/+101
2021-07-31Fix ICE in `improper_ctypes_definitions` lint with all-ZST transparent typesFabian Wolff-0/+28
2021-07-19Fix incorrect use of `#[repr(no_niche)]`Aaron Hill-8/+6
2021-07-09Enhance well-formedness checks for `#[repr(...)]` attributesFabian Wolff-0/+122
2021-06-24Auto merge of #86279 - JohnTitor:transparent-zero-size-fields, r=nikomatsakisbors-72/+42
Permit zero non-zero-field on transparent types Fixes #77841 This makes the transparent fields meet the below: > * A `repr(transparent)` type `T` must meet the following rules: > * It may have any number of 1-ZST fields > * In addition, it may have at most one other field of type U r? `@nikomatsakis`
2021-06-18Fix ICE with `#[repr(simd)]` on enumFabian Wolff-0/+40
2021-06-14Permit zero non-zero-field on transparent typesYuki Okushi-72/+42
2021-04-05Allow specifying alignment for functionsWesley Norris-3/+3
2020-09-28passes: `check_attr` on more targetsDavid Wood-8/+29
This commit modifies `check_attr` so that: - Enum variants are now checked (some attributes would not have been prohibited on variants previously). - `check_expr_attributes` and `check_stmt_attributes` are removed as `check_attributes` can perform the same checks. Signed-off-by: David Wood <david@davidtw.co>
2020-03-14Add long error explanation for E0693 #61137Ayush Kumar Mishra-0/+1
2020-02-10tests for `#[repr(no_niche)]`.Felix S. Klock II-0/+417
2020-01-20transparent_enums: test alignmentMazdak Farrokhzad-3/+25
2020-01-20stabilize transparent_enumsMazdak Farrokhzad-1/+1
2020-01-17Rollup merge of #67956 - varkor:E0588-provide-context, r=estebankDylan DPC-16/+112
Detail transitive containment in E0588 diagnostic Fixes https://github.com/rust-lang/rust/issues/67383.
2020-01-09Update testsVadim Petrochenkov-7/+65
2020-01-07Detail transitive containment in E0588 diagnosticvarkor-16/+112
2019-10-20Update ui testsGuillaume Gomez-0/+1
2019-06-14Tweak transparent enums and unions diagnostic spansEsteban Küber-60/+34
2019-06-10Implement RFC 2645 (transparent enums and unions)Michael Bradshaw-92/+123
Tracking issue: #60405
2019-05-27Harden tests for repr_align_enum.Mazdak Farrokhzad-7/+28
2019-05-27Stabilize repr_align_enum in 1.37.0.Mazdak Farrokhzad-5/+4
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-4/+2
2019-03-11Update testsVadim Petrochenkov-34/+34
2019-01-31Add more tests for #[repr(align(x))] on enumsNiklas Fiekas-4/+14
2018-12-25Remove licensesMark Rousskov-102/+34
2018-08-31cleanup: Add main functions to some UI testsVadim Petrochenkov-20/+13
2018-08-23Stabilize 'attr_literals' feature.Sergio Benitez-2/+2
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+519