diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-10 13:54:03 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-10 16:01:51 +0200 |
| commit | 33167f7decfdc70c9dca6c41f80883f12c13cfbc (patch) | |
| tree | 6a7b610fe6af5bd7e1ff81c54e63a580505f32d2 /src/compiletest | |
| parent | b4bae8fea5943a0b95a1a9be13a8155ee45418b7 (diff) | |
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
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/runtest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index ebedb4f0685..06a327c507f 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -276,7 +276,7 @@ fn make_run_args(config: config, _props: test_props, testfile: str) -> fn split_maybe_args(argstr: option::t<str>) -> [str] { fn rm_whitespace(v: [str]) -> [str] { - fn flt(s: str) -> option::t<str> { + fn flt(&&s: str) -> option::t<str> { if !is_whitespace(s) { option::some(s) } else { option::none } } |
