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

@ -698,6 +698,11 @@ impl Span {
self.edition() >= edition::Edition::Edition2021
}
#[inline]
pub fn rust_2024(self) -> bool {
self.edition() >= edition::Edition::Edition2024
}
/// Returns the source callee.
///
/// Returns `None` if the supplied span has no expansion trace,