Add edition 2021.
This commit is contained in:
parent
44e3daf5ee
commit
f16ef7d7ce
12 changed files with 57 additions and 28 deletions
|
@ -481,6 +481,11 @@ impl Span {
|
|||
self.edition() >= edition::Edition::Edition2018
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn rust_2021(&self) -> bool {
|
||||
self.edition() >= edition::Edition::Edition2021
|
||||
}
|
||||
|
||||
/// 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