change all appropriate EPOCH to EDITION
This commit is contained in:
@@ -201,7 +201,7 @@ impl LintStore {
|
|||||||
sess: Option<&Session>,
|
sess: Option<&Session>,
|
||||||
lints: Vec<FutureIncompatibleInfo>) {
|
lints: Vec<FutureIncompatibleInfo>) {
|
||||||
|
|
||||||
for edition in edition::ALL_EPOCHS {
|
for edition in edition::ALL_EDITIONS {
|
||||||
let lints = lints.iter().filter(|f| f.edition == Some(*edition)).map(|f| f.id)
|
let lints = lints.iter().filter(|f| f.edition == Some(*edition)).map(|f| f.id)
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
if !lints.is_empty() {
|
if !lints.is_empty() {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ pub enum Edition {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// must be in order from oldest to newest
|
// must be in order from oldest to newest
|
||||||
pub const ALL_EPOCHS: &[Edition] = &[Edition::Edition2015, Edition::Edition2018];
|
pub const ALL_EDITIONS: &[Edition] = &[Edition::Edition2015, Edition::Edition2018];
|
||||||
|
|
||||||
impl fmt::Display for Edition {
|
impl fmt::Display for Edition {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
|
|||||||
Reference in New Issue
Block a user