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