| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-12 | Provide help on closures capturing self causing borrow checker errors | yukang | -5/+147 | |
| 2023-01-11 | Change `src/test` to `tests` in source files, fix tidy and tests | Albert Larsan | -1/+1 | |
| 2023-01-09 | Rollup merge of #106549 - wcampbell0x2a:use-fmt-named-parameters-borrowck, ↵ | fee1-dead | -91/+62 | |
| r=estebank Use fmt named parameters in rustc_borrowck | ||||
| 2023-01-08 | Rollup merge of #106410 - clubby789:borrow-mut-self-mut-self-diag, ↵ | Yuki Okushi | -11/+16 | |
| r=compiler-errors Suggest `mut self: &mut Self` for `?Sized` impls Closes #106325 Closes #93078 The suggestion is _probably_ not what the user wants (hence `MaybeIncorrect`) but at least makes the problem in the above issues clearer. It might be better to add a note explaining why this is the case, but I'm not sure how best to word that so this is a start. ``@rustbot`` label +A-diagnostics | ||||
| 2023-01-07 | Rollup merge of #106509 - estebank:closure-in-block, r=davidtwco | Matthias Krüger | -7/+38 | |
| Detect closures assigned to binding in block Fix #58497. | ||||
| 2023-01-06 | Use fmt named parameters in rustc_borrowck | wcampbell | -91/+62 | |
| 2023-01-05 | Suggests adding named lifetime when the return contains value borrowed from ↵ | yanchen4791 | -2/+11 | |
| more than one lifetimes of the function's inputs | ||||
| 2023-01-05 | Detect closures assigned to binding in block | Esteban Küber | -7/+38 | |
| Fix #58497. | ||||
| 2023-01-05 | Explain error with `&mut self` for unsized trait impls | clubby789 | -11/+16 | |
| 2023-01-04 | Rollup merge of #106403 - compiler-errors:rename-hir-methods, r=cjgillot | Michael Goulet | -2/+2 | |
| Rename `hir::Map::{get_,find_}parent_node` to `hir::Map::{,opt_}parent_id`, and add `hir::Map::{get,find}_parent` The `hir::Map::get_parent_node` function doesn't return a `Node`, and I think that's quite confusing. Let's rename it to something that sounds more like something that gets the parent hir id => `hir::Map::parent_id`. Same with `find_parent_node` => `opt_parent_id`. Also, combine `hir.get(hir.parent_id(hir_id))` and similar `hir.find(hir.parent_id(hir_id))` function into new functions that actually retrieve the parent node in one call. This last commit is the only one that might need to be looked at closely. | ||||
| 2023-01-04 | Address comments | Michael Goulet | -67/+8 | |
| 2023-01-04 | Simplify some iterator combinators | Michael Goulet | -42/+31 | |
| 2023-01-04 | rename get_parent_node to parent_id | Michael Goulet | -2/+2 | |
| 2023-01-01 | Verbose suggestions | Esteban Küber | -3/+3 | |
| 2023-01-01 | Merge multiple mutable borrows of immutable binding errors | Esteban Küber | -21/+69 | |
| Fix #53466. | ||||
| 2022-12-31 | Auto merge of #106245 - estebank:mutability-suggestions, r=jyn514 | bors | -21/+12 | |
| Use verbose suggestions for mutability errors | ||||
| 2022-12-28 | Use verbose suggestions for mutability errors | Esteban Küber | -21/+12 | |
| 2022-12-28 | Rename `Rptr` to `Ref` in AST and HIR | Nilstrieb | -7/+4 | |
| The name makes a lot more sense, and `ty::TyKind` calls it `Ref` already as well. | ||||
| 2022-12-27 | Auto merge of #106095 - estebank:pin-mut-reborrow, r=compiler-errors | bors | -10/+59 | |
| Suggest `Pin::as_mut` when encountering borrow error Fix #65409 for `Pin<&mut T>`. | ||||
| 2022-12-26 | review comments | Esteban Küber | -7/+5 | |
| 2022-12-25 | Remove redundant clone suggestion | Esteban Küber | -1/+13 | |
| 2022-12-25 | Create new inference context | Esteban Küber | -29/+33 | |
| 2022-12-23 | Do not use `hir_ty_to_ty` | Esteban Küber | -15/+10 | |
| 2022-12-24 | Rollup merge of #105975 - jeremystucki:rustc-remove-needless-lifetimes, r=eholk | Matthias Krüger | -1/+1 | |
| rustc: Remove needless lifetimes | ||||
| 2022-12-23 | Verify receiver is of `self: Pin<&mut Self>` | Esteban Küber | -2/+6 | |
| 2022-12-23 | Suggest `.clone()` on method call move errors | Esteban Küber | -9/+34 | |
| 2022-12-23 | Suggest `Pin::as_mut` when encountering borrow error | Esteban Küber | -0/+11 | |
| 2022-12-20 | rustc: Remove needless lifetimes | Jeremy Stucki | -1/+1 | |
| 2022-12-20 | Hackily fix an opaque type ICE | Oli Scherer | -4/+6 | |
| 2022-12-20 | Make it easier to debug where a region error was created | Oli Scherer | -2/+18 | |
| 2022-12-18 | use &str / String literals instead of format!() | Matthias Krüger | -3/+3 | |
| 2022-12-14 | Ensure no one constructs `AliasTy`s themselves | Oli Scherer | -2/+2 | |
| 2022-12-14 | Auto merge of #104986 - compiler-errors:opaques, r=oli-obk | bors | -3/+3 | |
| Combine `ty::Projection` and `ty::Opaque` into `ty::Alias` Implements https://github.com/rust-lang/types-team/issues/79. This PR consolidates `ty::Projection` and `ty::Opaque` into a single `ty::Alias`, with an `AliasKind` and `AliasTy` type (renamed from `ty::ProjectionTy`, which is the inner data of `ty::Projection`) defined as so: ``` enum AliasKind { Projection, Opaque, } struct AliasTy<'tcx> { def_id: DefId, substs: SubstsRef<'tcx>, } ``` Since we don't have access to `TyCtxt` in type flags computation, and because repeatedly calling `DefKind` on the def-id is expensive, these two types are distinguished with `ty::AliasKind`, conveniently glob-imported into `ty::{Projection, Opaque}`. For example: ```diff match ty.kind() { - ty::Opaque(..) => + ty::Alias(ty::Opaque, ..) => {} _ => {} } ``` This PR also consolidates match arms that treated `ty::Opaque` and `ty::Projection` identically. r? `@ghost` | ||||
| 2022-12-13 | Rollup merge of #105500 - oli-obk:unhide_unknown_spans, r=estebank | Matthias Krüger | -8/+16 | |
| Make some diagnostics not depend on the source of what they reference being available r? `@estebank` follow up to https://github.com/rust-lang/rust/pull/104449 | ||||
| 2022-12-13 | Account for dereference expressions | Esteban Küber | -7/+22 | |
| 2022-12-13 | Fix span for `&mut ` removal suggestion | Esteban Küber | -0/+1 | |
| 2022-12-13 | Suggest `ref` for some patterns as a fallback | Esteban Küber | -10/+16 | |
| 2022-12-13 | Change pattern borrowing suggestions to be verbose | Esteban Küber | -29/+35 | |
| Synthesize a more accurate span and use verbose suggestion output to make the message clearer. | ||||
| 2022-12-13 | Combine projection and opaque into alias | Michael Goulet | -2/+2 | |
| 2022-12-13 | squash OpaqueTy and ProjectionTy into AliasTy | Michael Goulet | -2/+2 | |
| 2022-12-13 | Use ty::OpaqueTy everywhere | Michael Goulet | -3/+3 | |
| 2022-12-13 | Stop pointing to operators if their libcore method source is not available | Oli Scherer | -6/+1 | |
| 2022-12-13 | Clarify what "this" means | Oli Scherer | -2/+15 | |
| 2022-12-13 | remove unnecessary uses of `clone` | Takayuki Maeda | -1/+1 | |
| 2022-12-06 | `rustc_borrowck`: remove `ref` patterns | Maybe Waffle | -58/+50 | |
| 2022-11-30 | Auto merge of #104905 - compiler-errors:normalization-changes, r=spastorino | bors | -4/+4 | |
| Some initial normalization method changes 1. Rename `AtExt::normalize` to `QueryNormalizeExt::query_normalize` (using the `QueryNormalizer`) 2. Introduce `NormalizeExt::normalize` to replace `partially_normalize_associated_types_in` (using the `AssocTypeNormalizer`) 3. Rename `FnCtxt::normalize_associated_types_in` to `FnCtxt::normalize` 4. Remove some unused other normalization fns in `Inherited` and `FnCtxt` Also includes one drive-by where we're no longer creating a `FnCtxt` inside of `check_fn`, but passing it in. This means we don't need such weird `FnCtxt` construction logic. Stacked on top of #104835 for convenience. r? types | ||||
| 2022-11-29 | Rollup merge of #104951 - Swatinem:async-kind, r=compiler-errors | Matthias Krüger | -6/+1 | |
| Simplify checking for `GeneratorKind::Async` Adds a helper method around `generator_kind` that makes matching async constructs simpler. | ||||
| 2022-11-28 | Simplify checking for `GeneratorKind::Async` | Arpad Borsos | -6/+1 | |
| Adds a helper method around `generator_kind` that makes matching async constructs simpler. | ||||
| 2022-11-28 | Make ObligationCtxt::normalize take cause by borrow | Michael Goulet | -1/+1 | |
| 2022-11-28 | partially_normalize_... -> At::normalize | Michael Goulet | -3/+3 | |
