Skip to content

Commit 5d90413

Browse files
committed
Document rust_2015 methods
1 parent fd5774a commit 5d90413

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_session/src/session.rs

+1
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,7 @@ impl Session {
899899
ret
900900
}
901901

902+
/// Is this edition 2015?
902903
pub fn rust_2015(&self) -> bool {
903904
self.edition().rust_2015()
904905
}

compiler/rustc_span/src/edition.rs

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ impl Edition {
7676
}
7777
}
7878

79+
/// Is this edition 2015?
7980
pub fn rust_2015(&self) -> bool {
8081
*self == Edition::Edition2015
8182
}

0 commit comments

Comments
 (0)