mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
530a73f17e
`LevelSpec` has two related fields, `level` and `lint_id`. This commit makes the fields private (and introduces getters) to ensure they are set together using only valid combinations. The commit also introduces `is_allow` and `is_expect` methods because those are useful.