about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/path.rs
AgeCommit message (Collapse)AuthorLines
2022-02-17Add more information to `impl Trait` deny errorMichael Goulet-5/+11
2022-01-17Use Term in ProjectionPredicatekadmin-1/+1
ProjectionPredicate should be able to handle both associated types and consts so this adds the first step of that. It mainly just pipes types all the way down, not entirely sure how to handle consts, but hopefully that'll come with time.
2021-12-27Tighten span when suggesting lifetime on pathMichael Goulet-1/+3
2021-12-03Rollup merge of #91273 - Badel2:ice-index-str, r=estebankMatthias Krüger-9/+13
Fix ICE #91268 by checking that the snippet ends with a `)` Fix #91268 Previously it was assumed that the last character of `snippet` will be a `)`, so using `snippet.len() - 1` as an index should be safe. However as we see in the test, it is possible to enter that branch without a closing `)`, and it will trigger the panic if the last character happens to be multibyte. The fix is to ensure that the snippet ends with `)`, and skip the suggestion otherwise.
2021-11-30Simplify lowering.Camille GILLOT-37/+31
2021-11-30Lint elided lifetimes in path during lifetime resolution.Camille GILLOT-19/+3
2021-11-26Fix ICE #91268 by checking that the snippet ends with a `)`Badel2-9/+13
2021-09-20Do not store visibility in *ItemRef.Camille GILLOT-11/+2
2021-09-01Compute item_generics_num_lifetimes during resolution.Camille GILLOT-9/+2
2021-08-29ast_lowering: Introduce `lower_span` for catching all spans entering HIRVadim Petrochenkov-7/+15
2021-07-19Better errors when we don't have implicit statics in trait objectsjackh726-0/+1
2021-05-12Add more precise span informations to generic typesGiacomo Stevanato-23/+44
2021-05-11improve diagnosts for GATsb-naber-0/+5
2021-03-15More precise spans for HIR pathsVadim Petrochenkov-5/+8
2021-02-04lowering of generic args in AssocTyConstraintb-naber-2/+5
2021-01-14Use Option::map_or instead of `.map(..).unwrap_or(..)`LingMan-1/+1
2021-01-10Rework diagnostics for wrong number of generic argsPatryk Wychowaniec-3/+3
2020-10-30Implement rustc side of report-future-incompatAaron Hill-2/+2
2020-10-30Fix some more clippy warningsJoshua Nelson-4/+2
2020-08-30mv compiler to compiler/mark-0/+433