Create 2024 edition

This commit is contained in:
Jacob Pratt
2022-02-28 18:13:24 -05:00
parent 79f178b76e
commit 6b75406f5a
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,