Remove requires_sync

This commit is contained in:
Dylan MacKenzie 2019-10-29 17:17:30 -07:00
parent 1924cc8c7d
commit dbae15a41b

View file

@ -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 {