]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Rollup merge of #80274 - pierwill:lintlevelsource, r=petrochenkov
authorDylan DPC <dylan.dpc@gmail.com>
Fri, 25 Dec 2020 02:39:36 +0000 (03:39 +0100)
committerGitHub <noreply@github.com>
Fri, 25 Dec 2020 02:39:36 +0000 (03:39 +0100)
commitb295b8e67b6e35cc74ca9706d4b9938ad8379419
tree1d6601a68f69d71b2b63d8592f77e649d9407c0e
parent299c2fc69554998e8991715d09a611376a5b9cf3
parentd3900d3775c665237b83ea87e01838da9cf0da87
Rollup merge of #80274 - pierwill:lintlevelsource, r=petrochenkov

Rename rustc_middle::lint::LintSource

Rename [`rustc_middle::lint::LintSource`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/lint/enum.LintSource.html) to `rustc_middle::lint::LintLevelSource`.

This enum represents the source of a *lint level*, not a lint. This should improve code readability.

Update: Also documents `rustc_middle::lint::LevelSource` to clarify.
compiler/rustc_middle/src/lint.rs