Skip to content

Commit cd214ad

Browse files
committed
librustc: Remove one more @str from librustc
1 parent 89d53e2 commit cd214ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/librustc/driver/driver.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,17 +1112,17 @@ pub fn build_output_filenames(input: &Input,
11121112

11131113
let mut stem = match *input {
11141114
// FIXME (#9639): This needs to handle non-utf8 paths
1115-
FileInput(ref ifile) => (*ifile).filestem_str().unwrap().to_managed(),
1116-
StrInput(_) => @"rust_out"
1115+
FileInput(ref ifile) => {
1116+
(*ifile).filestem_str().unwrap().to_str()
1117+
}
1118+
StrInput(_) => ~"rust_out"
11171119
};
11181120

11191121
// If a crateid is present, we use it as the link name
11201122
let crateid = attr::find_crateid(attrs);
11211123
match crateid {
11221124
None => {}
1123-
Some(crateid) => {
1124-
stem = crateid.name.to_managed()
1125-
}
1125+
Some(crateid) => stem = crateid.name.to_str(),
11261126
}
11271127

11281128
if sess.building_library.get() {

0 commit comments

Comments
 (0)