Skip to content

Commit a52cdfd

Browse files
committed
rustc::driver: Remove two @s
1 parent e61937a commit a52cdfd

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

src/librustc/driver/driver.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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 {
@@ -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,

src/librustc/driver/session.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ pub struct options {
163163
// will be added to the crate AST node. This should not be used for
164164
// anything except building the full crate config prior to parsing.
165165
cfg: ast::CrateConfig,
166-
binary: @str,
166+
binary: ~str,
167167
test: bool,
168168
parse_only: bool,
169169
no_trans: bool,
@@ -395,7 +395,7 @@ pub fn basic_options() -> @options {
395395
target_cpu: ~"generic",
396396
target_feature: ~"",
397397
cfg: ~[],
398-
binary: @"rustc",
398+
binary: ~"rustc",
399399
test: false,
400400
parse_only: false,
401401
no_trans: false,

src/librustc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ pub fn describe_debug_flags() {
197197

198198
pub fn run_compiler(args: &[~str], demitter: @diagnostic::Emitter) {
199199
let mut args = args.to_owned();
200-
let binary = args.shift().to_managed();
200+
let binary = args.shift();
201201

202202
if args.is_empty() { usage(binary); return; }
203203

src/librustdoc/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fn get_ast_and_resolve(cpath: &Path,
4949
let input = file_input(cpath.clone());
5050

5151
let sessopts = @driver::session::options {
52-
binary: @"rustdoc",
52+
binary: ~"rustdoc",
5353
maybe_sysroot: Some(@os::self_exe_path().unwrap().dir_path()),
5454
addl_lib_search_paths: @RefCell::new(libs),
5555
outputs: ~[driver::session::OutputDylib],

src/librustdoc/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn run(input: &str, matches: &getopts::Matches) -> int {
3838
let libs = @RefCell::new(libs.move_iter().collect());
3939

4040
let sessopts = @session::options {
41-
binary: @"rustdoc",
41+
binary: ~"rustdoc",
4242
maybe_sysroot: Some(@os::self_exe_path().unwrap().dir_path()),
4343
addl_lib_search_paths: libs,
4444
outputs: ~[session::OutputDylib],
@@ -98,7 +98,7 @@ fn runtest(test: &str, cratename: &str, libs: HashSet<Path>) {
9898
let input = driver::str_input(test);
9999

100100
let sessopts = @session::options {
101-
binary: @"rustdoctest",
101+
binary: ~"rustdoctest",
102102
maybe_sysroot: Some(@os::self_exe_path().unwrap().dir_path()),
103103
addl_lib_search_paths: @RefCell::new(libs),
104104
outputs: ~[session::OutputExecutable],

src/librustpkg/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl<'a> PkgScript<'a> {
101101
workspace: &Path,
102102
id: &'a CrateId) -> PkgScript<'a> {
103103
// Get the executable name that was invoked
104-
let binary = os::args()[0].to_managed();
104+
let binary = os::args()[0].to_owned();
105105
// Build the rustc session data structures to pass
106106
// to the compiler
107107
debug!("pkgscript parse: {}", sysroot.display());

src/librustpkg/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,7 @@ fn test_linker_build() {
18231823
let workspace = create_local_package(&p_id);
18241824
let workspace = workspace.path();
18251825
let matches = getopts([], optgroups());
1826-
let options = build_session_options(@"rustpkg",
1826+
let options = build_session_options(~"rustpkg",
18271827
matches.as_ref().unwrap(),
18281828
@diagnostic::DefaultEmitter as
18291829
@diagnostic::Emitter);

src/librustpkg/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ pub fn compile_input(context: &BuildContext,
189189
// Make the output directory if it doesn't exist already
190190
fs::mkdir_recursive(&out_dir, io::UserRWX);
191191

192-
let binary = os::args()[0].to_managed();
192+
let binary = os::args()[0].to_owned();
193193

194194
debug!("flags: {}", flags.connect(" "));
195195
debug!("cfgs: {}", cfgs.connect(" "));

0 commit comments

Comments
 (0)