about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-17 12:32:54 +0200
committerGitHub <noreply@github.com>2022-08-17 12:32:54 +0200
commitd956734f9f077d46d4237745fcf2cafdc5ded6ce (patch)
tree40fa080cae5157bde6c8d76f323a6f079772d8be
parent56b02b213798493378aa5f7f8432db885b095de2 (diff)
parent3f379f6df510c2fd5eb5dbb618fde25ea7d03f01 (diff)
downloadrust-d956734f9f077d46d4237745fcf2cafdc5ded6ce.tar.gz
rust-d956734f9f077d46d4237745fcf2cafdc5ded6ce.zip
Rollup merge of #100608 - tshepang:needless-separation, r=TaKO8Ki
needless separation of impl blocks
-rw-r--r--compiler/rustc_data_structures/src/sync.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs
index 52952a7932d..258780ecaea 100644
--- a/compiler/rustc_data_structures/src/sync.rs
+++ b/compiler/rustc_data_structures/src/sync.rs
@@ -56,9 +56,7 @@ cfg_if! {
             pub fn new(v: T) -> Self {
                 Atomic(Cell::new(v))
             }
-        }
 
-        impl<T: Copy> Atomic<T> {
             #[inline]
             pub fn into_inner(self) -> T {
                 self.0.into_inner()