Skip to content

Commit 50737b6

Browse files
authored
Merge pull request #1187 from divergentdave/cold-attributes
Remove no-op #[cold] attributes
2 parents 6be80d2 + b87736d commit 50737b6

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/arc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ impl<T: ?Sized> Clone for Arc<T> {
140140
unsafe { (*self.ptr).rc.fetch_add(1, Ordering::Relaxed) };
141141

142142
if last_count == usize::max_value() {
143-
#[cold]
144143
std::process::abort();
145144
}
146145

src/config.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,6 @@ impl Config {
733733
if ge.is_null() {
734734
Ok(())
735735
} else {
736-
#[cold]
737736
#[allow(unsafe_code)]
738737
unsafe {
739738
Err(ge.deref().clone())

0 commit comments

Comments
 (0)