diff options
| author | kennytm <kennytm@gmail.com> | 2018-02-02 16:29:17 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-02-02 22:48:43 +0800 |
| commit | a6719446c07281863eefe9dec198cb70e0f8685f (patch) | |
| tree | 3fe5dda9be963bd335fbed6b11e7a2c51471b14a /src | |
| parent | 0f36b2cf2e406535b38908b6a081b5d7b06258d9 (diff) | |
| parent | c7850139517d209ec9f2879e12cd7bb69cc78a9c (diff) | |
| download | rust-a6719446c07281863eefe9dec198cb70e0f8685f.tar.gz rust-a6719446c07281863eefe9dec198cb70e0f8685f.zip | |
Rollup merge of #47842 - Manishearth:dead-code, r=nagisa Remove dead code The Clone impl makes the lint ignore the type.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_errors/snippet.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/librustc_errors/snippet.rs b/src/librustc_errors/snippet.rs index 6035f33c822..7d416f13ffc 100644 --- a/src/librustc_errors/snippet.rs +++ b/src/librustc_errors/snippet.rs @@ -10,32 +10,8 @@ // Code for annotating snippets. -use syntax_pos::{Span, FileMap}; -use CodeMapper; -use std::rc::Rc; use Level; -#[derive(Clone)] -pub struct SnippetData { - codemap: Rc<CodeMapper>, - files: Vec<FileInfo>, -} - -#[derive(Clone)] -pub struct FileInfo { - file: Rc<FileMap>, - - /// The "primary file", if any, gets a `-->` marker instead of - /// `>>>`, and has a line-number/column printed and not just a - /// filename (other files are not guaranteed to have line numbers - /// or columns). It appears first in the listing. It is known to - /// contain at least one primary span, though primary spans (which - /// are designated with `^^^`) may also occur in other files. - primary_span: Option<Span>, - - lines: Vec<Line>, -} - #[derive(Clone, Debug, PartialOrd, Ord, PartialEq, Eq)] pub struct Line { pub line_index: usize, |
