Create 2024 edition
This commit is contained in:
parent
79f178b76e
commit
6b75406f5a
14 changed files with 83 additions and 12 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue