diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-08-18 08:29:44 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-08-18 09:19:10 -0700 |
| commit | 67deb2e65e150a1b9b2fcd457da47e3e13b2c4f7 (patch) | |
| tree | 37fe9cab468b9f6757ca415f42a072a59012ee1e /src/libunicode | |
| parent | 7074592ee1ad1a155919268229b6464f2acc576e (diff) | |
| download | rust-67deb2e65e150a1b9b2fcd457da47e3e13b2c4f7.tar.gz rust-67deb2e65e150a1b9b2fcd457da47e3e13b2c4f7.zip | |
libsyntax: Remove the `use foo = bar` syntax from the language in favor
of `use bar as foo`. Change all uses of `use foo = bar` to `use bar as foo`. Implements RFC #47. Closes #16461. [breaking-change]
Diffstat (limited to 'src/libunicode')
| -rw-r--r-- | src/libunicode/u_str.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libunicode/u_str.rs b/src/libunicode/u_str.rs index 2e656a5a420..262721bd636 100644 --- a/src/libunicode/u_str.rs +++ b/src/libunicode/u_str.rs @@ -225,7 +225,7 @@ impl<'a> Iterator<&'a str> for Graphemes<'a> { #[inline] fn next(&mut self) -> Option<&'a str> { - use gr = tables::grapheme; + use tables::grapheme as gr; if self.string.len() == 0 { return None; } @@ -325,7 +325,7 @@ impl<'a> Iterator<&'a str> for Graphemes<'a> { impl<'a> DoubleEndedIterator<&'a str> for Graphemes<'a> { #[inline] fn next_back(&mut self) -> Option<&'a str> { - use gr = tables::grapheme; + use tables::grapheme as gr; if self.string.len() == 0 { return None; } |
