about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2020-05-29 11:47:17 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2020-06-01 08:26:38 -0400
commit991248438dd7aa185ef50ac94d7325c2cc063f1a (patch)
tree4b0b37f29afc6ea5c12615298bd036d4ada09663
parentccf97d6665eeb759ce47caca4e8bc2713757d7e1 (diff)
downloadrust-991248438dd7aa185ef50ac94d7325c2cc063f1a.tar.gz
rust-991248438dd7aa185ef50ac94d7325c2cc063f1a.zip
`StableSourceFileId::new_from_pieces` does not need to be public.
(and I want to discourage further use of it if possible.)
-rw-r--r--src/librustc_span/source_map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_span/source_map.rs b/src/librustc_span/source_map.rs
index 49e2144b3e3..16747923f80 100644
--- a/src/librustc_span/source_map.rs
+++ b/src/librustc_span/source_map.rs
@@ -107,7 +107,7 @@ impl StableSourceFileId {
         )
     }
 
-    pub fn new_from_pieces(
+    fn new_from_pieces(
         name: &FileName,
         name_was_remapped: bool,
         unmapped_path: Option<&FileName>,