Adjust function signatures to allow for vecs being immediate
Some code was relying on vectors being implicitly by-reference (as non-immediate value). This adds the necessary &&-sigils. Closes #1021
This commit is contained in:
parent
b4bae8fea5
commit
33167f7dec
15 changed files with 34 additions and 38 deletions
|
|
@ -409,7 +409,7 @@ fn build_session(sopts: @session::options) -> session::session {
|
|||
none, 0u, filesearch);
|
||||
}
|
||||
|
||||
fn parse_pretty(sess: session::session, name: str) -> pp_mode {
|
||||
fn parse_pretty(sess: session::session, &&name: str) -> pp_mode {
|
||||
if str::eq(name, "normal") {
|
||||
ret ppm_normal;
|
||||
} else if str::eq(name, "expanded") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue