From dbae15a41b11624b26cf25f1fa414e3280d9f47f Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Tue, 29 Oct 2019 17:17:30 -0700 Subject: [PATCH] Remove `requires_sync` --- src/librustc_mir/transform/check_consts/mod.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/librustc_mir/transform/check_consts/mod.rs b/src/librustc_mir/transform/check_consts/mod.rs index a5b711e75a60..4d00aaf7abc2 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 {