Skip to content

Commit f2c591c

Browse files
committed
---
yaml --- r: 217591 b: refs/heads/tmp c: a1d40c8 h: refs/heads/master i: 217589: 582e1ce 217587: b88f705 217583: 8cee265 v: v3
1 parent 93056db commit f2c591c

File tree

13 files changed

+48
-374
lines changed

13 files changed

+48
-374
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: 2ad26e850ed5dfedda8c96d7315aee50145ceedd
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 1fc0f685488ecf7590cfd85ffc67d5904d912d43
28+
refs/heads/tmp: a1d40c81f95107a5233db2c0059b8b7652592edd
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Rust is a fast systems programming language that guarantees
44
memory safety and offers painless concurrency ([no data races]).
55
It does not employ a garbage collector and has minimal runtime overhead.
66

7-
This repo contains the code for the compiler (`rustc`), as well
7+
This repo contains the code for `rustc`, the Rust compiler, as well
88
as standard libraries, tools and documentation for Rust.
99

1010
[no data races]: http://blog.rust-lang.org/2015/04/10/Fearless-Concurrency.html

branches/tmp/src/doc/trpl/documentation.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ pub fn new(value: T) -> Rc<T> {
3333
```
3434

3535
This code generates documentation that looks [like this][rc-new]. I've left the
36-
implementation out, with a regular comment in its place.
37-
38-
The first thing to notice about this annotation is that it uses
39-
`///` instead of `//`. The triple slash
36+
implementation out, with a regular comment in its place. That's the first thing
37+
to notice about this annotation: it uses `///`, instead of `//`. The triple slash
4038
indicates a documentation comment.
4139

4240
Documentation comments are written in Markdown.
@@ -377,7 +375,7 @@ $ rustdoc --test path/to/my/crate/root.rs
377375
$ cargo test
378376
```
379377

380-
That's right, `cargo test` tests embedded documentation too. However,
378+
That's right, `cargo test` tests embedded documentation too. However,
381379
`cargo test` will not test binary crates, only library ones. This is
382380
due to the way `rustdoc` works: it links against the library to be tested,
383381
but with a binary, there’s nothing to link to.

branches/tmp/src/doc/trpl/link-args.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Note that this feature is currently hidden behind the `feature(link_args)` gate
1717
because this is not a sanctioned way of performing linking. Right now rustc
1818
shells out to the system linker, so it makes sense to provide extra command line
1919
arguments, but this will not always be the case. In the future rustc may use
20-
LLVM directly to link native libraries, in which case `link_args` will have no
20+
LLVM directly to link native libraries in which case `link_args` will have no
2121
meaning.
2222

2323
It is highly recommended to *not* use this attribute, and rather use the more

branches/tmp/src/libcollections/fmt.rs

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@
128128
//! This allows multiple actual types to be formatted via `{:x}` (like `i8` as
129129
//! well as `isize`). The current mapping of types to traits is:
130130
//!
131-
//! * *nothing* ⇒ [`Display`](trait.Display.html)
132-
//! * `?` ⇒ [`Debug`](trait.Debug.html)
133-
//! * `o` ⇒ [`Octal`](trait.Octal.html)
134-
//! * `x` ⇒ [`LowerHex`](trait.LowerHex.html)
135-
//! * `X` ⇒ [`UpperHex`](trait.UpperHex.html)
136-
//! * `p` ⇒ [`Pointer`](trait.Pointer.html)
137-
//! * `b` ⇒ [`Binary`](trait.Binary.html)
138-
//! * `e` ⇒ [`LowerExp`](trait.LowerExp.html)
139-
//! * `E` ⇒ [`UpperExp`](trait.UpperExp.html)
131+
//! * *nothing* ⇒ `Display`
132+
//! * `?` ⇒ `Debug`
133+
//! * `o` ⇒ `Octal`
134+
//! * `x` ⇒ `LowerHex`
135+
//! * `X` ⇒ `UpperHex`
136+
//! * `p` ⇒ `Pointer`
137+
//! * `b` ⇒ `Binary`
138+
//! * `e` ⇒ `LowerExp`
139+
//! * `E` ⇒ `UpperExp`
140140
//!
141141
//! What this means is that any type of argument which implements the
142142
//! `fmt::Binary` trait can then be formatted with `{:b}`. Implementations
@@ -367,11 +367,11 @@
367367
//! should always be printed.
368368
//! * '-' - Currently not used
369369
//! * '#' - This flag is indicates that the "alternate" form of printing should
370-
//! be used. The alternate forms are:
371-
//! * `#?` - pretty-print the `Debug` formatting
370+
//! be used. For array slices, the alternate form omits the brackets.
371+
//! For the integer formatting traits, the alternate forms are:
372372
//! * `#x` - precedes the argument with a "0x"
373373
//! * `#X` - precedes the argument with a "0x"
374-
//! * `#b` - precedes the argument with a "0b"
374+
//! * `#t` - precedes the argument with a "0b"
375375
//! * `#o` - precedes the argument with a "0o"
376376
//! * '0' - This is used to indicate for integer formats that the padding should
377377
//! both be done with a `0` character as well as be sign-aware. A format
@@ -408,20 +408,19 @@
408408
//!
409409
//! There are three possible ways to specify the desired `precision`:
410410
//!
411-
//! 1. An integer `.N`:
412-
//!
413-
//! the integer `N` itself is the precision.
414-
//!
415-
//! 2. An integer followed by dollar sign `.N$`:
411+
//! There are three possible ways to specify the desired `precision`:
412+
//! 1. An integer `.N`,
413+
//! 2. an integer followed by dollar sign `.N$`, or
414+
//! 3. an asterisk `.*`.
416415
//!
417-
//! use format *argument* `N` (which must be a `usize`) as the precision.
416+
//! The first specification, `.N`, means the integer `N` itself is the precision.
418417
//!
419-
//! 3. An asterisk `.*`:
418+
//! The second, `.N$`, means use format *argument* `N` (which must be a `usize`) as the precision.
420419
//!
421-
//! `.*` means that this `{...}` is associated with *two* format inputs rather than one: the
422-
//! first input holds the `usize` precision, and the second holds the value to print. Note that
423-
//! in this case, if one uses the format string `{<arg>:<spec>.*}`, then the `<arg>` part refers
424-
//! to the *value* to print, and the `precision` must come in the input preceding `<arg>`.
420+
//! Finally, `.*` means that this `{...}` is associated with *two* format inputs rather than one:
421+
//! the first input holds the `usize` precision, and the second holds the value to print. Note
422+
//! that in this case, if one uses the format string `{<arg>:<spec>.*}`, then the `<arg>` part
423+
//! refers to the *value* to print, and the `precision` must come in the input preceding `<arg>`.
425424
//!
426425
//! For example, these:
427426
//!

branches/tmp/src/libcore/cmp.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ impl Ordering {
166166
///
167167
/// - total and antisymmetric: exactly one of `a < b`, `a == b` or `a > b` is true; and
168168
/// - transitive, `a < b` and `b < c` implies `a < c`. The same must hold for both `==` and `>`.
169-
///
170-
/// When this trait is `derive`d, it produces a lexicographic ordering.
171169
#[stable(feature = "rust1", since = "1.0.0")]
172170
pub trait Ord: Eq + PartialOrd<Self> {
173171
/// This method returns an `Ordering` between `self` and `other`.

branches/tmp/src/libcore/fmt/mod.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ impl<'a> Display for Arguments<'a> {
267267
}
268268
}
269269

270-
/// Format trait for the `?` character. Useful for debugging, all types
270+
/// Format trait for the `:?` format. Useful for debugging, all types
271271
/// should implement this.
272272
///
273273
/// Generally speaking, you should just `derive` a `Debug` implementation.
@@ -312,9 +312,6 @@ impl<'a> Display for Arguments<'a> {
312312
/// There are a number of `debug_*` methods on `Formatter` to help you with manual
313313
/// implementations, such as [`debug_struct`][debug_struct].
314314
///
315-
/// `Debug` implementations using either `derive` or the debug builder API
316-
/// on `Formatter` support pretty printing using the alternate flag: `{:#?}`.
317-
///
318315
/// [debug_struct]: ../std/fmt/struct.Formatter.html#method.debug_struct
319316
#[stable(feature = "rust1", since = "1.0.0")]
320317
#[rustc_on_unimplemented = "`{Self}` cannot be formatted using `:?`; if it is \
@@ -983,14 +980,7 @@ impl Debug for char {
983980
#[stable(feature = "rust1", since = "1.0.0")]
984981
impl Display for char {
985982
fn fmt(&self, f: &mut Formatter) -> Result {
986-
if f.width.is_none() && f.precision.is_none() {
987-
f.write_char(*self)
988-
} else {
989-
let mut utf8 = [0; 4];
990-
let amt = self.encode_utf8(&mut utf8).unwrap_or(0);
991-
let s: &str = unsafe { mem::transmute(&utf8[..amt]) };
992-
f.pad(s)
993-
}
983+
f.write_char(*self)
994984
}
995985
}
996986

branches/tmp/src/libcoretest/fmt/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ fn test_format_flags() {
1616
// No residual flags left by pointer formatting
1717
let p = "".as_ptr();
1818
assert_eq!(format!("{:p} {:x}", p, 16), format!("{:p} 10", p));
19-
20-
assert_eq!(format!("{: >3}", 'a'), " a");
2119
}

branches/tmp/src/librustc_trans/save/dump_csv.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
937937

938938
fn process_pat(&mut self, p:&ast::Pat) {
939939
if generated_code(p.span) {
940-
return
940+
return;
941941
}
942942

943943
match p.node {
@@ -963,6 +963,10 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
963963
if let Some(struct_def) = struct_def {
964964
let struct_fields = self.tcx.lookup_struct_fields(struct_def);
965965
for &Spanned { node: ref field, span } in fields {
966+
if generated_code(span) {
967+
continue;
968+
}
969+
966970
let sub_span = self.span.span_for_first_ident(span);
967971
for f in &struct_fields {
968972
if f.name == field.ident.name {
@@ -974,7 +978,7 @@ impl <'l, 'tcx> DumpCsvVisitor<'l, 'tcx> {
974978
break;
975979
}
976980
}
977-
self.visit_pat(&*field.pat);
981+
self.visit_pat(&field.pat);
978982
}
979983
}
980984
}

0 commit comments

Comments
 (0)