diff options
| author | Kevin Cantu <me@kevincantu.org> | 2012-02-01 03:45:44 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-01 21:56:53 -0800 |
| commit | fceec03da005edc82c90f1cbe1d102e8f365bad0 (patch) | |
| tree | 947e5b433fe4a7b44860697c6d7bc17e54af3647 /src/comp/syntax/parse | |
| parent | 6156bc56cbd1f40e538b59ff91ce9b8d89969ff3 (diff) | |
| download | rust-fceec03da005edc82c90f1cbe1d102e8f365bad0.tar.gz rust-fceec03da005edc82c90f1cbe1d102e8f365bad0.zip | |
Propagating unsafe::slice 3
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/lexer.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/lexer.rs b/src/comp/syntax/parse/lexer.rs index d4e67e812d1..30dacd27d4e 100644 --- a/src/comp/syntax/parse/lexer.rs +++ b/src/comp/syntax/parse/lexer.rs @@ -579,7 +579,8 @@ fn all_whitespace(s: str, begin: uint, end: uint) -> bool { ret true; } -fn trim_whitespace_prefix_and_push_line(&lines: [str], s: str, col: uint) unsafe { +fn trim_whitespace_prefix_and_push_line(&lines: [str], + s: str, col: uint) unsafe { let s1; if all_whitespace(s, 0u, col) { if col < str::byte_len(s) { |
