mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-19 19:53:38 -04:00
Document rust_2015 methods
This commit is contained in:
@@ -899,6 +899,7 @@ impl Session {
|
||||
ret
|
||||
}
|
||||
|
||||
/// Is this edition 2015?
|
||||
pub fn rust_2015(&self) -> bool {
|
||||
self.edition().rust_2015()
|
||||
}
|
||||
|
||||
@@ -76,6 +76,7 @@ impl Edition {
|
||||
}
|
||||
}
|
||||
|
||||
/// Is this edition 2015?
|
||||
pub fn rust_2015(&self) -> bool {
|
||||
*self == Edition::Edition2015
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user