Document rust_2015
methods
This commit is contained in:
parent
fd5774a4d7
commit
5d90413d75
@ -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()
|
||||
}
|
||||
|
@ -76,6 +76,7 @@ pub fn is_stable(&self) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
/// Is this edition 2015?
|
||||
pub fn rust_2015(&self) -> bool {
|
||||
*self == Edition::Edition2015
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user