| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-09-23 | Add parser recovery for `const $ident = $expr;`. | Mazdak Farrokhzad | -0/+84 | |
| Then use the diagnostics-stealing API to stash parser errors and enrich them with type information in typeck. | ||||
| 2019-09-22 | On obligation errors point at the unfulfilled binding when possible | Esteban Küber | -3/+3 | |
| 2019-09-22 | Point at definition when misusing ADT | Esteban Küber | -0/+6 | |
| When given `struct Foo(usize)` and using it as `Foo {}` or `Foo`, point at `Foo`'s definition in the error. | ||||
| 2019-09-19 | When possible, suggest fn call | Esteban Küber | -6/+8 | |
| 2019-09-19 | When possible point at argument causing item obligation failure | Esteban Küber | -6/+6 | |
| 2019-09-15 | resolve: Tweak "cannot find" wording for attributes | Vadim Petrochenkov | -6/+6 | |
| 2019-09-08 | Give method not found a primary span label | Esteban Küber | -4/+4 | |
| 2019-09-05 | Opaque type locations in error message for clarity. | Giles Cope | -2/+2 | |
| 2019-09-01 | review comment | Esteban Küber | -2/+2 | |
| 2019-08-31 | Suggest call fn ctor passed as arg to fn with type param bounds | Esteban Küber | -0/+56 | |
| 2019-08-31 | Use span label instead of note for cause in E0631 | Esteban Küber | -5/+3 | |
| 2019-08-29 | Rollup merge of #63811 - estebank:impl-trait-arg, r=cramertj | Mazdak Farrokhzad | -0/+55 | |
| Correctly suggest adding bounds to `impl Trait` argument Fix #63706. | ||||
| 2019-08-25 | Rollup merge of #63833 - estebank:suggest-closure-call, r=petrochenkov | Mazdak Farrokhzad | -1/+17 | |
| Suggest calling closure with resolved return type when appropriate Follow up to #63337. CC #63100. ``` error[E0308]: mismatched types --> $DIR/fn-or-tuple-struct-without-args.rs:46:20 | LL | let closure = || 42; | -- closure defined here LL | let _: usize = closure; | ^^^^^^^ | | | expected usize, found closure | help: use parentheses to call this closure: `closure()` | = note: expected type `usize` found type `[closure@$DIR/fn-or-tuple-struct-without-args.rs:45:19: 45:24]` ``` | ||||
| 2019-08-25 | Rollup merge of #63813 - estebank:int-from, r=varkor | Mazdak Farrokhzad | -0/+12 | |
| Do not suggest `.try_into()` on `i32::from(x)` Fix #63697. | ||||
| 2019-08-23 | Suggest calling closure with resolved return type when appropriate | Esteban Küber | -1/+17 | |
| 2019-08-22 | Do not suggest `.try_into()` on `i32::from(x)` | Esteban Küber | -0/+12 | |
| 2019-08-22 | Correctly suggest adding bounds to `impl Trait` argument | Esteban Küber | -0/+55 | |
| 2019-08-21 | review comments: reword and add test | Esteban Küber | -0/+44 | |
| 2019-08-19 | Cherry-pick src/test changes with Centril's changes | sd234678 | -7/+7 | |
| 2019-08-15 | Do not suggest `try_into` for base types inside of macro expansions | Esteban Küber | -0/+14 | |
| 2019-08-14 | Rollup merge of #63507 - estebank:type-inference-error, r=Centril | Mazdak Farrokhzad | -0/+88 | |
| When needing type annotations in local bindings, account for impl Trait and closures Fix https://github.com/rust-lang/rust/issues/46680, fix https://github.com/rust-lang/rust/issues/63504, fix https://github.com/rust-lang/rust/issues/63506, fix #40014, cc https://github.com/rust-lang/rust/issues/63502. | ||||
| 2019-08-13 | Suggest giving return type to closures on E0282 | Esteban Küber | -0/+48 | |
| 2019-08-13 | review comments | Esteban Küber | -2/+2 | |
| 2019-08-13 | review comment: remove unecessary error in test | Esteban Küber | -12/+4 | |
| 2019-08-12 | Do not ICE when synthesizing spans falling inside unicode chars | Esteban Küber | -0/+22 | |
| 2019-08-12 | Suggest `Box::new` when appropriate | Esteban Küber | -0/+40 | |
| When encountering a boxed value as expected and a stack allocated value that could be boxed to fulfill the expectation, like in the following snippet, suggest `Box::new` wrapping. | ||||
| 2019-08-10 | diagnostics: Describe crate root modules in `DefKind::Mod` as "crate" | Vadim Petrochenkov | -2/+2 | |
| 2019-08-10 | Rollup merge of #63399 - estebank:vec-in-pat, r=Centril | Mazdak Farrokhzad | -0/+31 | |
| More explicit diagnostic when using a `vec![]` in a pattern ``` error: unexpected `(` after qualified path --> $DIR/vec-macro-in-pattern.rs:3:14 | LL | Some(vec![x]) => (), | ^^^^^^^ | | | unexpected `(` after qualified path | in this macro invocation | use a slice pattern here instead | = help: for more information, see https://doc.rust-lang.org/edition-guide/rust-2018/slice-patterns.html = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) ``` Fix #61933. | ||||
| 2019-08-09 | review comments: use structured suggestion | Esteban Küber | -6/+16 | |
| 2019-08-09 | More explicit diagnostic when using a `vec![]` in a pattern | Esteban Küber | -0/+21 | |
| ``` error: unexpected `(` after qualified path --> $DIR/vec-macro-in-pattern.rs:3:14 | LL | Some(vec![x]) => (), | ^^^^^^^ | | | unexpected `(` after qualified path | in this macro invocation | use a slice pattern here instead | = help: for more information, see https://doc.rust-lang.org/edition-guide/rust-2018/slice-patterns.html = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) ``` | ||||
| 2019-08-09 | review comments: typo and rewording | Esteban Küber | -3/+3 | |
| 2019-08-09 | Extend suggestion support for traits and foreign items | Esteban Küber | -16/+137 | |
| 2019-08-09 | Differentiate between tuple structs and tuple variants | Esteban Küber | -8/+39 | |
| 2019-08-09 | Recover parser from `foo(_, _)` | Esteban Küber | -0/+57 | |
| 2019-08-09 | When suggesting fn call use an appropriate number of placeholder arguments | Esteban Küber | -0/+113 | |
| 2019-07-27 | Rollup merge of #63014 - davidtwco:rustfix-incorrect-dyn-suggestion, r=estebank | Mazdak Farrokhzad | -0/+119 | |
| Stop bare trait lint applying to macro call sites Fixes #61963. Apologies for the delay with in fixing this. If anyone has a better idea how to detect this macro call site case, I'd be happy to fix this in a more robust, less hacky way. r? @estebank | ||||
| 2019-07-26 | lowering: Omit bare trait lint on macro call sites | David Wood | -9/+2 | |
| This commit implements a hacky fix for detecting when a span is pointing at a macro call site so that bare trait lints are not made incorrectly. | ||||
| 2019-07-25 | Add note suggesting to borrow a String argument to find | Esteban Küber | -0/+18 | |
| 2019-07-24 | Rollup merge of #62772 - estebank:trait-bound, r=matthewjasper | Mazdak Farrokhzad | -0/+40 | |
| Suggest trait bound on type parameter when it is unconstrained Given ``` trait Foo { fn method(&self) {} } fn call_method<T>(x: &T) { x.method() } ``` suggest constraining `T` with `Foo`. Fix #21673, fix #41030. | ||||
| 2019-07-23 | Rollup merge of #62817 - estebank:variant-sp, r=matthewjasper | Mark Rousskov | -3/+1 | |
| Tweak span for variant not found error | ||||
| 2019-07-23 | Rollup merge of #62791 - estebank:type-ascription, r=petrochenkov | Mark Rousskov | -4/+10 | |
| Handle more cases of typos misinterpreted as type ascription Fix #60933, #54516. CC #47666, #34255, #48016. | ||||
| 2019-07-20 | tests: Add minimal reproduction of #61963. | David Wood | -0/+126 | |
| This commit adds a reproduction of the error reported in servo which demonstrates the current, incorrect behaviour. Co-authored-by: Rémy Rakić <remy.rakic@gmail.com> | ||||
| 2019-07-19 | Tweak span for variant not found error | Esteban Küber | -3/+1 | |
| 2019-07-19 | Handle more cases of typos misinterpreted as type ascription | Esteban Küber | -4/+10 | |
| 2019-07-18 | Suggest trait bound on type parameter when it is unconstrained | Esteban Küber | -0/+40 | |
| Given ``` mented on Jan 26, 2015 • trait Foo { fn method(&self) {} } fn call_method<T>(x: &T) { x.method() } ``` suggest constraining `T` with `Foo`. | ||||
| 2019-07-18 | resolve: Visit all scopes to collect suggestion candidates for unresolved macros | Vadim Petrochenkov | -3/+3 | |
| 2019-07-18 | resolve: Use `feature(custom_attribute)` fallback only if the feature is enabled | Vadim Petrochenkov | -17/+8 | |
| Normally `#![feature(...)]` shouldn't change behavior, but custom attributes in particular are in the process of retirement, and we should not produce a message telling to enable them. It also helps with unifying diagnostics for unresolved macros. | ||||
| 2019-07-13 | Suggest assoc type on type not found in trait method definition | Esteban Küber | -0/+16 | |
| 2019-07-09 | normalize use of backticks in compiler messages for libsyntax/feature_gate | Samy Kacimi | -4/+4 | |
| https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-07-05 | Rollup merge of #62133 - petrochenkov:norustc, r=eddyb | Mazdak Farrokhzad | -15/+22 | |
| Feature gate `rustc` attributes harder Fixes https://github.com/rust-lang/rust/issues/62116 | ||||
