| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-12-18 | Rename `Session::span_diagnostic` as `Session::dcx`. | Nicholas Nethercote | -1/+1 | |
| 2023-12-15 | Fix comments | Michael Goulet | -2/+0 | |
| 2023-12-15 | Don't pass lint back out of lint decorator | Michael Goulet | -6/+3 | |
| 2023-11-25 | is_{some,ok}_and | Michael Goulet | -1/+1 | |
| 2023-11-22 | Replace `custom_encodable` with `encodable`. | Nicholas Nethercote | -1/+0 | |
| By default, `newtype_index!` types get a default `Encodable`/`Decodable` impl. You can opt out of this with `custom_encodable`. Opting out is the opposite to how Rust normally works with autogenerated (derived) impls. This commit inverts the behaviour, replacing `custom_encodable` with `encodable` which opts into the default `Encodable`/`Decodable` impl. Only 23 of the 59 `newtype_index!` occurrences need `encodable`. Even better, there were eight crates with a dependency on `rustc_serialize` just from unused default `Encodable`/`Decodable` impls. This commit removes that dependency from those eight crates. | ||||
| 2023-11-21 | Fix `clippy::needless_borrow` in the compiler | Nilstrieb | -8/+8 | |
| `x clippy compiler -Aclippy::all -Wclippy::needless_borrow --fix`. Then I had to remove a few unnecessary parens and muts that were exposed now. | ||||
| 2023-11-17 | Move `lint_store` from `GlobalCtxt` to `Session`. | Nicholas Nethercote | -2/+2 | |
| This was made possible by the removal of plugin support, which simplified lint store creation. This simplifies the places in rustc and rustdoc that call `describe_lints`, which are early on. The lint store is now built before those places, so they don't have to create their own lint store for temporary use, they can just use the main one. | ||||
| 2023-11-17 | Remove dead lint code. | Nicholas Nethercote | -4/+0 | |
| 2023-10-16 | Rename `ACTIVE_FEATURES` as `UNSTABLE_FEATURES`. | Nicholas Nethercote | -1/+1 | |
| It's a better name, and lets "active features" refer to the features that are active in a particular program, due to being declared or enabled by the edition. The commit also renames `Features::enabled` as `Features::active` to match this; I changed my mind and have decided that "active" is a little better thatn "enabled" for this, particularly because a number of pre-existing comments use "active" in this way. Finally, the commit renames `Status::Stable` as `Status::Accepted`, to match `ACCEPTED_FEATURES`. | ||||
| 2023-10-13 | Format all the let chains in compiler | Michael Goulet | -4/+9 | |
| 2023-09-14 | Auto merge of #115825 - cjgillot:expr-field-lint, r=compiler-errors | bors | -0/+5 | |
| Visit ExprField for lint levels. Fixes https://github.com/rust-lang/rust/issues/115823 | ||||
| 2023-09-13 | Visit ExprField for lint levels. | Camille GILLOT | -0/+5 | |
| 2023-08-30 | feat(rustc_lint): make `CheckLintName` respect lint level | Weihang Lo | -46/+38 | |
| 2023-08-30 | refactor(rustc_lint): inline `check_lint_name_cmdline` | Weihang Lo | -2/+61 | |
| 2023-08-24 | lint: translate `RenamedOrRemovedLint` | Weihang Lo | -9/+17 | |
| 2023-08-22 | unknown unstable lint command line | mojave2 | -10/+18 | |
| fix ##113702 fix #113702 unknown unstable lint command lint improve impelementation | ||||
| 2023-08-11 | rustc: Move `features` from `Session` to `GlobalCtxt` | Vadim Petrochenkov | -2/+12 | |
| Removes two pieces of mutable state. Follow up to #114622. | ||||
| 2023-08-04 | Make MissingDoc a module lint. | Camille GILLOT | -0/+11 | |
| 2023-07-25 | inline format!() args from rustc_codegen_llvm to the end (4) | Matthias Krüger | -1/+1 | |
| r? @WaffleLapkin | ||||
| 2023-07-18 | Add `#[track_caller]` to lint related diagnostic functions | Maybe Waffle | -0/+4 | |
| 2023-07-12 | Re-format let-else per rustfmt update | Mark Rousskov | -7/+9 | |
| 2023-05-18 | Stop confusing specification levels when computing expectations. | Camille GILLOT | -3/+7 | |
| 2023-05-15 | Move expansion of query macros in rustc_middle to rustc_middle::query | John Kåre Alsaker | -1/+1 | |
| 2023-04-24 | Split `{Idx, IndexVec, IndexSlice}` into their own modules | Maybe Waffle | -1/+1 | |
| 2023-04-10 | Fix typos in compiler | DaniPopes | -2/+2 | |
| 2023-04-09 | Use HashMap entry APIs more | Nilstrieb | -6/+6 | |
| 2023-03-06 | Querify registered_tools. | Camille GILLOT | -2/+2 | |
| 2023-02-22 | errors: generate typed identifiers in each crate | David Wood | -7/+10 | |
| Instead of loading the Fluent resources for every crate in `rustc_error_messages`, each crate generates typed identifiers for its own diagnostics and creates a static which are pulled together in the `rustc_driver` crate and provided to the diagnostic emitter. Signed-off-by: David Wood <david.wood@huawei.com> | ||||
| 2023-01-17 | Remove double spaces after dots in comments | Maybe Waffle | -2/+2 | |
| 2023-01-09 | refactor: cleanup | Rejyr | -2/+0 | |
| 2023-01-09 | refactor: refactor to derive for some lints. | Rejyr | -3/+10 | |
| 2023-01-09 | migrate: `levels.rs` | Rejyr | -103/+39 | |
| 2023-01-09 | add: `emit{,_spanned}_lint` for `LintLevelsBuilder` | Rejyr | -19/+29 | |
| add: `emit_spanned_lint` and `emit_lint` for `LintLevelsBuilder` migrate: `DeprecatedLintName` | ||||
| 2022-12-18 | A few small cleanups for `newtype_index` | Nilstrieb | -1/+1 | |
| Remove the `..` from the body, only a few invocations used it and it's inconsistent with rust syntax. Use `;` instead of `,` between consts. As the Rust syntax gods inteded. | ||||
| 2022-12-18 | Make `#[custom_encodable]` an attribute for `newtype_index` | Nilstrieb | -1/+1 | |
| Makes the syntax a little more rusty. | ||||
| 2022-11-13 | Store a LocalDefId in hir::Variant & hir::Field. | Camille GILLOT | -2/+2 | |
| 2022-11-11 | Tweak signatures in rustc_middle::hir::map. | Camille GILLOT | -1/+1 | |
| 2022-11-07 | fix: lint against lint functions | Rejyr | -0/+1 | |
| fix: lint against the functions `LintContext::{lookup_with_diagnostics,lookup,struct_span_lint,lint}`, `TyCtxt::struct_lint_node`, `LintLevelsBuilder::struct_lint`. | ||||
| 2022-10-22 | Change `unknown_lint` applicability to `MaybeIncorrect` | Samuel Moelius | -1/+1 | |
| 2022-10-12 | link lint function with `decorate` function param to `struct_lint_level` | Maybe Waffle | -0/+4 | |
| 2022-10-01 | Add sanity Drop impl. | Camille GILLOT | -0/+8 | |
| 2022-10-01 | Add FIXME. | Camille GILLOT | -0/+1 | |
| 2022-10-01 | Replace retain with assertion. | Camille GILLOT | -2/+6 | |
| 2022-10-01 | Add fast path without visiting. | Camille GILLOT | -12/+30 | |
| 2022-10-01 | Simplify LintLevelsProvider. | Camille GILLOT | -18/+16 | |
| 2022-10-01 | Compute by owner instead of HirId. | Camille GILLOT | -16/+110 | |
| 2022-10-01 | Add FIXME. | Camille GILLOT | -0/+2 | |
| 2022-10-01 | Comment LintLevelSets. | Camille GILLOT | -1/+12 | |
| 2022-10-01 | Move lint level computation to rustc_middle::lint. | Camille GILLOT | -26/+32 | |
| 2022-10-01 | Reduce visibilities and remove dead code. | Camille GILLOT | -17/+15 | |
