Skip to content

Commit c785013

Browse files
committed
Remove dead code
1 parent 56733bc commit c785013

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/librustc_errors/snippet.rs

-24
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,8 @@
1010

1111
// Code for annotating snippets.
1212

13-
use syntax_pos::{Span, FileMap};
14-
use CodeMapper;
15-
use std::rc::Rc;
1613
use Level;
1714

18-
#[derive(Clone)]
19-
pub struct SnippetData {
20-
codemap: Rc<CodeMapper>,
21-
files: Vec<FileInfo>,
22-
}
23-
24-
#[derive(Clone)]
25-
pub struct FileInfo {
26-
file: Rc<FileMap>,
27-
28-
/// The "primary file", if any, gets a `-->` marker instead of
29-
/// `>>>`, and has a line-number/column printed and not just a
30-
/// filename (other files are not guaranteed to have line numbers
31-
/// or columns). It appears first in the listing. It is known to
32-
/// contain at least one primary span, though primary spans (which
33-
/// are designated with `^^^`) may also occur in other files.
34-
primary_span: Option<Span>,
35-
36-
lines: Vec<Line>,
37-
}
38-
3915
#[derive(Clone, Debug, PartialOrd, Ord, PartialEq, Eq)]
4016
pub struct Line {
4117
pub line_index: usize,

0 commit comments

Comments
 (0)