rustc: Anti-copy police
In this case, some copies are still necessary to convert from a mutable to an immutable @-box. It's still an improvement, I hope.
This commit is contained in:
parent
18db9a2954
commit
3d43af15d8
8 changed files with 33 additions and 32 deletions
|
@ -467,7 +467,7 @@ pub fn compile_input(sysroot: Option<Path>,
|
|||
test: test,
|
||||
maybe_sysroot: sysroot,
|
||||
addl_lib_search_paths: ~[copy *out_dir],
|
||||
.. *driver::build_session_options(binary, &matches, diagnostic::emit)
|
||||
.. *driver::build_session_options(@binary, &matches, diagnostic::emit)
|
||||
};
|
||||
let mut crate_cfg = options.cfg;
|
||||
|
||||
|
@ -499,7 +499,7 @@ pub fn compile_crate_from_input(input: driver::input, build_dir_opt: Option<Path
|
|||
debug!("Calling build_output_filenames with %?", build_dir_opt);
|
||||
let outputs = driver::build_output_filenames(input, &build_dir_opt, &None, sess);
|
||||
debug!("Outputs are %? and output type = %?", outputs, sess.opts.output_type);
|
||||
let cfg = driver::build_configuration(sess, binary, input);
|
||||
let cfg = driver::build_configuration(sess, @binary, input);
|
||||
match crate_opt {
|
||||
Some(c) => {
|
||||
debug!("Calling compile_rest, outputs = %?", outputs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue