File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -827,7 +827,6 @@ impl CodeMapper for CodeMap {
827
827
#[ cfg( test) ]
828
828
mod tests {
829
829
use super :: * ;
830
- use std:: io:: { self , Write } ;
831
830
use errors:: snippet:: StyledString ;
832
831
use std:: rc:: Rc ;
833
832
@@ -1118,24 +1117,6 @@ mod tests {
1118
1117
}
1119
1118
}
1120
1119
1121
- fn splice ( start : Span , end : Span ) -> Span {
1122
- Span {
1123
- lo : start. lo ,
1124
- hi : end. hi ,
1125
- expn_id : NO_EXPANSION ,
1126
- }
1127
- }
1128
-
1129
- fn make_string ( lines : Vec < Vec < StyledString > > ) -> String {
1130
- lines. iter ( )
1131
- . flat_map ( |rl| {
1132
- rl. iter ( )
1133
- . map ( |s| & s. text [ ..] )
1134
- . chain ( Some ( "\n " ) )
1135
- } )
1136
- . collect ( )
1137
- }
1138
-
1139
1120
fn init_expansion_chain ( cm : & CodeMap ) -> Span {
1140
1121
// Creates an expansion chain containing two recursive calls
1141
1122
// root -> expA -> expA -> expB -> expB -> end
You can’t perform that action at this time.
0 commit comments