diff options
| author | Henry Boisdequin <65845077+henryboisdequin@users.noreply.github.com> | 2021-01-29 14:03:01 +0530 |
|---|---|---|
| committer | Henry Boisdequin <65845077+henryboisdequin@users.noreply.github.com> | 2021-01-29 14:03:01 +0530 |
| commit | c2c2e8dde16c75eaa75a5d6796ded4813315df58 (patch) | |
| tree | 27957d296b56beab301943bc2bfe043f2b5e7cea | |
| parent | 1279b3b9232e4c44112d98f19cfa8846776d1fe8 (diff) | |
| download | rust-c2c2e8dde16c75eaa75a5d6796ded4813315df58.tar.gz rust-c2c2e8dde16c75eaa75a5d6796ded4813315df58.zip | |
`fn cold_path` doesn't need to be pub
| -rw-r--r-- | compiler/rustc_arena/src/lib.rs | 2 |
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() } |
