Skip to content

Commit e99de74

Browse files
committed
---
yaml --- r: 95935 b: refs/heads/dist-snap c: eabdc8c h: refs/heads/master i: 95933: 91d6e26 95931: d2cf63d 95927: b82fc2a 95919: 7b8a0a8 95903: 8576c9e 95871: d32252f v: v3
1 parent fe84c4c commit e99de74

File tree

27 files changed

+143
-653
lines changed

27 files changed

+143
-653
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 57d1ed819b9e32a8e915ced9b5e130c299a46bca
9+
refs/heads/dist-snap: eabdc8c960f971bd0ce72e50a5847f3bfedaa65f
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/doc/po/ja/rust.md.po

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -678,13 +678,6 @@ msgid ""
678678
"and continues as any mixture hex digits and underscores."
679679
msgstr ""
680680

681-
#. type: Bullet: ' * '
682-
#: doc/rust.md:326
683-
msgid ""
684-
"An _octal literal_ starts with the character sequence `U+0030` `U+006F` (`0o`) "
685-
"and continues as any mixture octal digits and underscores."
686-
msgstr ""
687-
688681
#. type: Bullet: ' * '
689682
#: doc/rust.md:326
690683
msgid ""
@@ -747,7 +740,6 @@ msgid ""
747740
"123u; // type uint\n"
748741
"123_u; // type uint\n"
749742
"0xff_u8; // type u8\n"
750-
"0o70_i16; // type i16\n"
751743
"0b1111_1111_1001_0000_i32; // type i32\n"
752744
"~~~~\n"
753745
msgstr ""

branches/dist-snap/doc/po/ja/tutorial.md.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ msgstr "## プリミティブ型とリテラル"
849849
msgid ""
850850
"There are general signed and unsigned integer types, `int` and `uint`, as "
851851
"well as 8-, 16-, 32-, and 64-bit variants, `i8`, `u16`, etc. Integers can "
852-
"be written in decimal (`144`), hexadecimal (`0x90`), octal (`0o70`), or binary "
852+
"be written in decimal (`144`), hexadecimal (`0x90`), or binary "
853853
"(`0b10010000`) base. Each integral type has a corresponding literal suffix "
854854
"that can be used to indicate the type of a literal: `i` for `int`, `u` for "
855855
"`uint`, `i8` for the `i8` type."

branches/dist-snap/doc/po/rust.md.pot

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ msgstr ""
661661

662662
#. type: Plain text
663663
#: doc/rust.md:319
664-
msgid "An _integer literal_ has one of four forms:"
664+
msgid "An _integer literal_ has one of three forms:"
665665
msgstr ""
666666

667667
#. type: Bullet: ' * '
@@ -678,13 +678,6 @@ msgid ""
678678
"and continues as any mixture hex digits and underscores."
679679
msgstr ""
680680

681-
#. type: Bullet: ' * '
682-
#: doc/rust.md:326
683-
msgid ""
684-
"An _octal literal_ starts with the character sequence `U+0030` `U+006F` (`0o`) "
685-
"and continues as any mixture octal digits and underscores."
686-
msgstr ""
687-
688681
#. type: Bullet: ' * '
689682
#: doc/rust.md:326
690683
msgid ""
@@ -747,7 +740,6 @@ msgid ""
747740
"123u; // type uint\n"
748741
"123_u; // type uint\n"
749742
"0xff_u8; // type u8\n"
750-
"0o70_i16; // type i16\n"
751743
"0b1111_1111_1001_0000_i32; // type i32\n"
752744
"~~~~\n"
753745
msgstr ""

branches/dist-snap/doc/po/tutorial.md.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ msgstr ""
646646
msgid ""
647647
"There are general signed and unsigned integer types, `int` and `uint`, as "
648648
"well as 8-, 16-, 32-, and 64-bit variants, `i8`, `u16`, etc. Integers can "
649-
"be written in decimal (`144`), hexadecimal (`0x90`), octal (`0o70`), or binary "
649+
"be written in decimal (`144`), hexadecimal (`0x90`), or binary "
650650
"(`0b10010000`) base. Each integral type has a corresponding literal suffix "
651651
"that can be used to indicate the type of a literal: `i` for `int`, `u` for "
652652
"`uint`, `i8` for the `i8` type."

branches/dist-snap/doc/rust.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,12 @@ as they are differentiated by suffixes.
340340

341341
##### Integer literals
342342

343-
An _integer literal_ has one of four forms:
343+
An _integer literal_ has one of three forms:
344344

345345
* A _decimal literal_ starts with a *decimal digit* and continues with any
346346
mixture of *decimal digits* and _underscores_.
347347
* A _hex literal_ starts with the character sequence `U+0030` `U+0078`
348348
(`0x`) and continues as any mixture hex digits and underscores.
349-
* An _octal literal_ starts with the character sequence `U+0030` `U+006F`
350-
(`0o`) and continues as any mixture octal digits and underscores.
351349
* A _binary literal_ starts with the character sequence `U+0030` `U+0062`
352350
(`0b`) and continues as any mixture binary digits and underscores.
353351

@@ -378,7 +376,6 @@ Examples of integer literals of various forms:
378376
123u; // type uint
379377
123_u; // type uint
380378
0xff_u8; // type u8
381-
0o70_i16; // type i16
382379
0b1111_1111_1001_0000_i32; // type i32
383380
~~~~
384381

branches/dist-snap/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ fn is_four(x: int) -> bool {
305305

306306
There are general signed and unsigned integer types, `int` and `uint`,
307307
as well as 8-, 16-, 32-, and 64-bit variants, `i8`, `u16`, etc.
308-
Integers can be written in decimal (`144`), hexadecimal (`0x90`), octal (`0o70`), or
308+
Integers can be written in decimal (`144`), hexadecimal (`0x90`), or
309309
binary (`0b10010000`) base. Each integral type has a corresponding literal
310310
suffix that can be used to indicate the type of a literal: `i` for `int`,
311311
`u` for `uint`, `i8` for the `i8` type.

branches/dist-snap/src/compiletest/errors.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ fn parse_expected(line_num: uint, line: ~str) -> ~[ExpectedError] {
5252
let start_kind = idx;
5353
while idx < len && line[idx] != (' ' as u8) { idx += 1u; }
5454

55+
// FIXME: #4318 Instead of to_ascii and to_str_ascii, could use
56+
// to_ascii_consume and to_str_consume to not do a unnecessary copy.
5557
let kind = line.slice(start_kind, idx);
56-
let kind = kind.to_ascii().to_lower().into_str();
58+
let kind = kind.to_ascii().to_lower().to_str_ascii();
5759

5860
// Extract msg:
5961
while idx < len && line[idx] == (' ' as u8) { idx += 1u; }

branches/dist-snap/src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,18 +224,13 @@
224224
[0-9a-fA-F]
225225
</define-regex>
226226

227-
<define-regex id="oct_digit" extended="true">
228-
[0-7]
229-
</define-regex>
230-
231227
<context id="number" style-ref="number">
232228
<match extended="true">
233229
((?&lt;=\.\.)|(?&lt;![\w\.]))
234230
(
235231
[1-9][0-9_]*\%{num_suffix}?|
236232
0[0-9_]*\%{num_suffix}?|
237233
0b[01_]+\%{int_suffix}?|
238-
0o(\%{oct_digit}|_)+\%{int_suffix}?|
239234
0x(\%{hex_digit}|_)+\%{int_suffix}?
240235
)
241236
((?![\w\.].)|(?=\.\.))

branches/dist-snap/src/etc/kate/rust.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@
199199
<Detect2Chars char="/" char1="/" attribute="Comment" context="Commentar 1"/>
200200
<Detect2Chars char="/" char1="*" attribute="Comment" context="Commentar 2" beginRegion="Comment"/>
201201
<RegExpr String="0x[0-9a-fA-F_]+&rustIntSuf;" attribute="Number" context="#stay"/>
202-
<RegExpr String="0o[0-7_]+&rustIntSuf;" attribute="Number" context="#stay"/>
203202
<RegExpr String="0b[0-1_]+&rustIntSuf;" attribute="Number" context="#stay"/>
204203
<RegExpr String="[0-9][0-9_]*\.[0-9_]*([eE][+-]?[0-9_]+)?(f32|f64|f)?" attribute="Number" context="#stay"/>
205204
<RegExpr String="[0-9][0-9_]*&rustIntSuf;" attribute="Number" context="#stay"/>

branches/dist-snap/src/etc/vim/syntax/rust.vim

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ syn match rustNumber display "\<[0-9][0-9_]*\(i\|i8\|i16\|i32\|i64\)\>"
161161
syn match rustHexNumber display "\<0x[a-fA-F0-9_]\+\>"
162162
syn match rustHexNumber display "\<0x[a-fA-F0-9_]\+\(u\|u8\|u16\|u32\|u64\)\>"
163163
syn match rustHexNumber display "\<0x[a-fA-F0-9_]\+\(i8\|i16\|i32\|i64\)\>"
164-
syn match rustOctNumber display "\<0o[0-7_]\+\>"
165-
syn match rustOctNumber display "\<0o[0-7_]\+\(u\|u8\|u16\|u32\|u64\)\>"
166-
syn match rustOctNumber display "\<0o[0-7_]\+\(i8\|i16\|i32\|i64\)\>"
167164
syn match rustBinNumber display "\<0b[01_]\+\>"
168165
syn match rustBinNumber display "\<0b[01_]\+\(u\|u8\|u16\|u32\|u64\)\>"
169166
syn match rustBinNumber display "\<0b[01_]\+\(i8\|i16\|i32\|i64\)\>"
@@ -201,7 +198,6 @@ syn region rustFoldBraces start="{" end="}" transparent fold
201198

202199
" Default highlighting {{{1
203200
hi def link rustHexNumber rustNumber
204-
hi def link rustOctNumber rustNumber
205201
hi def link rustBinNumber rustNumber
206202
hi def link rustIdentifierPrime rustIdentifier
207203
hi def link rustTrait rustType

0 commit comments

Comments
 (0)