@@ -686,7 +686,7 @@ pub fn host_triple() -> ~str {
686
686
( env ! ( "CFG_COMPILER" ) ) . to_owned ( )
687
687
}
688
688
689
- pub fn build_session_options ( binary : @ str ,
689
+ pub fn build_session_options ( binary : ~ str ,
690
690
matches : & getopts:: Matches ,
691
691
demitter : @diagnostic:: Emitter )
692
692
-> @session:: options {
@@ -883,7 +883,7 @@ pub fn build_session(sopts: @session::options, demitter: @diagnostic::Emitter)
883
883
pub fn build_session_ ( sopts : @session:: options ,
884
884
cm : @codemap:: CodeMap ,
885
885
demitter : @diagnostic:: Emitter ,
886
- span_diagnostic_handler : @mut diagnostic:: span_handler )
886
+ span_diagnostic_handler : @mut diagnostic:: SpanHandler )
887
887
-> Session {
888
888
let target_cfg = build_target_config ( sopts, demitter) ;
889
889
let p_s = parse:: new_parse_sess_special_handler ( span_diagnostic_handler,
@@ -1105,7 +1105,7 @@ pub fn build_output_filenames(input: &input,
1105
1105
}
1106
1106
}
1107
1107
1108
- pub fn early_error ( emitter : @ diagnostic:: Emitter , msg : & str ) -> ! {
1108
+ pub fn early_error ( emitter : & diagnostic:: Emitter , msg : & str ) -> ! {
1109
1109
emitter. emit ( None , msg, diagnostic:: fatal) ;
1110
1110
fail ! ( ) ;
1111
1111
}
@@ -1135,7 +1135,7 @@ mod test {
1135
1135
Err ( f) => fail ! ( "test_switch_implies_cfg_test: {}" , f. to_err_msg( ) )
1136
1136
} ;
1137
1137
let sessopts = build_session_options (
1138
- @ "rustc",
1138
+ ~ "rustc",
1139
1139
matches,
1140
1140
@diagnostic:: DefaultEmitter as @diagnostic:: Emitter ) ;
1141
1141
let sess = build_session ( sessopts,
@@ -1158,7 +1158,7 @@ mod test {
1158
1158
}
1159
1159
} ;
1160
1160
let sessopts = build_session_options (
1161
- @ "rustc",
1161
+ ~ "rustc",
1162
1162
matches,
1163
1163
@diagnostic:: DefaultEmitter as @diagnostic:: Emitter ) ;
1164
1164
let sess = build_session ( sessopts,
0 commit comments