Remove requires_sync
This commit is contained in:
parent
1924cc8c7d
commit
dbae15a41b
1 changed files with 0 additions and 10 deletions
|
|
@ -95,16 +95,6 @@ impl ConstKind {
|
|||
ConstKind::ConstFn | ConstKind::Const => false,
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns `true` if the value returned by this item must be `Sync`.
|
||||
///
|
||||
/// This returns false for `StaticMut` since all accesses to one are `unsafe` anyway.
|
||||
pub fn requires_sync(self) -> bool {
|
||||
match self {
|
||||
ConstKind::Static => true,
|
||||
ConstKind::ConstFn | ConstKind::Const | ConstKind::StaticMut => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for ConstKind {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue