| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 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 | |
| 2022-10-01 | Move code to rustc_lint. | Camille GILLOT | -2/+69 | |
| 2022-10-01 | Remove unused tool_name. | Camille GILLOT | -4/+0 | |
| 2022-10-01 | Compute `lint_levels` by definition | Deadbeef | -278/+310 | |
| 2022-10-01 | Refactor rustc lint API | Maybe Waffle | -59/+73 | |
| 2022-09-22 | Revert "Auto merge of #101620 - cjgillot:compute_lint_levels_by_def, r=oli-obk" | Camille GILLOT | -396/+284 | |
| This reverts commit 2cb9a65684dba47c52de8fa938febf97a73e70a9, reversing changes made to 750bd1a7ff3e010611b97ee75d30b7cbf5f3a03c. | ||||
| 2022-09-14 | Add FIXME. | Camille GILLOT | -0/+2 | |
| 2022-09-14 | Comment LintLevelSets. | Camille GILLOT | -1/+12 | |
| 2022-09-14 | Remove unused tool_name. | Camille GILLOT | -4/+0 | |
| 2022-09-14 | Move some code and add comments. | Camille GILLOT | -32/+103 | |
| 2022-09-14 | Compute `lint_levels` by definition | Deadbeef | -278/+310 | |
| 2022-09-12 | Allow tool-lints to specify a feature-gate too | Wim Looman | -2/+4 | |
| 2022-09-01 | Always import all tracing macros for the entire crate instead of piecemeal ↵ | Oli Scherer | -1/+0 | |
| by module | ||||
| 2022-08-23 | cleanup: commented lints | Rejyr | -3/+0 | |
| 2022-08-22 | rename: `UnknownTool` to `UnknownToolInScopedLint` | Rejyr | -2/+2 | |
| 2022-08-22 | migrate: `OverruledAttribute` | Rejyr | -12/+25 | |
| 2022-08-22 | change: diagnostic `String` field to `Symbol` | Rejyr | -2/+1 | |
| 2022-08-22 | migrate: `bad_attr` to `SessionDiagnostic` | Rejyr | -17/+25 | |
| 2022-08-22 | migrate: `UnknownTool` error to `SessionDiagnostic` | Rejyr | -16/+11 | |
| 2022-08-11 | Add visitors for PatField and ExprField. | Eric Huss | -34/+13 | |
| This helps simplify the code. It also fixes it to use the correct parent when lowering. One consequence is the `non_snake_case` lint needed to change the way it looked for parent nodes in a struct pattern. This also includes a small fix to use the correct `Target` for expression field attribute validation. | ||||
| 2022-08-11 | Honor lint level attributes in more places. | Eric Huss | -3/+42 | |
| This extends the LintLevelBuilder to handle lint level attributes on struct expression fields and pattern fields. This also updates the early lints to honor lint levels on generic parameters. | ||||
| 2022-08-11 | Simplify `rustc_hir::intravisit::Visitor::visit_variant_data`. | Nicholas Nethercote | -7/+2 | |
| It has four arguments that are never used. This avoids lots of argument passing in functions that feed into `visit_variant_data`. | ||||
| 2022-07-05 | lint: `LintDiagnosticBuilder` into `rustc_errors` | David Wood | -3/+3 | |
| Signed-off-by: David Wood <david.wood@huawei.com> | ||||
| 2022-06-30 | middle: translation in `LintDiagnosticBuilder` | David Wood | -2/+2 | |
| Accept `DiagnosticMessage` in `LintDiagnosticBuilder::build` so that lints can be built with translatable diagnostic messages. Signed-off-by: David Wood <david.wood@huawei.com> | ||||
| 2022-06-16 | Rollup merge of #97757 - xFrednet:rfc-2383-expect-with-force-warn, ↵ | Matthias Krüger | -6/+16 | |
| r=wesleywiser,flip1995 Support lint expectations for `--force-warn` lints (RFC 2383) Rustc has a `--force-warn` flag, which overrides lint level attributes and forces the diagnostics to always be warn. This means, that for lint expectations, the diagnostic can't be suppressed as usual. This also means that the expectation would not be fulfilled, even if a lint had been triggered in the expected scope. This PR now also tracks the expectation ID in the `ForceWarn` level. I've also made some minor adjustments, to possibly catch more bugs and make the whole implementation more robust. This will probably conflict with https://github.com/rust-lang/rust/pull/97718. That PR should ideally be reviewed and merged first. The conflict itself will be trivial to fix. --- r? `@wesleywiser` cc: `@flip1995` since you've helped with the initial review and also discussed this topic with me. :upside_down_face: Follow-up of: https://github.com/rust-lang/rust/pull/87835 Issue: https://github.com/rust-lang/rust/issues/85549 Yeah, and that's it. | ||||
| 2022-06-16 | Support lint expectations for `--force-warn` lints (RFC 2383) | xFrednet | -6/+16 | |
| 2022-06-13 | remove unnecessary `to_string` and `String::new` | Takayuki Maeda | -3/+3 | |
