about summary refs log tree commit diff
path: root/src/test/ui/lang-items
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-487/+0
2022-11-27Avoid ICE if the Clone trait is not found while building error suggestionsBruno A. MuciƱo-0/+41
2022-11-13Ensure codegen_fn_attrs during collection.Camille GILLOT-25/+4
2022-11-05Adjust diagnostics, bless testsMichael Goulet-4/+13
2022-10-05Delay function resolution error until typeckMichael Goulet-6/+6
2022-10-01bless ui testsMaybe Waffle-1/+1
2022-04-05Add test for issue rust-lang/rust#83474kangarooCoder-4/+20
2022-03-30update ui testslcnr-28/+0
2022-02-11Revert "Auto merge of #92007 - oli-obk:lazy_tait2, r=nikomatsakis"Oli Scherer-2/+2
This reverts commit e7cc3bddbe0d0e374d05e7003e662bba1742dbae, reversing changes made to 734368a200904ef9c21db86c595dc04263c87be0.
2022-02-02Lazily resolve type-alias-impl-trait defining usesOli Scherer-2/+2
by using an opaque type obligation to bubble up comparisons between opaque types and other types Also uses proper obligation causes so that the body id works, because out of some reason nll uses body ids for logic instead of just diagnostics.
2021-11-17Add a regression test for #87573Yuki Okushi-0/+49
2021-11-14Move some tests to more reasonable directoriesCaio-0/+20
2021-11-06Move some tests to more reasonable directoriesCaio-0/+70
2021-10-03Practice diagnostic message conventionHirochika Matsumoto-1/+1
2021-09-30Rollup merge of #88782 - asquared31415:issue-79559, r=cjgillotManish Goregaokar-10/+29
Fix ICE when `start` lang item has wrong generics In my previous pr #87875 I missed the requirements on the `start` lang item due to its relative difficulty to test and opting for more conservative estimates. This fixes that by updating the requirement to be exactly one generic type. The `start` lang item should have exactly one generic type for the return type of the `main` fn ptr passed to it. I believe having zero would previously *sometimes* compile (often with the use of `fn() -> ()` as the fn ptr but it was likely UB to call if the return type of `main` was not `()` as far as I know) however it also sometimes would not for various errors including ICEs and LLVM errors depending on exact situations. Having more than 1 generic has always failed with an ICE because only the one generic type is expected and provided. Fixes #79559, fixes #73584, fixes #83117 (all duplicates) Relevant to #9307 r? ````@cjgillot````
2021-09-24Make error message for malformed `fn`/`fn_mut` lang item more specificFabian Wolff-4/+4
2021-09-24Add basic checks for well-formedness of `fn`/`fn_mut` lang itemsFabian Wolff-0/+115
2021-09-14Fix ICE when `start` lang item has wrong genericsasquared31415-10/+29
2021-08-23Detect incorrect number of lang item genericsasquared31415-77/+128
2021-07-01Reword error message slightlyFabian Wolff-1/+1
2021-06-12Report an error if resolution of closure call functions failedFabian Wolff-0/+26
2021-05-15Report an error if a lang item has the wrong number of generic argumentsFabian Wolff-0/+120