about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHenry Boisdequin <65845077+henryboisdequin@users.noreply.github.com>2021-01-29 14:03:01 +0530
committerHenry Boisdequin <65845077+henryboisdequin@users.noreply.github.com>2021-01-29 14:03:01 +0530
commitc2c2e8dde16c75eaa75a5d6796ded4813315df58 (patch)
tree27957d296b56beab301943bc2bfe043f2b5e7cea
parent1279b3b9232e4c44112d98f19cfa8846776d1fe8 (diff)
downloadrust-c2c2e8dde16c75eaa75a5d6796ded4813315df58.tar.gz
rust-c2c2e8dde16c75eaa75a5d6796ded4813315df58.zip
`fn cold_path` doesn't need to be pub
-rw-r--r--compiler/rustc_arena/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_arena/src/lib.rs b/compiler/rustc_arena/src/lib.rs
index a0493056b81..54552b499be 100644
--- a/compiler/rustc_arena/src/lib.rs
+++ b/compiler/rustc_arena/src/lib.rs
@@ -32,7 +32,7 @@ use std::slice;
 
 #[inline(never)]
 #[cold]
-pub fn cold_path<F: FnOnce() -> R, R>(f: F) -> R {
+fn cold_path<F: FnOnce() -> R, R>(f: F) -> R {
     f()
 }