about summary refs log tree commit diff
path: root/tests/ui/intrinsics
AgeCommit message (Collapse)AuthorLines
2023-12-18Check const_eval_select intrinsic correctlyMichael Goulet-16/+16
2023-11-29On Fn arg mismatch for a fn path, suggest a closureEsteban Küber-0/+4
When encountering a fn call that has a path to another fn being passed in, where an `Fn` impl is expected, and the arguments differ, suggest wrapping the argument with a closure with the appropriate arguments.
2023-11-24Show number in error message even for one errorNilstrieb-3/+3
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-02Pretty print Fn traits in rustc_on_unimplementedMichael Goulet-6/+6
2023-10-16Normalize alloc-id in tests.Camille GILLOT-1/+1
2023-09-25Gate and validate #[rustc_safe_intrinsic]León Orell Valerian Liehr-1/+27
2023-09-22Auto merge of #115696 - RalfJung:closure-ty-print, r=oli-obkbors-2/+2
adjust how closure/generator types are printed I saw `&[closure@$DIR/issue-20862.rs:2:5]` and I thought it is a slice type, because that's usually what `&[_]` is... it took me a while to realize that this is just a confusing printer and actually there's no slice. Let's use something that cannot be mistaken for a regular type.
2023-09-21adjust how closure/generator types and rvalues are printedRalf Jung-2/+2
2023-09-21added support for GNU/HurdSamuel Thibault-0/+1
2023-08-04Rollup merge of #114434 - Nilstrieb:indexing-spans, r=est31Matthias Krüger-1/+1
Improve spans for indexing expressions fixes #114388 Indexing is similar to method calls in having an arbitrary left-hand-side and then something on the right, which is the main part of the expression. Method calls already have a span for that right part, but indexing does not. This means that long method chains that use indexing have really bad spans, especially when the indexing panics and that span in coverted into a panic location. This does the same thing as method calls for the AST and HIR, storing an extra span which is then put into the `fn_span` field in THIR. r? compiler-errors
2023-08-04Improve spans for indexing expressionsNilstrieb-1/+1
Indexing is similar to method calls in having an arbitrary left-hand-side and then something on the right, which is the main part of the expression. Method calls already have a span for that right part, but indexing does not. This means that long method chains that use indexing have really bad spans, especially when the indexing panics and that span in coverted into a panic location. This does the same thing as method calls for the AST and HIR, storing an extra span which is then put into the `fn_span` field in THIR.
2023-08-02const validation: point at where we found a pointer but expected an integerRalf Jung-12/+25
2023-07-29Change default panic handler message format.Mara Bos-2/+4
2023-06-12Adjust UI tests for `unit_bindings`许杰友 Jieyou Xu (Joe)-1/+1
- Either explicitly annotate `let x: () = expr;` where `x` has unit type, or remove the unit binding to leave only `expr;` instead. - Fix disjoint-capture-in-same-closure test
2023-02-28Add QNX Neutrino support to libstdFlorian Bartels-1/+3
Co-authored-by: gh-tr <troach@qnx.com>
2023-01-30Tweak E0271 wordingEsteban Küber-2/+2
2023-01-11Change `src/test` to `tests` in source files, fix tidy and testsAlbert Larsan-1/+1
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1650