Skip to content

Commit 11f1406

Browse files
committed
change all appropriate EPOCH to EDITION
1 parent 3c8d555 commit 11f1406

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc/lint/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl LintStore {
201201
sess: Option<&Session>,
202202
lints: Vec<FutureIncompatibleInfo>) {
203203

204-
for edition in edition::ALL_EPOCHS {
204+
for edition in edition::ALL_EDITIONS {
205205
let lints = lints.iter().filter(|f| f.edition == Some(*edition)).map(|f| f.id)
206206
.collect::<Vec<_>>();
207207
if !lints.is_empty() {

src/libsyntax/edition.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub enum Edition {
3636
}
3737

3838
// must be in order from oldest to newest
39-
pub const ALL_EPOCHS: &[Edition] = &[Edition::Edition2015, Edition::Edition2018];
39+
pub const ALL_EDITIONS: &[Edition] = &[Edition::Edition2015, Edition::Edition2018];
4040

4141
impl fmt::Display for Edition {
4242
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {

0 commit comments

Comments
 (0)