about summary refs log tree commit diff
path: root/tests/ui/extern
AgeCommit message (Collapse)AuthorLines
2023-12-12also test projecting to some sized fields at non-zero offset in structs with ↵Ralf Jung-3/+9
an extern type tail
2023-12-12test that both size_of_val and align_of_val panicRalf Jung-6/+16
2023-12-12reject projecting to fields whose offset we cannot computeRalf Jung-0/+30
2023-12-12codegen: panic when trying to compute size/align of extern typeRalf Jung-1/+8
2023-12-10remove redundant importssurechen-2/+0
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2023-12-07Rollup merge of #116420 - bvanjoi:fix-116203, r=NilstriebMatthias Krüger-0/+67
discard invalid spans in external blocks Fixes #116203 This PR has discarded the invalid `const_span`, thereby making the format more neat. r? ``@Nilstrieb``
2023-11-24Show number in error message even for one errorNilstrieb-13/+13
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-17Rollup merge of #117338 - workingjubilee:asmjs-meets-thanatos, r=b-naberMatthias Krüger-3/+1
Remove asmjs Fulfills [MCP 668](https://github.com/rust-lang/compiler-team/issues/668). `asmjs-unknown-emscripten` does not work as-specified, and lacks essential upstream support for generating asm.js, so it should not exist at all.
2023-11-15discard invalid spans in external blocksbohan-0/+67
2023-11-02Pretty print Fn traits in rustc_on_unimplementedMichael Goulet-3/+3
2023-10-28Remove asmjs from testsJubilee Young-3/+1
2023-09-25Gate and validate #[rustc_safe_intrinsic]León Orell Valerian Liehr-1/+1
2023-09-19rustc_hir_analysis: add a helper to check function the signature mismatchesEduardo Sánchez Muñoz-2/+2
This function is now used to check `#[panic_handler]`, `start` lang item, `main`, `#[start]` and intrinsic functions. The diagnosis produced are now closer to the ones produced by trait/impl method signature mismatch.
2023-08-28Revert "Suggest using `Arc` on `!Send`/`!Sync` types"David Tolnay-3/+0
This reverts commit 9de1a472b68ed85f396b2e2cc79c3ef17584d6e1.
2023-08-09Suggest using `Arc` on `!Send`/`!Sync` typesEsteban Kuber-0/+3
2023-08-07stabilize abi_thiscallBenedikt Radtke-2/+0
2023-06-22Tweak privacy errors to account for reachable itemsEsteban Küber-0/+8
Suggest publicly accessible paths for items in private mod: When encountering a path in non-import situations that are not reachable due to privacy constraints, search for any public re-exports that the user could use instead. Track whether an import suggestion is offering a re-export. When encountering a path with private segments, mention if the item at the final path segment is not publicly accessible at all. Add item visibility metadata to privacy errors from imports: On unreachable imports, record the item that was being imported in order to suggest publicly available re-exports or to be explicit that the item is not available publicly from any path. In order to allow this, we add a mode to `resolve_path` that will not add new privacy errors, nor return early if it encounters one. This way we can get the `Res` corresponding to the final item in the import, which is used in the privacy error machinery.
2023-06-12Fix debug ICE for extern type with where clauses许杰友 Jieyou Xu (Joe)-0/+57
2023-05-24Move testsCaio-0/+16
2023-05-09tidy check to find misc files in ui tests, and clean up the resultsasquared31415-1/+0
2023-01-30Modify primary span label for E0308Esteban Küber-1/+1
The previous output was unintuitive to users.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1541