| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -2325/+0 | |
| 2022-12-28 | On unsized locals with explicit types suggest `&` | Esteban Küber | -0/+16 | |
| Fix #72742. | ||||
| 2022-12-11 | Point at method call when it is the source of the bound error | Esteban Küber | -4/+2 | |
| 2022-09-15 | Normalize struct types in confirm_builtin_unsize_candidate | Michael Goulet | -0/+39 | |
| 2022-08-27 | Revert "Remove deferred sized checks" | Michael Goulet | -4/+1 | |
| This reverts commit 33212bf7f527798a8cfa2bbb38781742f4ca718a. | ||||
| 2022-08-21 | Rework point-at-arg | Michael Goulet | -28/+16 | |
| 2022-08-16 | Remove deferred sized checks | Michael Goulet | -2/+7 | |
| 2022-08-03 | Warn about dead tuple struct fields | Fabian Wolff | -2/+2 | |
| 2022-07-20 | Fix hack that remaps env constness. | Deadbeef | -16/+1 | |
| WARNING: might have perf implications. Are there any more problems with having a constness in the `ParamEnv` now? :) | ||||
| 2022-07-07 | Shorten span for closures. | Camille GILLOT | -3/+3 | |
| 2022-06-29 | Rollup merge of #98607 - compiler-errors:tuple-wrap-suggestion, r=oli-obk | Dylan DPC | -6/+46 | |
| Clean up arg mismatch diagnostic, generalize tuple wrap suggestion This is based on top of #97542, so just look at the last commit which contains the relevant changes. 1. Remove `final_arg_types` which was one of the last places we were using raw (`usize`) indices instead of typed indices in the arg mismatch suggestion code. 2. Improve the tuple wrap suggestion, now we suggest things like `call(a, b, c, d)` -> `call(a, (b, c), d)` :smiley_cat: 3. Folded in fix #98645 | ||||
| 2022-06-29 | Rollup merge of #98415 - ↵ | Dylan DPC | -3/+3 | |
| compiler-errors:rustc-borrowck-session-diagnostic-1, r=davidtwco Migrate some `rustc_borrowck` diagnostics to `SessionDiagnostic` Self-explanatory r? ```@davidtwco``` | ||||
| 2022-06-28 | Don't point at another arg if we're already pointing at one | Michael Goulet | -6/+46 | |
| 2022-06-28 | Migrate some rustc_borrowck diagnostics to SessionDiagnostic | Michael Goulet | -3/+3 | |
| 2022-06-28 | Note concrete type being coerced into object | Michael Goulet | -4/+4 | |
| 2022-06-16 | diagnostics: fix trailing space | klensy | -35/+35 | |
| 2022-06-06 | Update src/test/ui/unsized/issue-97732.rs | Chase Wilson | -3/+8 | |
| Co-authored-by: Eduard-Mihai Burtescu <edy.burt@gmail.com> | ||||
| 2022-06-04 | Added test for #97732 | Chase Wilson | -0/+23 | |
| 2022-05-20 | Move tests | Caio | -0/+108 | |
| 2022-05-06 | Resolve vars in note_type_err | Jack Huey | -3/+6 | |
| 2022-04-05 | Rollup merge of #95603 - compiler-errors:dyn-return, r=oli-obk | Dylan DPC | -0/+111 | |
| Fix late-bound ICE in `dyn` return type suggestion This fixes the root-cause of the attached issues -- the root problem is that we're using the return type from a signature with late-bound instead of early-bound regions. The change on line 1087 (`let Some(liberated_sig) = typeck_results.liberated_fn_sigs().get(fn_hir_id) else { return false; };`) makes sure we're grabbing the _right_ return type for this suggestion to check the `dyn` predicates with. Fixes #91801 Fixes #91803 This fix also includes some drive-by changes, specifically: 1. Don't suggest boxing when we have `-> dyn Trait` and are already returning `Box<T>` where `T: Trait` (before we always boxed the value). 2. Suggestion applies even when the return type is a type alias (e.g. `type Foo = dyn Trait`). This does cause the suggestion to expand to the aliased type, but I think it's still beneficial. 3. Split up the multipart suggestion because there's a 6-line max in the printed output... I am open to splitting out the above changes, if we just want to fix the ICE first. cc: ```@terrarier2111``` and #92289 | ||||
| 2022-04-02 | Suggest borrowing when trying to coerce unsized type into dyn Trait | Michael Goulet | -0/+16 | |
| 2022-04-02 | Fix late-bound ICE in unsized return suggestion | Michael Goulet | -0/+111 | |
| 2021-12-25 | bless ui test | Deadbeef | -1/+16 | |
| 2021-11-20 | Point at source of trait bound obligations in more places | Esteban Kuber | -0/+9 | |
| Be more thorough in using `ItemObligation` and `BindingObligation` when evaluating obligations so that we can point at trait bounds that introduced unfulfilled obligations. We no longer incorrectly point at unrelated trait bounds (`substs-ppaux.verbose.stderr`). In particular, we now point at trait bounds on method calls. We no longer point at "obvious" obligation sources (we no longer have a note pointing at `Trait` saying "required by a bound in `Trait`", like in `associated-types-no-suitable-supertrait*`). Address part of #89418. | ||||
| 2021-11-18 | Move some tests to more reasonable directories | Caio | -0/+79 | |
| 2021-11-14 | Move some tests to more reasonable directories | Caio | -0/+9 | |
| 2021-11-06 | Move some tests to more reasonable directories | Caio | -0/+22 | |
| 2021-10-30 | stabilize `relaxed_struct_unsize` | lcnr | -1/+0 | |
| 2021-10-19 | Revert "Rollup merge of #86011 - tlyu:correct-sized-bound-spans, r=estebank" | Yuki Okushi | -4/+4 | |
| This reverts commit 36a1076d24697621a3bb67ef654b4eb79647aa54, reversing changes made to e1e9319d93aea755c444c8f8ff863b0936d7a4b6. | ||||
| 2021-10-08 | update ui test expectations | Taylor Yu | -4/+4 | |
| 2021-09-26 | Remove box syntax from most places in src/test outside of the issues dir | est31 | -8/+7 | |
| 2021-09-16 | Point at call span that introduced obligation for the arg | Esteban Kuber | -5/+15 | |
| 2021-09-16 | Point at argument instead of call for their obligations | Esteban Kuber | -34/+3 | |
| When an obligation is introduced by a specific `fn` argument, point at the argument instead of the `fn` call if the obligation fails to be fulfilled. | ||||
| 2021-08-26 | add unsized coercion test | lcnr | -0/+24 | |
| 2021-08-16 | Use note to point at bound introducing requirement | Esteban Küber | -38/+66 | |
| 2021-08-11 | Modify structured suggestion output | Esteban Küber | -133/+169 | |
| * On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span | ||||
| 2021-07-30 | Do not discard `?Sized` type params and suggest their removal | Esteban Küber | -1/+146 | |
| 2021-07-03 | Remove the deprecated `core::raw` and `std::raw` module. | Charles Lew | -14/+11 | |
| 2021-04-19 | fix suggestion for unsized function parameters | lcnr | -0/+814 | |
| 2021-04-06 | Point at `impl` and type defs introducing requirements on E0277 | Esteban Küber | -5/+25 | |
| 2021-04-03 | Remove redundant `ignore-tidy-linelength` annotations | Simon Jakobi | -3/+1 | |
| This is step 2 towards fixing #77548. In the codegen and codegen-units test suites, the `//` comment markers were kept in order not to affect any source locations. This is because these tests cannot be automatically `--bless`ed. | ||||
| 2021-03-31 | give full path of constraint in suggest_constraining_type_param | hi-rustin | -11/+11 | |
| revert file bless with nll mode | ||||
| 2021-02-06 | Rollup merge of #81738 - camelid:misc-small-diag-cleanup, r=lcnr | Jonas Schievink | -4/+4 | |
| Miscellaneous small diagnostics cleanup | ||||
| 2021-02-03 | Miscellaneous small diagnostics cleanup | Camelid | -4/+4 | |
| 2021-02-04 | add `relaxed_struct_unsize` feature gate | Bastian Kauschke | -0/+1 | |
| 2021-02-04 | relax adt unsizing requirements | Bastian Kauschke | -0/+11 | |
| 2020-10-18 | Use smaller example for issue-71659 | Yuki Okushi | -77/+15 | |
| 2020-10-18 | Add test for issue-75707 | Yuki Okushi | -0/+29 | |
| 2020-10-18 | Add test for issue-71659 | Yuki Okushi | -0/+103 | |
