We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
requires_sync
1 parent 1924cc8 commit dbae15aCopy full SHA for dbae15a
src/librustc_mir/transform/check_consts/mod.rs
@@ -95,16 +95,6 @@ impl ConstKind {
95
ConstKind::ConstFn | ConstKind::Const => false,
96
}
97
98
-
99
- /// Returns `true` if the value returned by this item must be `Sync`.
100
- ///
101
- /// This returns false for `StaticMut` since all accesses to one are `unsafe` anyway.
102
- pub fn requires_sync(self) -> bool {
103
- match self {
104
- ConstKind::Static => true,
105
- ConstKind::ConstFn | ConstKind::Const | ConstKind::StaticMut => false,
106
- }
107
108
109
110
impl fmt::Display for ConstKind {
0 commit comments