Document rust_2015 methods

This commit is contained in:
Maybe Waffle 2023-01-31 09:52:54 +00:00
parent fd5774a4d7
commit 5d90413d75
2 changed files with 2 additions and 0 deletions

View File

@ -899,6 +899,7 @@ pub fn consider_optimizing<T: Fn() -> String>(&self, crate_name: &str, msg: T) -
ret
}
/// Is this edition 2015?
pub fn rust_2015(&self) -> bool {
self.edition().rust_2015()
}

View File

@ -76,6 +76,7 @@ pub fn is_stable(&self) -> bool {
}
}
/// Is this edition 2015?
pub fn rust_2015(&self) -> bool {
*self == Edition::Edition2015
}