| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2022-10-29 | Only ban duplication across parameters. | Camille GILLOT | -31/+66 | |
| 2022-10-29 | Do not consider repeated lifetime params for elision. | Camille GILLOT | -5/+5 | |
| 2022-10-27 | Revert "Do not consider method call receiver as an argument in AST." | Michael Goulet | -2/+3 | |
| This reverts commit 970184528718d7c10579cac7b7e7e66ef2e2a3f5. | ||||
| 2022-09-12 | Remove `path_span` argument to the `visit_path_segment` methods. | Nicholas Nethercote | -5/+5 | |
| The `visit_path_segment` method of both the AST and HIR visitors has a `path_span` argument that isn't necessary. This commit removes it. There are two very small and inconsequential functional changes. - One call to `NodeCollector::insert` now is passed a path segment identifier span instead of a full path span. This span is only used in a panic message printed in the case of an internal compiler bug. - Likewise, one call to `LifetimeCollectVisitor::record_elided_anchor` now uses a path segment identifier span instead of a full path span. This span is used to make some `'_` lifetimes. | ||||
| 2022-09-09 | Make async fn in traits work | Michael Goulet | -1/+1 | |
| 2022-09-02 | Refactor and re-use BindingAnnotation | Cameron Steffen | -7/+7 | |
| 2022-09-01 | Always import all tracing macros for the entire crate instead of piecemeal ↵ | Oli Scherer | -5/+2 | |
| by module | ||||
| 2022-09-01 | Directly use the `instrument` macro instead of its full path | Oli Scherer | -9/+9 | |
| 2022-08-23 | Remove FnItemRibKind. | Camille GILLOT | -16/+9 | |
| 2022-08-23 | Improve local generic parameter suggestions. | Camille GILLOT | -9/+9 | |
| 2022-08-23 | Create specific ConstantHasGenerics for ConstantItemRibKind. | Camille GILLOT | -14/+21 | |
| 2022-08-11 | Rollup merge of #100392 - nnethercote:simplify-visitors, r=cjgillot | Matthias Krüger | -1/+1 | |
| Simplify visitors By removing some unused arguments. r? `@cjgillot` | ||||
| 2022-08-11 | Simplify `rustc_ast::visit::Visitor::visit_poly_trait_ref`. | Nicholas Nethercote | -1/+1 | |
| It is passed an argument that is never used. | ||||
| 2022-08-10 | Do not consider method call receiver as an argument in AST. | Camille GILLOT | -3/+2 | |
| 2022-08-07 | Use start_point instead of next_point to point to elided lifetime ampersand. | Camille GILLOT | -1/+1 | |
| 2022-07-30 | Always create elided lifetimes, even if inferred. | Camille GILLOT | -23/+20 | |
| 2022-07-26 | Move fn parameter ribs outwards. | Camille GILLOT | -36/+62 | |
| 2022-07-26 | Replace LifetimeRes::Anonymous by LifetimeRes::Infer. | Camille GILLOT | -71/+37 | |
| 2022-07-26 | Remove the distinction between LifetimeName::Implicit and ↵ | Camille GILLOT | -38/+12 | |
| LifetimeName::Underscore. | ||||
| 2022-07-26 | Do not produce extra lifetime parameters when not needed. | Camille GILLOT | -0/+3 | |
| 2022-07-25 | Auto merge of #97313 - cjgillot:ast-lifetimes-anon, r=petrochenkov | bors | -161/+499 | |
| Resolve function lifetime elision on the AST ~Based on https://github.com/rust-lang/rust/pull/97720~ Lifetime elision for functions is purely syntactic in nature, so can be resolved on the AST. This PR replicates the elision logic and diagnostics on the AST, and replaces HIR-based resolution by a `delay_span_bug`. This refactor allows for more consistent diagnostics, which don't have to guess the original code from HIR. r? `@petrochenkov` | ||||
| 2022-07-25 | Report elision failures on the AST. | Camille GILLOT | -161/+473 | |
| 2022-07-23 | Use span_bug in case of unexpected rib kind | Jordan McQueen | -1/+1 | |
| Extremely minor QOL change to improve the ICE output in case this default match case is encountered (an unexpected rib kind). | ||||
| 2022-07-20 | Introduce AnonymousLifetimeRib::Elided and use it for implied 'static. | Camille GILLOT | -2/+28 | |
| 2022-07-19 | Auto merge of #98120 - TaKO8Ki:box-diagnostic-metadata-field, r=estebank | bors | -2/+2 | |
| [Experiment] Box `diagnostic_metadata` field closes #97954 r? `@estebank` | ||||
| 2022-07-14 | Rollup merge of #98705 - WaffleLapkin:closure_binder, r=cjgillot | Dylan DPC | -8/+45 | |
| Implement `for<>` lifetime binder for closures This PR implements RFC 3216 ([TI](https://github.com/rust-lang/rust/issues/97362)) and allows code like the following: ```rust let _f = for<'a, 'b> |a: &'a A, b: &'b B| -> &'b C { b.c(a) }; // ^^^^^^^^^^^--- new! ``` cc ``@Aaron1011`` ``@cjgillot`` | ||||
| 2022-07-13 | Always use CreateParameter mode for function definitions. | Camille GILLOT | -11/+9 | |
| 2022-07-12 | Add `LifetimeBinderKind::Closure` | Maybe Waffle | -1/+3 | |
| 2022-07-12 | Lower closure binders to hir & properly check them | Maybe Waffle | -7/+42 | |
| 2022-07-12 | Parse closure binders | Maybe Waffle | -1/+1 | |
| This is first step in implementing RFC 3216. - Parse `for<'a>` before closures in ast - Error in lowering - Add `closure_lifetime_binder` feature | ||||
| 2022-07-11 | Auto merge of #98637 - cjgillot:bare-trait-anon-lt, r=petrochenkov | bors | -0/+24 | |
| Create fresh lifetime parameters for bare fn trait too The current code fails to account for the equivalence between `dyn FnMut(&mut u8)` and bare `FnMut(&mut u8)`, and treated them differently. This PR introduces a special case for `Fn` traits, which are always fully resolved. Fixes #98616 Fixes #98726 This will require a beta-backport, as beta contains that bug. r? `@petrochenkov` | ||||
| 2022-07-08 | Check if E0530 is `rustc_resolve::late::PatternSource::Match` to emit suggestion | Obei Sideg | -4/+4 | |
| 2022-07-08 | Check if E0530 is `tuple variant` or `tuple struct` to emit suggestion | Obei Sideg | -2/+2 | |
| 2022-07-02 | Handle fresh lifetimes on bare trait objects. | Camille GILLOT | -0/+24 | |
| 2022-06-23 | Remove excess rib while resolving closures | Maybe Waffle | -1/+3 | |
| 2022-06-21 | Use CreateParameter mode for closures too. | Camille GILLOT | -5/+10 | |
| 2022-06-21 | Always create parameters for functions-like types. | Camille GILLOT | -53/+140 | |
| 2022-06-19 | Leave the responsibility to create `Fresh` lifetimes to lowering. | Camille GILLOT | -23/+11 | |
| 2022-06-19 | Make matches exhaustive. | Camille GILLOT | -3/+9 | |
| 2022-06-19 | Remove the `region` terminology. | Camille GILLOT | -9/+9 | |
| 2022-06-18 | Separate `AnonymousCreateParameter` and `ReportElidedInPath`. | Camille GILLOT | -62/+93 | |
| 2022-06-18 | Refactor visit_fn. | Camille GILLOT | -65/+96 | |
| 2022-06-18 | Rustfmt resolve_implementation. | Camille GILLOT | -39/+57 | |
| 2022-06-18 | Extract AssocItem handling. | Camille GILLOT | -166/+131 | |
| 2022-06-15 | box `diagnostic_metadata` field | Takayuki Maeda | -2/+2 | |
| 2022-06-14 | Make ResolverAstLowering a struct. | Camille GILLOT | -2/+1 | |
| 2022-06-11 | Rollup merge of #97812 - TaKO8Ki:suggest-to-swap-struct-and-trait, r=estebank | Dylan DPC | -1/+8 | |
| Suggest to swap a struct and a trait in trait impls closes #89590 | ||||
| 2022-06-09 | Do not introduce bindings for types and consts in HRTB. | Camille GILLOT | -1/+6 | |
| 2022-06-07 | suggest swapping a struct and a trait | Takayuki Maeda | -1/+8 | |
| fmt | ||||
| 2022-06-05 | Rename `visit_generic_param{_slice => s}` | Maybe Waffle | -5/+5 | |
