about summary refs log tree commit diff
path: root/tests/ui/lang-items
AgeCommit message (Collapse)AuthorLines
2025-01-21remove support for the #[start] attributeRalf Jung-23/+28
2024-12-27Remove the `-test` suffix from normalize directivesZalathar-1/+1
2024-12-08Move `assoc-lang-items.rs` to `tests/ui/lang-items/`许杰友 Jieyou Xu (Joe)-0/+62
2024-07-25Let InstCombine remove Clone shims inside Clone shimsBen Kimock-41/+0
Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
2024-07-11Always use a colon in `//@ normalize-*:` headersZalathar-1/+1
2024-07-06show unit output when there is only output diff in diagnosticsyukang-1/+1
2024-04-17consistency rename: language item -> lang itemRalf Jung-25/+25
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-9/+9
2024-02-04Rollup merge of #120556 - fmease:improve-unused-generic-param-diags, r=oli-obkMatthias Krüger-6/+6
Improve the diagnostics for unused generic parameters * Don't emit two errors (namely E0091 *and* E0392) for unused type parameters on *lazy* type aliases * Fix the diagnostic help message of E0392 for *lazy* type aliases: Don't talk about the “fields” of lazy type aliases (use the term “body” instead) and don't suggest `PhantomData` for them, it doesn't make much sense * Consolidate the diagnostics for E0091 (unused type parameters in type aliases) and E0392 (unused generic parameters due to bivariance) and make it translatable * Still keep the error codes distinct (for now) * Naturally leads to better diagnostics for E0091 r? ```@oli-obk``` (to ballast your review load :P) or compiler
2024-02-01Improve the diagnostics for unused generic parametersLeón Orell Valerian Liehr-6/+6
2024-01-31Rollup merge of #120472 - Nilstrieb:die, r=compiler-errorsNadrieril-0/+23
Make duplicate lang items fatal Prevents terminal spam.
2024-01-29Remove some unnecessary check logic for lang items in HIR typeckMichael Goulet-284/+0
2024-01-29Add test for duplicate lang itemsNilstrieb-0/+23
2024-01-13Bless testsGeorge-lewis-0/+2
Update tests
2024-01-10Stop mentioning internal lang items in no_std binary errorsNilstrieb-5/+8
When writing a no_std binary, you'll be greeted with nonsensical errors mentioning lang items like eh_personality and start. That's pretty bad because it makes you think that you need to define them somewhere! But oh no, now you're getting the `internal_features` lint telling you that you shouldn't use them! But you need a no_std binary! What now? No problem! Writing a no_std binary is super easy. Just use panic=abort and supply your own platform specific entrypoint symbol (like `main`) and you're good to go. Would be nice if the compiler told you that, right? This makes it so that it does do that.
2024-01-09Avoid silencing relevant follow-up errorsOli Scherer-4/+3
2023-12-15Collect lang items from ASTMichael Goulet-4/+36
2023-11-24Show number in error message even for one errorNilstrieb-19/+19
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-10-18Tweak wording of type errors involving type paramsEsteban Küber-1/+1
Fix #78206.
2023-10-04Point to where missing return type should goMichael Goulet-2/+2
2023-09-22Auto merge of #115910 - eduardosm:lang-fns-target-features, r=cjgillotbors-0/+30
Prevent using `#[target_feature]` on lang item functions Fixes https://github.com/rust-lang/rust/issues/109411 and also prevents from using `#[target_feature]` on other `fn` lang items to mitigate the concerns from https://github.com/rust-lang/rust/issues/109411#issuecomment-1477030273.
2023-09-19rustc_hir_analysis: add a helper to check function the signature mismatchesEduardo Sánchez Muñoz-55/+81
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-09-18Prevent using `#[target_feature]` on lang item functionsEduardo Sánchez Muñoz-0/+30
2023-03-12Remove uses of `box_syntax` in rustc and toolsclubby789-20/+0
2023-02-16Add ICE test for bad Add::add impl item typeMichael Goulet-0/+29
2023-02-16Tweak wordingMichael Goulet-19/+28
2023-02-16Move call trait lang item malformed check to typeckMichael Goulet-20/+163
2023-01-31Do not depend on Generator trait when deducing closure signatureMichael Goulet-36/+0
2023-01-11add checks for the signature of the lang itemasquared31415-0/+227
2023-01-11Move /src/test to /testsAlbert Larsan-0/+487