about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2019-04-05 22:42:40 +0300
committerAleksey Kladov <aleksey.kladov@gmail.com>2019-04-05 23:16:09 +0300
commit63080b3c25046b29cbbaef8d587c7da91a302fce (patch)
tree79968cdec1e90a69c1de5b372e30f9c26f2ea8ca /src/libsyntax_pos
parent20dbf28624db446c0cf67be4cc71a85931947907 (diff)
downloadrust-63080b3c25046b29cbbaef8d587c7da91a302fce.tar.gz
rust-63080b3c25046b29cbbaef8d587c7da91a302fce.zip
remove lookup_char_pos_adj
It is now exactly equivalent to lookup_char_pos.
Diffstat (limited to 'src/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/lib.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/libsyntax_pos/lib.rs b/src/libsyntax_pos/lib.rs
index db1543ff13f..81cf804cf0b 100644
--- a/src/libsyntax_pos/lib.rs
+++ b/src/libsyntax_pos/lib.rs
@@ -1295,7 +1295,7 @@ impl Sub for CharPos {
 }
 
 // _____________________________________________________________________________
-// Loc, LocWithOpt, SourceFileAndLine, SourceFileAndBytePos
+// Loc, SourceFileAndLine, SourceFileAndBytePos
 //
 
 /// A source code location used for error reporting.
@@ -1311,17 +1311,6 @@ pub struct Loc {
     pub col_display: usize,
 }
 
-/// A source code location used as the result of `lookup_char_pos_adj`.
-// Actually, *none* of the clients use the filename *or* file field;
-// perhaps they should just be removed.
-#[derive(Debug)]
-pub struct LocWithOpt {
-    pub filename: FileName,
-    pub line: usize,
-    pub col: CharPos,
-    pub file: Option<Lrc<SourceFile>>,
-}
-
 // Used to be structural records.
 #[derive(Debug)]
 pub struct SourceFileAndLine { pub sf: Lrc<SourceFile>, pub line: usize }