drive-by: Add is_async fn to hir::IsAsync
This commit is contained in:
parent
fd3bfb3551
commit
c4165f3a96
6 changed files with 17 additions and 13 deletions
|
@ -2720,6 +2720,12 @@ pub enum IsAsync {
|
|||
NotAsync,
|
||||
}
|
||||
|
||||
impl IsAsync {
|
||||
pub fn is_async(self) -> bool {
|
||||
self == IsAsync::Async
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug, Encodable, Decodable, HashStable_Generic)]
|
||||
pub enum Defaultness {
|
||||
Default { has_value: bool },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue