Skip to content

Commit dbae15a

Browse files
Remove requires_sync
1 parent 1924cc8 commit dbae15a

File tree

1 file changed

+0
-10
lines changed
  • src/librustc_mir/transform/check_consts

1 file changed

+0
-10
lines changed

src/librustc_mir/transform/check_consts/mod.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,6 @@ impl ConstKind {
9595
ConstKind::ConstFn | ConstKind::Const => false,
9696
}
9797
}
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-
}
10898
}
10999

110100
impl fmt::Display for ConstKind {

0 commit comments

Comments
 (0)