Document rust_2015
methods
This commit is contained in:
parent
fd5774a4d7
commit
5d90413d75
2 changed files with 2 additions and 0 deletions
|
@ -899,6 +899,7 @@ impl Session {
|
||||||
ret
|
ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Is this edition 2015?
|
||||||
pub fn rust_2015(&self) -> bool {
|
pub fn rust_2015(&self) -> bool {
|
||||||
self.edition().rust_2015()
|
self.edition().rust_2015()
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,6 +76,7 @@ impl Edition {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Is this edition 2015?
|
||||||
pub fn rust_2015(&self) -> bool {
|
pub fn rust_2015(&self) -> bool {
|
||||||
*self == Edition::Edition2015
|
*self == Edition::Edition2015
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue