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
committerFelix S. Klock II <pnkfelix@pnkfx.org>2020-05-29 23:34:20 -0400
commit905d738b1af874e248b9fe7fe4b115458975d401 (patch)
treeaf4581d3133239c73f994c8e44ecc394b2bfb078
parent0e9e4083100aa3ebf09b8f1ace0348cb37475eb9 (diff)
downloadrust-905d738b1af874e248b9fe7fe4b115458975d401.tar.gz
rust-905d738b1af874e248b9fe7fe4b115458975d401.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 51f55417663..dc85f7990b9 100644
--- a/src/librustc_span/source_map.rs
+++ b/src/librustc_span/source_map.rs
@@ -95,7 +95,7 @@ impl StableSourceFileId {
         )
     }
 
-    pub fn new_from_pieces(
+    fn new_from_pieces(
         name: &FileName,
         name_was_remapped: bool,
         unmapped_path: Option<&FileName>,