| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-02-16 | Move librustc/{traits,infer} to librustc_infer. | Camille GILLOT | -2099/+0 | |
| 2020-02-14 | Improve opaque type lifetime errors | Matthew Jasper | -4/+2 | |
| * Use better span for member constraint errors * Avoid a bad suggestion * Don't report member constraint errors if we have other universal region errors. | ||||
| 2020-02-11 | Invert control in struct_lint_level. | jumbatm | -1/+1 | |
| Caller now passes in a `decorate` function, which is only run if the lint is allowed. | ||||
| 2020-02-06 | index ReEmpty by universe | Niko Matsakis | -2/+33 | |
| We now make `'empty` indexed by a universe index, resulting in a region lattice like this: ``` static ----------+-----...------+ (greatest) | | | early-bound and | | free regions | | | | | scope regions | | | | | empty(root) placeholder(U1) | | / | | / placeholder(Un) empty(U1) -- / | / ... / | / empty(Un) -------- (smallest) ``` Therefore, `exists<A> { forall<B> { B: A } }` is now unprovable, because A must be at least Empty(U1) and B is placeholder(U2), and hence the two regions are unrelated. | ||||
| 2020-01-25 | Use better bound names in `-Zverbose` mode | Esteban Küber | -3/+7 | |
| 2020-01-18 | remove rustc_error_codes deps except in rustc_driver | Mazdak Farrokhzad | -1/+0 | |
| 2020-01-17 | Use named fields for `hir::ItemKind::Impl` | Dylan MacKenzie | -1/+1 | |
| 2020-01-16 | don't clone types that are copy | Matthias Krüger | -1/+1 | |
| found via clippy | ||||
| 2020-01-10 | nix syntax::errors & prefer rustc_errors over errors | Mazdak Farrokhzad | -6/+4 | |
| 2020-01-08 | remove unnecessary `Debug` | Esteban Küber | -1/+1 | |
| 2020-01-08 | reduce code duplication | Esteban Küber | -35/+35 | |
| 2020-01-08 | review comments | Esteban Küber | -26/+40 | |
| 2020-01-08 | review comments | Esteban Küber | -16/+34 | |
| 2020-01-08 | review comment: wording | Esteban Küber | -6/+8 | |
| 2020-01-08 | Point at the def span of trait refs E0277 | Esteban Küber | -1/+8 | |
| 2020-01-08 | review comments | Esteban Küber | -17/+23 | |
| 2020-01-08 | Point at opaque and closure type definitions in type errors | Esteban Küber | -5/+92 | |
| 2020-01-08 | - remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!} | Mazdak Farrokhzad | -1/+1 | |
| - remove syntax::{help!, span_help!, span_note!} - remove unused syntax::{struct_span_fatal, struct_span_err_or_warn!, span_err_or_warn!} - lintify check_for_bindings_named_same_as_variants + conflicting_repr_hints - inline syntax::{struct_span_warn!, diagnostic_used!} - stringify_error_code! -> error_code! & use it more. - find_plugin_registrar: de-fatalize an error - de-fatalize metadata errors - move type_error_struct! to rustc_typeck - struct_span_err! -> rustc_errors | ||||
| 2020-01-07 | Make ↵ | Camille GILLOT | -1/+2 | |
| rustc::traits::object_safety::{astconv_object_safety_violations,is_vtable_safe_method,object_safety_violations} free functions. | ||||
| 2020-01-07 | Make ↵ | Camille GILLOT | -1/+2 | |
| rustc::traits::error_reporting::{recursive_type_with_infinite_size_error, report_object_safety_error} free functions. | ||||
| 2020-01-07 | Make rustc::infer::error_reporting::{note_and_explain_free_region, ↵ | Camille GILLOT | -88/+89 | |
| note_and_explain_region} free functions. | ||||
| 2020-01-07 | Remove private methods from TyCtxt impl block: rustc::infer::error_reporting. | Camille GILLOT | -107/+107 | |
| 2020-01-06 | Auto merge of #67886 - Centril:rustc_hir_canon_imports, r=nagisa | bors | -5/+6 | |
| Nix `rustc_hir` reexports in rustc::hir r? @Zoxc cc @Mark-Simulacrum | ||||
| 2020-01-05 | Remove rustc_hir reexports in rustc::hir. | Mazdak Farrokhzad | -5/+6 | |
| 2020-01-05 | Add backticks to various diagnostics | varkor | -10/+10 | |
| 2020-01-01 | Rename `syntax_pos` to `rustc_span` in source code | Vadim Petrochenkov | -1/+1 | |
| 2019-12-30 | discriminant -> scrutinee | Mazdak Farrokhzad | -5/+5 | |
| 2019-12-30 | Blame user type in pat type error. | Mazdak Farrokhzad | -2/+5 | |
| 2019-12-30 | refactor and fix this-expression-has-type note | Mazdak Farrokhzad | -0/+1 | |
| 2019-12-30 | MatchExpressionArmPattern -> Pattern | Mazdak Farrokhzad | -1/+1 | |
| Current name is too specific for incoming changes. | ||||
| 2019-12-30 | MatchExpressionArmPattern: Use more generic wording. | Mazdak Farrokhzad | -1/+1 | |
| The existing wording was inappropriate for e.g. `if let Ok(_) = expr { .. }`. The diagnostic would leak the fact that we desugar to a `match`. | ||||
| 2019-12-22 | Format the world | Mark Rousskov | -182/+142 | |
| 2019-12-22 | Auto merge of #66931 - cjgillot:hirene-preamble, r=eddyb | bors | -3/+3 | |
| Allocate HIR on an arena 1/4 This PR is the first in a series of 4, aiming at allocating the HIR on an arena, as a memory optimisation. 1. This first PR lays the groundwork and migrates some low-hanging fruits. 2. The second PR will migrate `hir::Expr`, `hir::Pat` and related. 3. The third PR will migrate `hir::Ty` and related. 4. The final PR will be dedicated to eventual cleanups. In order to make the transition as gradual as possible, some lowering routines receive `Box`-allocated data and move it into the arena. This is a bit wasteful, but hopefully temporary. Nonetheless, special care should be taken to avoid double arena allocations. Work mentored by @Zoxc. | ||||
| 2019-12-21 | Use Arena inside hir::ImplItem. | Camille GILLOT | -1/+1 | |
| 2019-12-21 | Use Arena inside hir::TraitItem. | Camille GILLOT | -1/+1 | |
| 2019-12-21 | Use Arena inside hir::Item. | Camille GILLOT | -1/+1 | |
| 2019-12-20 | Check associated type implementations for generic mismatches | Matthew Jasper | -0/+2 | |
| 2019-12-10 | Deduplicate logic | Esteban Küber | -0/+1 | |
| 2019-12-03 | Include a span in more `expected...found` notes | Aaron Hill | -5/+10 | |
| In most places, we use a span when emitting `expected...found` errors. However, there were a couple of places where we didn't use any span, resulting in hard-to-interpret error messages. This commit attaches the relevant span to these notes, and additionally switches over to using `note_expected_found` instead of manually formatting the message | ||||
| 2019-11-29 | allow customising ty::TraitRef's printing behavior | Mikhail Babenko | -2/+14 | |
| fix clippy allow customising ty::TraitRef's printing behavior fix clippy stylistic fix | ||||
| 2019-11-26 | Rollup merge of #66754 - estebank:rustdoc-capitalization, r=Dylan-DPC | Tyler Mandry | -10/+5 | |
| Various tweaks to diagnostic output | ||||
| 2019-11-25 | Fix capitalization when mentioning different crate versions in E0308 | Esteban Küber | -10/+5 | |
| 2019-11-23 | review comments: remove unnecessary `&str` to `String` conversions | Esteban Küber | -20/+20 | |
| 2019-11-23 | Highlight parts of fn in type errors | Esteban Küber | -3/+174 | |
| When a type error arises between two fn items, fn pointers or tuples, highlight only the differing parts of each. | ||||
| 2019-11-21 | Auto merge of #66610 - alexreg:trait-upcasting-cosmetic, r=Centril | bors | -6/+8 | |
| Aggregation of drive-by cosmetic changes for trait-upcasting PR Cherry-picked from #60900. As requested by @Centril (and @nikomatsakis, I believe). r? @Centril | ||||
| 2019-11-21 | Aggregation of drive-by cosmetic changes. | Alexander Regueiro | -6/+8 | |
| 2019-11-18 | review comments | Esteban Küber | -4/+2 | |
| 2019-11-18 | Remove E0308 note when primary label has all info | Esteban Küber | -16/+33 | |
| 2019-11-18 | Specific labels when referring to "expected" and "found" types | Esteban Küber | -14/+20 | |
| 2019-11-14 | Update to use new librustc_error_codes library | Guillaume Gomez | -0/+2 | |
