We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19eb225 commit 0991437Copy full SHA for 0991437
src/librustc/metadata/creader.rs
@@ -196,7 +196,7 @@ fn visit_item(e: @mut Env, i: @ast::item) {
196
for link_args.each |a| {
197
match attr::get_meta_item_value_str(attr::attr_meta(*a)) {
198
Some(ref linkarg) => {
199
- cstore::add_used_link_args(cstore, (/*bad*/copy *linkarg));
+ cstore::add_used_link_args(cstore, *linkarg);
200
}
201
None => {/* fallthrough */ }
202
src/librustc/metadata/cstore.rs
@@ -119,7 +119,7 @@ pub fn get_used_libraries(cstore: @mut CStore) -> ~[~str] {
119
return /*bad*/copy cstore.used_libraries;
120
121
122
-pub fn add_used_link_args(cstore: @mut CStore, args: ~str) {
+pub fn add_used_link_args(cstore: @mut CStore, args: &str) {
123
cstore.used_link_args.push_all(str::split_char(args, ' '));
124
125
0 commit comments