@@ -686,7 +686,7 @@ pub fn host_triple() -> ~str {
686686 ( env ! ( "CFG_COMPILER" ) ) . to_owned ( )
687687}
688688
689- pub fn build_session_options ( binary : @ str ,
689+ pub fn build_session_options ( binary : ~ str ,
690690 matches : & getopts:: Matches ,
691691 demitter : @diagnostic:: Emitter )
692692 -> @session:: options {
@@ -883,7 +883,7 @@ pub fn build_session(sopts: @session::options, demitter: @diagnostic::Emitter)
883883pub fn build_session_ ( sopts : @session:: options ,
884884 cm : @codemap:: CodeMap ,
885885 demitter : @diagnostic:: Emitter ,
886- span_diagnostic_handler : @mut diagnostic:: span_handler )
886+ span_diagnostic_handler : @mut diagnostic:: SpanHandler )
887887 -> Session {
888888 let target_cfg = build_target_config ( sopts, demitter) ;
889889 let p_s = parse:: new_parse_sess_special_handler ( span_diagnostic_handler,
@@ -1105,7 +1105,7 @@ pub fn build_output_filenames(input: &input,
11051105 }
11061106}
11071107
1108- pub fn early_error ( emitter : @ diagnostic:: Emitter , msg : & str ) -> ! {
1108+ pub fn early_error ( emitter : & diagnostic:: Emitter , msg : & str ) -> ! {
11091109 emitter. emit ( None , msg, diagnostic:: fatal) ;
11101110 fail ! ( ) ;
11111111}
@@ -1135,7 +1135,7 @@ mod test {
11351135 Err ( f) => fail ! ( "test_switch_implies_cfg_test: {}" , f. to_err_msg( ) )
11361136 } ;
11371137 let sessopts = build_session_options (
1138- @ "rustc",
1138+ ~ "rustc",
11391139 matches,
11401140 @diagnostic:: DefaultEmitter as @diagnostic:: Emitter ) ;
11411141 let sess = build_session ( sessopts,
@@ -1158,7 +1158,7 @@ mod test {
11581158 }
11591159 } ;
11601160 let sessopts = build_session_options (
1161- @ "rustc",
1161+ ~ "rustc",
11621162 matches,
11631163 @diagnostic:: DefaultEmitter as @diagnostic:: Emitter ) ;
11641164 let sess = build_session ( sessopts,
0 commit comments