diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-12 03:27:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-12 03:27:59 +0100 |
| commit | cc51d0350ec33b5c43a7785caa4ab9dcc4732617 (patch) | |
| tree | 382624f14d765ef11114b109202d8e65f852d305 /src/test/debuginfo/enum-thinlto.rs | |
| parent | 1b208b12f80a2536c1f7b28c917be4b40547200a (diff) | |
| parent | 51078ceb44e4482432a13171ddb9978df27dcfbf (diff) | |
| download | rust-cc51d0350ec33b5c43a7785caa4ab9dcc4732617.tar.gz rust-cc51d0350ec33b5c43a7785caa4ab9dcc4732617.zip | |
Rollup merge of #68045 - Centril:liberate-lints, r=Mark-Simulacrum
Move more of `rustc::lint` into `rustc_lint` Based on https://github.com/rust-lang/rust/pull/67806. Here we try to consolidate more of the linting infra into `rustc::lint`. Some high-level notes: - We now store an `Lrc<dyn Any + Send + Sync>` as opposed to `Lrc<LintStore>` in the `GlobalCtxt`. This enables us to avoid referring to the type, breaking a cyclic dependency, and so we can move things from `rustc::lint` to `rustc_lint`. - `in_derive_expansion` is, and needs to, be moved as a method on `Span`. - We reduce the number of ways on `tcx` to emit a lint so that the developer UX is more streamlined. - `LintLevelsBuilder` is moved to `rustc_lint::levels`, leaving behind `LintLevelMap/Set` in a purified form due to current constraints (hopefully fixable in the future after https://github.com/rust-lang/rust/pull/68133). - `struct_lint_level` is moved to `rustc::lint` due to current dependency constraints. - `rustc::lint::context` is moved to `rustc_lint::context`. - The visitors in `rustc::lint` are moved to `rustc_lint::passes`.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
