diff --git a/src/librustc/driver/driver.rs b/src/librustc/driver/driver.rs
index b0fa22f817288..c4a3e21cbad8b 100644
--- a/src/librustc/driver/driver.rs
+++ b/src/librustc/driver/driver.rs
@@ -686,7 +686,7 @@ pub fn host_triple() -> ~str {
(env!("CFG_COMPILER")).to_owned()
}
-pub fn build_session_options(binary: @str,
+pub fn build_session_options(binary: ~str,
matches: &getopts::Matches,
demitter: @diagnostic::Emitter)
-> @session::options {
@@ -883,7 +883,7 @@ pub fn build_session(sopts: @session::options, demitter: @diagnostic::Emitter)
pub fn build_session_(sopts: @session::options,
cm: @codemap::CodeMap,
demitter: @diagnostic::Emitter,
- span_diagnostic_handler: @mut diagnostic::span_handler)
+ span_diagnostic_handler: @mut diagnostic::SpanHandler)
-> Session {
let target_cfg = build_target_config(sopts, demitter);
let p_s = parse::new_parse_sess_special_handler(span_diagnostic_handler,
@@ -1105,7 +1105,7 @@ pub fn build_output_filenames(input: &input,
}
}
-pub fn early_error(emitter: @diagnostic::Emitter, msg: &str) -> ! {
+pub fn early_error(emitter: &diagnostic::Emitter, msg: &str) -> ! {
emitter.emit(None, msg, diagnostic::fatal);
fail!();
}
@@ -1135,7 +1135,7 @@ mod test {
Err(f) => fail!("test_switch_implies_cfg_test: {}", f.to_err_msg())
};
let sessopts = build_session_options(
- @"rustc",
+ ~"rustc",
matches,
@diagnostic::DefaultEmitter as @diagnostic::Emitter);
let sess = build_session(sessopts,
@@ -1158,7 +1158,7 @@ mod test {
}
};
let sessopts = build_session_options(
- @"rustc",
+ ~"rustc",
matches,
@diagnostic::DefaultEmitter as @diagnostic::Emitter);
let sess = build_session(sessopts,
diff --git a/src/librustc/driver/session.rs b/src/librustc/driver/session.rs
index 63ccc91cd556d..3f9274bc901b5 100644
--- a/src/librustc/driver/session.rs
+++ b/src/librustc/driver/session.rs
@@ -163,7 +163,7 @@ pub struct options {
// will be added to the crate AST node. This should not be used for
// anything except building the full crate config prior to parsing.
cfg: ast::CrateConfig,
- binary: @str,
+ binary: ~str,
test: bool,
parse_only: bool,
no_trans: bool,
@@ -209,7 +209,7 @@ pub struct Session_ {
// For a library crate, this is always none
entry_fn: RefCell