about summary refs log tree commit diff
path: root/tests/ui/lang-items
AgeCommit message (Collapse)AuthorLines
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