| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-02-18 | macro_rules: Preserve all metavariable spans in a global side table | Vadim Petrochenkov | -7/+4 | |
| 2024-02-16 | [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives | 许杰友 Jieyou Xu (Joe) | -17/+17 | |
| 2024-02-14 | remove importing suggestions when there is a shadowed typo canddiate | yukang | -5/+0 | |
| 2024-02-08 | Continue to borrowck even if there were previous errors | Oli Scherer | -3/+18 | |
| 2024-02-06 | Make sure that async closures (and fns) only capture their parent callable's ↵ | Michael Goulet | -27/+2 | |
| parameters by move, and nothing else | ||||
| 2024-01-29 | Supress unhelpful diagnostics for unresolved top level attributes | yukang | -12/+3 | |
| 2024-01-13 | Bless tests | George-lewis | -0/+1 | |
| Update tests | ||||
| 2024-01-05 | Remove revisions for THIR unsafeck | Matthew Jasper | -1593/+188 | |
| This is to make the diff when stabilizing it easier to review. | ||||
| 2023-11-24 | Show number in error message even for one error | Nilstrieb | -49/+49 | |
| Co-authored-by: Adrian <adrian.iosdev@gmail.com> | ||||
| 2023-11-07 | Rework print_disambiguation_help | Michael Goulet | -4/+4 | |
| 2023-10-26 | Tweak suggestion spans for invalid crate-level inner attribute | Esteban Küber | -2/+6 | |
| CC #89566. | ||||
| 2023-10-25 | Make THIR unused_unsafe lint consistent with MIR | Matthew Jasper | -305/+1592 | |
| Updates THIR behavior to match the changes from #93678 | ||||
| 2023-10-02 | Replace `HashMap` with `IndexMap` in pattern binding resolve | Nilstrieb | -17/+17 | |
| It will be iterated over, so we should avoid using `HashMap`. | ||||
| 2023-09-21 | adjust how closure/generator types and rvalues are printed | Ralf Jung | -2/+2 | |
| 2023-09-17 | Rollup merge of #114965 - benschulz:mpsc-drop, r=dtolnay | Dylan DPC | -6/+4 | |
| Remove Drop impl of mpsc Receiver and (Sync)Sender This change removes the empty `Drop` implementations for `mpsc::Receiver`, `mpsc::Sender` and `mpsc::SyncSender`. These implementations do not specify `#[may_dangle]`, so by removing them we make `mpsc` types play nice with drop check. This was previously attempted in [#105243](https://github.com/rust-lang/rust/pull/105243#issuecomment-1337188646) but then [abandoned due to a test failure](https://github.com/rust-lang/rust/pull/105243#issuecomment-1337227970). I've aligned the test with those for `Mutex` and `RwLock`. | ||||
| 2023-09-10 | Point out if a local trait has no implementations | Michael Goulet | -0/+6 | |
| 2023-08-18 | Bless test changes | Gary Guo | -10/+10 | |
| 2023-08-18 | Remove Drop impl of mpsc Receiver and (Sync)Sender | Ben Schulz | -6/+4 | |
| 2023-08-05 | Auto merge of #109348 - cjgillot:issue-109146, r=petrochenkov | bors | -4/+4 | |
| Resolve visibility paths as modules not as types. Asking for a resolution with `opt_ns = Some(TypeNS)` allows path resolution to look for type-relative paths, leaving unresolved segments behind. However, for visibility paths we really need to look for a module, so we need to pass `opt_ns = None`. Fixes https://github.com/rust-lang/rust/issues/109146 r? `@petrochenkov` | ||||
| 2023-08-04 | Improve spans for indexing expressions | Nilstrieb | -2/+2 | |
| Indexing is similar to method calls in having an arbitrary left-hand-side and then something on the right, which is the main part of the expression. Method calls already have a span for that right part, but indexing does not. This means that long method chains that use indexing have really bad spans, especially when the indexing panics and that span in coverted into a panic location. This does the same thing as method calls for the AST and HIR, storing an extra span which is then put into the `fn_span` field in THIR. | ||||
| 2023-08-02 | Resolve visibility paths as modules not as types. | Camille GILLOT | -4/+4 | |
| 2023-07-10 | Do not set up wrong span for adjustments | Michael Goulet | -30/+32 | |
| 2023-07-08 | Rollup merge of #113005 - compiler-errors:dont-query-normalize, r=cjgillot | Matthias Krüger | -2/+2 | |
| Don't call `query_normalize` when reporting similar impls Firstly, It's sketchy to be using `query_normalize` at all during HIR typeck -- it's asking for an ICE 😅. Secondly, we're normalizing an impl trait ref that potentially has parameter types in `ty::ParamEnv::empty()`, which is kinda sketchy as well. The only UI test change from removing this normalization is that we don't evaluate anonymous constants in impls, which end up giving us really ugly suggestions: ``` error[E0277]: the trait bound `[X; 35]: Default` is not satisfied --> /home/gh-compiler-errors/test.rs:4:5 | 4 | <[X; 35] as Default>::default(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `[X; 35]` | = help: the following other types implement trait `Default`: &[T] &mut [T] [T; 32] [T; core::::array::{impl#30}::{constant#0}] [T; core::::array::{impl#31}::{constant#0}] [T; core::::array::{impl#32}::{constant#0}] [T; core::::array::{impl#33}::{constant#0}] [T; core::::array::{impl#34}::{constant#0}] and 27 others ``` So just fold the impls with a `BottomUpFolder` that calls `ty::Const::eval`. This doesn't work totally correctly with generic-const-exprs, but it's fine for stable code, and this is error reporting after all. | ||||
| 2023-06-27 | Don't sort strings right after we just sorted by types | Michael Goulet | -2/+2 | |
| 2023-06-24 | fix test | asquared31415 | -3/+28 | |
| 2023-05-09 | Rollup merge of #110583 - Ezrashaw:tweak-make-mut-spans, r=estebank | Dylan DPC | -15/+15 | |
| tweak "make mut" spans when assigning to locals Work towards fixing #106857 This PR just cleans up a lot of spans which is helpful before properly fixing the issues. Best reviewed commit-by-commit. r? `@estebank` | ||||
| 2023-05-08 | Tweak borrow suggestion | Michael Goulet | -8/+13 | |
| 2023-05-05 | tweak "make mut" spans (No. 3) | Ezra Shaw | -10/+10 | |
| 2023-05-05 | tweak "make mut" spans (No. 2) | Ezra Shaw | -5/+5 | |
| 2023-04-27 | Provide RHS type hint when reporting operator error | Michael Goulet | -2/+2 | |
| 2023-04-21 | Evaluate place expression in `PlaceMention`. | Camille GILLOT | -2/+0 | |
| 2023-04-19 | Make missing impl item suggestions more obvious that they're missing | Michael Goulet | -3/+3 | |
| 2023-04-12 | Special-case item attributes in the suggestion output | Esteban Küber | -2/+0 | |
| 2023-04-12 | Tweak output for 'add line' suggestion | Esteban Küber | -2/+5 | |
| 2023-03-08 | may not => cannot | Michael Goulet | -8/+8 | |
| 2023-02-28 | Exit when there are unmatched delims to avoid noisy diagnostics | yukang | -99/+6 | |
| 2023-02-22 | diagnostics: update test cases to refer to assoc fn with `self` as method | Michael Howell | -11/+11 | |
| 2023-02-14 | Make removal suggestion not verbose | Esteban Küber | -12/+8 | |
| 2023-02-14 | rebase and review comments | Esteban Küber | -2/+2 | |
| 2023-02-14 | More accurate spans for arg removal suggestion | Esteban Küber | -4/+6 | |
| 2023-02-11 | Pacify tidy. | Camille GILLOT | -0/+1 | |
| 2023-02-11 | Intern span when length is MAX_LEN with parent. | Camille GILLOT | -0/+8 | |
| 2023-01-30 | Modify primary span label for E0308 | Esteban Küber | -5/+5 | |
| The previous output was unintuitive to users. | ||||
| 2023-01-17 | Account for method call and indexing when looking for inner-most path in ↵ | Esteban Küber | -7/+18 | |
| expression | ||||
| 2023-01-17 | Account for `*` when looking for inner-most path in expression | Esteban Küber | -0/+14 | |
| 2023-01-15 | Tweak E0597 | Esteban Küber | -16/+118 | |
| CC #99430 | ||||
| 2023-01-12 | Point at impl self type for impl wf obligations | Michael Goulet | -4/+4 | |
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -0/+7833 | |
