Remove unused imports
This commit is contained in:
@@ -827,7 +827,6 @@ impl CodeMapper for CodeMap {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use std::io::{self, Write};
|
||||
use errors::snippet::StyledString;
|
||||
use std::rc::Rc;
|
||||
|
||||
@@ -1118,24 +1117,6 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
fn splice(start: Span, end: Span) -> Span {
|
||||
Span {
|
||||
lo: start.lo,
|
||||
hi: end.hi,
|
||||
expn_id: NO_EXPANSION,
|
||||
}
|
||||
}
|
||||
|
||||
fn make_string(lines: Vec<Vec<StyledString>>) -> String {
|
||||
lines.iter()
|
||||
.flat_map(|rl| {
|
||||
rl.iter()
|
||||
.map(|s| &s.text[..])
|
||||
.chain(Some("\n"))
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
fn init_expansion_chain(cm: &CodeMap) -> Span {
|
||||
// Creates an expansion chain containing two recursive calls
|
||||
// root -> expA -> expA -> expB -> expB -> end
|
||||
|
||||
Reference in New Issue
Block a user