diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2019-10-29 17:17:30 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2019-11-15 10:33:32 -0800 |
| commit | dbae15a41b11624b26cf25f1fa414e3280d9f47f (patch) | |
| tree | 8755bf0bbc7822af402391e3ce09c7b8cc22d2f3 | |
| parent | 1924cc8c7d051bfe53922b965d9e8490f90fdbe5 (diff) | |
| download | rust-dbae15a41b11624b26cf25f1fa414e3280d9f47f.tar.gz rust-dbae15a41b11624b26cf25f1fa414e3280d9f47f.zip | |
Remove `requires_sync`
| -rw-r--r-- | src/librustc_mir/transform/check_consts/mod.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/librustc_mir/transform/check_consts/mod.rs b/src/librustc_mir/transform/check_consts/mod.rs index a5b711e75a6..4d00aaf7abc 100644 --- a/src/librustc_mir/transform/check_consts/mod.rs +++ b/src/librustc_mir/transform/check_consts/mod.rs @@ -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 { |
