about summary refs log tree commit diff
path: root/tests/ui/indexing
AgeCommit message (Collapse)AuthorLines
2023-11-24Show number in error message even for one errorNilstrieb-4/+4
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-13review comments: more targeted span setting approachEsteban Küber-0/+2
2023-11-13Always point at index span on index obligation failureEsteban Küber-0/+20
Use more targetted span for index obligation failures by rewriting the obligation cause span. CC #66023
2023-10-02Point out the actual mismatch errorMichael Goulet-0/+2
2023-10-02For a single impl candidate, try to unify it with error trait refMichael Goulet-2/+2
2023-08-04Improve spans for indexing expressionsNilstrieb-0/+115
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.