about summary refs log tree commit diff
path: root/compiler/rustc_incremental/src/persist/file_format.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 14:30:20 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-27 14:30:20 +1000
commit37becf7bdcff5037cbb214277eb74ef17d8527f0 (patch)
tree021162580a6666467ed31cf4af79b03b2b5409ef /compiler/rustc_incremental/src/persist/file_format.rs
parent7fc04443404914bb7c432c2269d94fd48d569244 (diff)
downloadrust-37becf7bdcff5037cbb214277eb74ef17d8527f0.tar.gz
rust-37becf7bdcff5037cbb214277eb74ef17d8527f0.zip
Add `warn(unreachable_pub)` to `rustc_incremental`.
Diffstat (limited to 'compiler/rustc_incremental/src/persist/file_format.rs')
-rw-r--r--compiler/rustc_incremental/src/persist/file_format.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_incremental/src/persist/file_format.rs b/compiler/rustc_incremental/src/persist/file_format.rs
index 174414d0c85..f834c48cbf8 100644
--- a/compiler/rustc_incremental/src/persist/file_format.rs
+++ b/compiler/rustc_incremental/src/persist/file_format.rs
@@ -89,7 +89,7 @@ where
 ///   incompatible version of the compiler.
 /// - Returns `Err(..)` if some kind of IO error occurred while reading the
 ///   file.
-pub fn read_file(
+pub(crate) fn read_file(
     path: &Path,
     report_incremental_info: bool,
     is_nightly_build: bool,