1
Fork 0

Create 2024 edition

This commit is contained in:
Jacob Pratt 2022-02-28 18:13:24 -05:00
parent 79f178b76e
commit 6b75406f5a
No known key found for this signature in database
GPG key ID: B80E19E4662B5AA4
14 changed files with 83 additions and 12 deletions

View file

@ -945,6 +945,11 @@ impl Session {
self.opts.edition >= Edition::Edition2021
}
/// Are we allowed to use features from the Rust 2024 edition?
pub fn rust_2024(&self) -> bool {
self.opts.edition >= Edition::Edition2024
}
pub fn edition(&self) -> Edition {
self.opts.edition
}