| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -17/+0 | |
| 2022-10-20 | Update tests to match error message changes | b4den | -1/+1 | |
| 2021-09-25 | Use larger span for adjustments on method calls | Aaron Hill | -1/+1 | |
| Currently, we use a relatively 'small' span for THIR expressions generated by an 'adjustment' (e.g. an autoderef, autoborrow, unsizing). As a result, if a borrow generated by an adustment ends up causing a borrowcheck error, for example: ```rust let mut my_var = String::new(); let my_ref = &my_var my_var.push('a'); my_ref; ``` then the span for the mutable borrow may end up referring to only the base expression (e.g. `my_var`), rather than the method call which triggered the mutable borrow (e.g. `my_var.push('a')`) Due to a quirk of the MIR borrowck implementation, this doesn't always get exposed in migration mode, but it does in many cases. This commit makes THIR building consistently use 'larger' spans for adjustment expressions The intent of this change it make it clearer to users when it's the specific way in which a variable is used (for example, in a method call) that produdes a borrowcheck error. For example, an error message claiming that a 'mutable borrow occurs here' might be confusing if it just points at a usage of a variable (e.g. `my_var`), when no `&mut` is in sight. Pointing at the entire expression should help to emphasize that the method call itself is responsible for the mutable borrow. In several cases, this makes the `#![feature(nll)]` diagnostic output match up exactly with the default (migration mode) output. As a result, several `.nll.stderr` files end up getting removed entirely. | ||||
| 2021-05-12 | Show macro name in 'this error originates in macro' message | Aaron Hill | -1/+1 | |
| When there are multiple macros in use, it can be difficult to tell which one was responsible for producing an error. | ||||
| 2020-02-06 | rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. | Eduard-Mihai Burtescu | -1/+1 | |
| 2020-02-06 | rustc: rename -Zexternal-macro-backtrace to -Zmacro-backtrace. | Eduard-Mihai Burtescu | -1/+1 | |
| 2019-04-22 | update tests for migrate mode by default | Matthew Jasper | -6/+6 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -1/+1 | |
| 2018-07-23 | Match errors using the callsite of macro expansions | Federico Poli | -1/+1 | |
| 2018-05-25 | rust-lang/rust#51025: improve test robustness so that they work under NLL too. | Felix S. Klock II | -0/+1 | |
| 2018-03-14 | update tests | Guillaume Gomez | -1/+1 | |
| 2018-02-26 | Update UI tests | Vadim Petrochenkov | -1/+1 | |
| 2018-02-26 | Update UI tests | Vadim Petrochenkov | -3/+3 | |
| 2018-02-25 | Update ui tests | Guillaume Gomez | -0/+1 | |
| 2017-12-14 | Point at var in short lived borrows | Esteban Küber | -4/+4 | |
| 2017-11-26 | mention nightly in -Z external-macro-backtrace note | Alex Burka | -1/+1 | |
| 2017-11-24 | Merge cfail and ui tests into ui tests | Oliver Schneider | -1/+1 | |
| 2017-11-20 | address review comments | Alex Burka | -1/+1 | |
| 2017-11-19 | use -Z flag instead of env var | Alex Burka | -1/+1 | |
| 2017-11-19 | update UI tests | Alex Burka | -1/+1 | |
| 2017-08-16 | Stabilize rvalue promotion to 'static. | Eduard-Mihai Burtescu | -2/+4 | |
| 2017-07-02 | Revert "Change error count messages" | Ariel Ben-Yehuda | -1/+1 | |
| This reverts commit 5558c64f33446225739c1153b43d2e309bb4f50e. | ||||
| 2017-05-27 | Add new error codes and update tests | Guillaume Gomez | -1/+1 | |
| 2017-05-24 | Change error count messages | Michael Kohl | -1/+1 | |
| See #33525 for details. | ||||
| 2016-11-09 | Improve "Doesn't live long enough" error | Mikhail Modin | -0/+13 | |
| case with temporary variable | ||||
