| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2021-04-17 | Move some tests to more reasonable directories - 6 | Caio | -683/+0 | |
| 2021-03-31 | give full path of constraint in suggest_constraining_type_param | hi-rustin | -2/+2 | |
| revert file bless with nll mode | ||||
| 2021-03-15 | More precise spans for HIR paths | Vadim Petrochenkov | -1/+15 | |
| 2021-01-13 | Auto merge of #77524 - Patryk27:fixes/66228, r=estebank | bors | -19/+66 | |
| Rework diagnostics for wrong number of generic args (fixes #66228 and #71924) This PR reworks the `wrong number of {} arguments` message, so that it provides more details and contextual hints. | ||||
| 2021-01-13 | Update tests for extern block linting | Mark Rousskov | -1/+1 | |
| 2021-01-10 | Rework diagnostics for wrong number of generic args | Patryk Wychowaniec | -19/+66 | |
| 2020-12-29 | test: updated expected Vec src path | C | -1/+1 | |
| 2020-12-04 | Rename `AllocRef` to `Allocator` and `(de)alloc` to `(de)allocate` | Tim Diekmann | -1/+1 | |
| 2020-11-18 | Add support for custom allocators in `Vec` | Tim Diekmann | -1/+1 | |
| 2020-11-07 | Implement destructuring assignment for tuples | Fabian Zaiser | -16/+37 | |
| Co-authored-by: varkor <github@varkor.com> | ||||
| 2020-09-09 | Rollup merge of #75984 - kornelski:typeormodule, r=matthewjasper | Tyler Mandry | -6/+6 | |
| Improve unresolved use error message "use of undeclared type or module `foo`" doesn't mention that it could be a crate. This error can happen when users forget to add a dependency to `Cargo.toml`, so I think it's important to mention that it could be a missing crate. I've used a heuristic based on Rust's naming conventions. It complains about an unknown type if the ident starts with an upper-case letter, and crate or module otherwise. It seems to work very well. The expanded error help covers both an unknown type and a missing crate case. | ||||
| 2020-09-02 | pretty: trim paths of unique symbols | Dan Aloni | -11/+11 | |
| If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not. | ||||
| 2020-09-01 | Clarify message about unresolved use | Kornel | -6/+6 | |
| 2020-08-14 | Tweak output of E0225 | Esteban Küber | -5/+5 | |
| When encountering multiple non-auto trait bounds suggest creating a new trait and explain what auto-traits are. | ||||
| 2020-07-27 | mv std libs to library/ | mark | -1/+1 | |
| 2020-07-14 | Remove redundant explanatory `note` for type parameters | Esteban Küber | -1/+0 | |
| 2020-07-14 | Remove `Sized` `on_unimplemented` note | Esteban Küber | -2/+0 | |
| 2020-04-11 | rustc: Add a warning count upon completion | RoccoDev | -0/+2 | |
| 2020-04-08 | Use `PredicateObligation`s instead of `Predicate`s | Esteban Küber | -1/+5 | |
| Keep more information about trait binding failures. | ||||
| 2020-03-29 | Tweak `suggest_constraining_type_param` | Esteban Küber | -4/+3 | |
| Some of the bound restriction structured suggestions were incorrect while others had subpar output. | ||||
| 2020-02-09 | Improve reporting errors and suggestions for trait bounds | Patryk Wychowaniec | -2/+5 | |
| 2020-01-24 | Normalise notes with the/is | varkor | -2/+2 | |
| 2020-01-05 | Add backticks to various diagnostics | varkor | -6/+6 | |
| 2019-12-23 | Add new folder for destructuring assignment tests | varkor | -148/+1 | |
| 2019-12-23 | Add span information to `ExprKind::Assign` | varkor | -18/+18 | |
| 2019-12-23 | Recognise nested tuples/arrays/structs | varkor | -1/+16 | |
| 2019-12-23 | Add note about destructuring assignments | varkor | -0/+135 | |
| 2019-12-23 | Improve invalid assignment error | varkor | -16/+26 | |
| 2019-12-21 | rework run-fail and support check,build-fail | Mazdak Farrokhzad | -3/+5 | |
| 2019-11-18 | Remove E0308 note when primary label has all info | Esteban Küber | -5/+0 | |
| 2019-11-18 | Specific labels when referring to "expected" and "found" types | Esteban Küber | -10/+10 | |
| 2019-11-14 | Fix ui tests with better error code usage | Guillaume Gomez | -0/+1 | |
| 2019-10-24 | Increase spacing for suggestions in diagnostics | Esteban Küber | -0/+1 | |
| Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages. | ||||
| 2019-10-15 | Use structured suggestion for restricting bounds | Esteban Küber | -1/+2 | |
| When a trait bound is not met and restricting a type parameter would make the restriction hold, use a structured suggestion pointing at an appropriate place (type param in param list or `where` clause). Account for opaque parameters where instead of suggesting extending the `where` clause, we suggest appending the new restriction: `fn foo(impl Trait + UnmetTrait)`. | ||||
| 2019-07-19 | normalize use of backticks in compiler messages for librustc_metadata | Samy Kacimi | -2/+2 | |
| https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-07-17 | normalize use of backticks in compiler messages for librustc/lint | Samy Kacimi | -2/+2 | |
| https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-06-16 | compiletest: Remove `skip-codegen` | Vadim Petrochenkov | -4/+3 | |
| 2019-05-29 | Update ui test suite to use dyn | memoryruins | -14/+14 | |
| 2019-05-20 | Addressed more points raised in review. | Alexander Regueiro | -2/+5 | |
| 2019-05-20 | Update tests. | Alexander Regueiro | -1/+3 | |
| 2019-04-22 | Remove double trailing newlines | varkor | -1/+0 | |
| 2019-04-18 | hide `--explain` hint if error has no extended info | Andy Russell | -9/+8 | |
| 2019-04-17 | Resolve inconsistency in error messages between "parameter" and "variable". | Eduard-Mihai Burtescu | -1/+1 | |
| 2019-03-23 | Swap primary/secondary spans for E0458 | Esteban Küber | -2/+2 | |
| 2019-03-15 | rustc: pass Option<&Substs> and Namespace around in ty::item_path. | Eduard-Mihai Burtescu | -1/+1 | |
| 2019-03-11 | Update tests | Vadim Petrochenkov | -15/+15 | |
| 2019-02-11 | Use hidden suggestions for unused imports lint | Esteban Küber | -2/+2 | |
| 2019-02-11 | Auto merge of #56645 - pietroalbini:fix-unused-imports, r=estebank | bors | -2/+2 | |
| Initial implementation of rustfixable unused_imports lint This PR adds the initial implementation of rustfixable `unused_imports` lint. The implementation works, but rustfix is not able to apply all the suggestions until https://github.com/rust-lang/rust/issues/53934 is fixed. It also needs https://github.com/rust-lang/rust/pull/58296 to hide the suggested note since it's really useless. cc https://github.com/rust-lang/rust/issues/47888 <details><summary><code>cargo fix</code> in action on the <code>unused_imports</code> lint</summary>  </details> | ||||
| 2019-02-08 | unused_imports: update tests | Pietro Albini | -2/+2 | |
| 2019-02-07 | Make name resolution handle consts in GenericParamsFromOuterFunction properly | varkor | -5/+5 | |
