| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2022-08-03 | Make object_lifetime_defaults a cross-crate query. | Camille GILLOT | -41/+19 | |
| 2022-07-28 | Remove guess_head_span. | Camille GILLOT | -6/+1 | |
| 2022-07-27 | Rollup merge of #99728 - cjgillot:ast-lifetimes-anon-clean, r=petrochenkov | Guillaume Gomez | -512/+56 | |
| Clean up HIR-based lifetime resolution Based on https://github.com/rust-lang/rust/pull/97313. Fixes #98932. r? `@petrochenkov` | ||||
| 2022-07-26 | Pacify tidy. | Camille GILLOT | -1/+0 | |
| 2022-07-26 | Stop creating anonymous late lifetimes. | Camille GILLOT | -36/+1 | |
| 2022-07-26 | Remove resolve_elided_lifetimes. | Camille GILLOT | -53/+6 | |
| 2022-07-26 | Stop resolving lifetime elision on HIR. | Camille GILLOT | -425/+52 | |
| 2022-07-26 | Replace LifetimeRes::Anonymous by LifetimeRes::Infer. | Camille GILLOT | -2/+2 | |
| 2022-07-26 | Remove the distinction between LifetimeName::Implicit and ↵ | Camille GILLOT | -4/+4 | |
| LifetimeName::Underscore. | ||||
| 2022-07-26 | Rollup merge of #99729 - cjgillot:rm-unused-tuple, r=michaelwoerister | Matthias Krüger | -1/+1 | |
| Remove unused tuple fields Found by https://github.com/rust-lang/rust/pull/95977 | ||||
| 2022-07-25 | Unused tuple fields in rustc_resolve. | Camille GILLOT | -1/+1 | |
| 2022-07-25 | Update file description. | Camille GILLOT | -5/+6 | |
| 2022-07-25 | Report elision failures on the AST. | Camille GILLOT | -758/+317 | |
| 2022-07-19 | Rollup merge of #99401 - TaKO8Ki:avoid-symbol-to-&str-conversions, r=nnethercote | Matthias Krüger | -8/+13 | |
| Avoid `Symbol` to `&str` conversions `Symbol::as_str` is a slowish operation, so this patch removes some usages of it. | ||||
| 2022-07-18 | avoid `Symbol` to `&str` conversions | Takayuki Maeda | -8/+13 | |
| 2022-07-14 | Rollup merge of #98705 - WaffleLapkin:closure_binder, r=cjgillot | Dylan DPC | -3/+85 | |
| 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 | Add feature gate. | Camille GILLOT | -1/+16 | |
| 2022-07-12 | Add an indirection for closures in `hir::ExprKind` | Maybe Waffle | -1/+4 | |
| This helps bring `hir::Expr` size down, `Closure` was the biggest variant, especially after `for<>` additions. | ||||
| 2022-07-12 | make for<> in closures a possible place to suggest adding named lifetime | Maybe Waffle | -4/+36 | |
| 2022-07-12 | Lower closure binders to hir & properly check them | Maybe Waffle | -1/+48 | |
| 2022-07-10 | avoid some `&str` to `String` conversions | Takayuki Maeda | -4/+2 | |
| 2022-07-05 | Return a FxIndexSet in is_late_bound query. | Camille GILLOT | -2/+2 | |
| This return value is iterated upon by borrowck, hence the need to preserve a deterministic iteration order. | ||||
| 2022-06-30 | Rollup merge of #98677 - lyming2007:issue-98492-fix, r=lcnr | Matthias Krüger | -0/+2 | |
| For diagnostic information of Boolean, remind it as use the type: 'bool' Fixes #98492. It helps programmers coming from other languages modified: compiler/rustc_resolve/src/late/diagnostics.rs | ||||
| 2022-06-30 | For diagnostic information of Boolean, remind it as use the type: 'bool' | Yiming Lei | -0/+2 | |
| It helps programmers coming from other languages modified: compiler/rustc_resolve/src/late/diagnostics.rs modified: src/test/ui/lint/recommend-literal.rs modified: src/test/ui/lint/recommend-literal.stderr modified: compiler/rustc_resolve/src/late/diagnostics.rs modified: src/test/ui/lint/recommend-literal.rs modified: src/test/ui/lint/recommend-literal.stderr modified: compiler/rustc_resolve/src/late/diagnostics.rs modified: src/test/ui/lint/recommend-literal.rs modified: src/test/ui/lint/recommend-literal.stderr | ||||
| 2022-06-29 | avoid many `&str` to `String` conversions with `MultiSpan::push_span_label` | Takayuki Maeda | -9/+4 | |
| 2022-06-22 | Auto merge of #98279 - cjgillot:all-fresh-nofn, r=petrochenkov | bors | -41/+47 | |
| Create elided lifetime parameters for function-like types Split from https://github.com/rust-lang/rust/pull/97720 This PR refactor lifetime generic parameters in bare function types and parenthesized traits to introduce the additional required lifetimes as fresh parameters in a `for<>` bound. This PR does the same to lifetimes appearing in closure signatures, and as-if introducing `for<>` bounds on closures (without the associated change in semantics). r? `@petrochenkov` | ||||
| 2022-06-21 | Use CreateParameter mode for closures too. | Camille GILLOT | -37/+32 | |
| 2022-06-21 | Always create parameters for functions-like types. | Camille GILLOT | -4/+15 | |
| 2022-06-21 | This comment is out dated and misleading | Santiago Pastorino | -3/+0 | |
| Arms are about TAIT and RPIT, as the variants clearly show. | ||||
| 2022-06-20 | Rollup merge of #98267 - compiler-errors:suggest-wildcard-arm, r=oli-obk | Matthias Krüger | -1/+1 | |
| Don't omit comma when suggesting wildcard arm after macro expr * Also adds `Span::eq_ctxt` to consolidate the various usages of `span.ctxt() == other.ctxt()` * Also fixes an unhygenic usage of spans which caused the suggestion to render weirdly when we had one arm match in a macro * Also always suggests a comma (i.e. even after a block) if we're rendering a wildcard arm in a single-line match (looks prettier :rose:) Fixes #94866 | ||||
| 2022-06-19 | Don't suggest adding Self as a type parameter | Michael Goulet | -1/+1 | |
| 2022-06-19 | Mention what item is using an invalid `Self` type | Michael Goulet | -0/+19 | |
| 2022-06-19 | Use `Span::eq_ctxt` method instead of `.ctxt() == .ctxt()` | Michael Goulet | -1/+1 | |
| 2022-06-17 | Auto merge of #98106 - cjgillot:split-definitions, r=michaelwoerister | bors | -1/+0 | |
| Split up `Definitions` and `ResolverAstLowering`. Split off https://github.com/rust-lang/rust/pull/95573 r? `@michaelwoerister` | ||||
| 2022-06-15 | Rollup merge of #97822 - compiler-errors:hesitate-to-suggest-intrinsics, ↵ | Yuki Okushi | -1/+13 | |
| r=oli-obk Filter out intrinsics if we have other import candidates to suggest Fixes #97618 Also open to just sorting these candidates to be last. Pretty easy to modify the code to do that, too. | ||||
| 2022-06-14 | Make ResolverAstLowering a struct. | Camille GILLOT | -1/+0 | |
| 2022-06-13 | remove unnecessary `to_string` and `String::new` | Takayuki Maeda | -12/+12 | |
| 2022-06-11 | Rollup merge of #97812 - TaKO8Ki:suggest-to-swap-struct-and-trait, r=estebank | Dylan DPC | -0/+33 | |
| Suggest to swap a struct and a trait in trait impls closes #89590 | ||||
| 2022-06-09 | move suggestions to its own method | Takayuki Maeda | -19/+31 | |
| 2022-06-07 | Don't suggest adding let in certain if conditions | Michael Goulet | -7/+15 | |
| 2022-06-07 | Filter out intrinsics if we have other import candidates to suggest | Michael Goulet | -1/+13 | |
| 2022-06-07 | suggest swapping a struct and a trait | Takayuki Maeda | -0/+21 | |
| fmt | ||||
| 2022-06-06 | Rollup merge of #97312 - cjgillot:no-path-in-scope, r=compiler-errors | Dylan DPC | -97/+8 | |
| Compute lifetimes in scope at diagnostic time The set of available lifetimes is currently computed during lifetime resolution on HIR. It is only used for one diagnostic. In this PR, HIR lifetime resolution just reports whether elided lifetimes are well-defined at the place of use. The diagnostic code is responsible for building a list of lifetime names if elision is not allowed. This will allow to remove lifetime resolution on HIR eventually. | ||||
| 2022-06-04 | Completely remove LifetimeScopeForPath. | Camille GILLOT | -83/+5 | |
| 2022-06-04 | Compute lifetimes in scope at diagnostic time. | Camille GILLOT | -22/+11 | |
| 2022-06-03 | Fail gracefully when encountering an HRTB in APIT. | Camille GILLOT | -7/+64 | |
| 2022-06-03 | Compute `is_late_bound` in a separate query. | Camille GILLOT | -68/+24 | |
| The computation is actually much simpler, and can be done by directly fetching the HIR for the `FnDecl` and its generics. | ||||
| 2022-06-03 | Manipulate lifetimes by LocalDefId for region resolution. | Camille GILLOT | -89/+87 | |
| 2022-06-03 | Use the same message as type & const generics. | Camille GILLOT | -23/+8 | |
| 2022-06-03 | Reuse resolve_label to check lifetime shadowing. | Camille GILLOT | -7/+9 | |
