Skip to content

Commit f58591a

Browse files
author
Dave Huseby
committed
---
yaml --- r: 235262 b: refs/heads/stable c: b77985f h: refs/heads/master v: v3
1 parent e390f92 commit f58591a

File tree

9 files changed

+28
-63
lines changed

9 files changed

+28
-63
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 6bc1264329faf49c8f0e5f1145becc434c8f0033
32+
refs/heads/stable: b77985fcfb9f0af810f387f79477234b1e110ef9
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/compiletest/runtest.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,8 +1702,11 @@ fn run_codegen_test(config: &Config, props: &TestProps, testfile: &Path) {
17021702
}
17031703

17041704
fn charset() -> &'static str {
1705-
if cfg!(any(target_os = "bitrig", target_os = "freebsd")) {
1705+
// FreeBSD 10.1 defaults to GDB 6.1.1 which doesn't support "auto" charset
1706+
if cfg!(target_os = "bitrig") {
17061707
"auto"
1708+
} else if cfg!(target_os = "freebsd") {
1709+
"ISO-8859-1"
17071710
} else {
17081711
"UTF-8"
17091712
}

branches/stable/src/doc/complement-design-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Second, it makes cost explicit. In general, the only safe way to have a
9999
non-exhaustive match would be to panic the thread if nothing is matched, though
100100
it could fall through if the type of the `match` expression is `()`. This sort
101101
of hidden cost and special casing is against the language's philosophy. It's
102-
easy to ignore all unspecified cases by using the `_` wildcard:
102+
easy to ignore certain cases by using the `_` wildcard:
103103

104104
```rust,ignore
105105
match val.do_something() {

branches/stable/src/doc/trpl/guessing-game.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,10 @@ rand="0.3.0"
360360
The `[dependencies]` section of `Cargo.toml` is like the `[package]` section:
361361
everything that follows it is part of it, until the next section starts.
362362
Cargo uses the dependencies section to know what dependencies on external
363-
crates you have, and what versions you require. In this case, we’ve specified version `0.3.0`,
364-
which Cargo understands to be any release that’s compatible with this specific version.
363+
crates you have, and what versions you require. In this case, we’ve used version `0.3.0`.
365364
Cargo understands [Semantic Versioning][semver], which is a standard for writing version
366-
numbers. If we wanted to use only `0.3.0` exactly, we could use `=0.3.0`. If we
367-
wanted to use the latest version we could use `*`; We could use a range of
368-
versions. [Cargo’s documentation][cargodoc] contains more details.
365+
numbers. If we wanted to use the latest version we could use `*` or we could use a range
366+
of versions. [Cargo’s documentation][cargodoc] contains more details.
369367

370368
[semver]: http://semver.org
371369
[cargodoc]: http://doc.crates.io/crates-io.html

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

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,6 @@ impl<'a> Display for Arguments<'a> {
273273
///
274274
/// Generally speaking, you should just `derive` a `Debug` implementation.
275275
///
276-
/// When used with the alternate format specifier `#?`, the output is pretty-printed.
277-
///
278276
/// For more information on formatters, see [the module-level documentation][module].
279277
///
280278
/// [module]: ../index.html
@@ -316,42 +314,13 @@ impl<'a> Display for Arguments<'a> {
316314
/// println!("The origin is: {:?}", origin);
317315
/// ```
318316
///
319-
/// This outputs:
320-
///
321-
/// ```text
322-
/// The origin is: Point { x: 0, y: 0 }
323-
/// ```
324-
///
325317
/// There are a number of `debug_*` methods on `Formatter` to help you with manual
326318
/// implementations, such as [`debug_struct`][debug_struct].
327319
///
328320
/// `Debug` implementations using either `derive` or the debug builder API
329321
/// on `Formatter` support pretty printing using the alternate flag: `{:#?}`.
330322
///
331323
/// [debug_struct]: ../std/fmt/struct.Formatter.html#method.debug_struct
332-
///
333-
/// Pretty printing with `#?`:
334-
///
335-
/// ```
336-
/// #[derive(Debug)]
337-
/// struct Point {
338-
/// x: i32,
339-
/// y: i32,
340-
/// }
341-
///
342-
/// let origin = Point { x: 0, y: 0 };
343-
///
344-
/// println!("The origin is: {:#?}", origin);
345-
/// ```
346-
///
347-
/// This outputs:
348-
///
349-
/// ```text
350-
/// The origin is: Point {
351-
/// x: 0,
352-
/// y: 0
353-
/// }
354-
/// ```
355324
#[stable(feature = "rust1", since = "1.0.0")]
356325
#[rustc_on_unimplemented = "`{Self}` cannot be formatted using `:?`; if it is \
357326
defined in your crate, add `#[derive(Debug)]` or \
@@ -410,8 +379,6 @@ pub trait Display {
410379
///
411380
/// The `Octal` trait should format its output as a number in base-8.
412381
///
413-
/// The alternate flag, `#`, adds a `0o` in front of the output.
414-
///
415382
/// For more information on formatters, see [the module-level documentation][module].
416383
///
417384
/// [module]: ../index.html
@@ -424,7 +391,6 @@ pub trait Display {
424391
/// let x = 42; // 42 is '52' in octal
425392
///
426393
/// assert_eq!(format!("{:o}", x), "52");
427-
/// assert_eq!(format!("{:#o}", x), "0o52");
428394
/// ```
429395
///
430396
/// Implementing `Octal` on a type:
@@ -457,8 +423,6 @@ pub trait Octal {
457423
///
458424
/// The `Binary` trait should format its output as a number in binary.
459425
///
460-
/// The alternate flag, `#`, adds a `0b` in front of the output.
461-
///
462426
/// For more information on formatters, see [the module-level documentation][module].
463427
///
464428
/// [module]: ../index.html
@@ -471,7 +435,6 @@ pub trait Octal {
471435
/// let x = 42; // 42 is '101010' in binary
472436
///
473437
/// assert_eq!(format!("{:b}", x), "101010");
474-
/// assert_eq!(format!("{:#b}", x), "0b101010");
475438
/// ```
476439
///
477440
/// Implementing `Binary` on a type:
@@ -505,8 +468,6 @@ pub trait Binary {
505468
/// The `LowerHex` trait should format its output as a number in hexidecimal, with `a` through `f`
506469
/// in lower case.
507470
///
508-
/// The alternate flag, `#`, adds a `0x` in front of the output.
509-
///
510471
/// For more information on formatters, see [the module-level documentation][module].
511472
///
512473
/// [module]: ../index.html
@@ -519,7 +480,6 @@ pub trait Binary {
519480
/// let x = 42; // 42 is '2a' in hex
520481
///
521482
/// assert_eq!(format!("{:x}", x), "2a");
522-
/// assert_eq!(format!("{:#x}", x), "0x2a");
523483
/// ```
524484
///
525485
/// Implementing `LowerHex` on a type:
@@ -553,8 +513,6 @@ pub trait LowerHex {
553513
/// The `UpperHex` trait should format its output as a number in hexidecimal, with `A` through `F`
554514
/// in upper case.
555515
///
556-
/// The alternate flag, `#`, adds a `0x` in front of the output.
557-
///
558516
/// For more information on formatters, see [the module-level documentation][module].
559517
///
560518
/// [module]: ../index.html
@@ -567,7 +525,6 @@ pub trait LowerHex {
567525
/// let x = 42; // 42 is '2A' in hex
568526
///
569527
/// assert_eq!(format!("{:X}", x), "2A");
570-
/// assert_eq!(format!("{:#X}", x), "0x2A");
571528
/// ```
572529
///
573530
/// Implementing `UpperHex` on a type:

branches/stable/src/libcore/slice.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,14 +1368,10 @@ pub fn mut_ref_slice<'a, A>(s: &'a mut A) -> &'a mut [A] {
13681368
///
13691369
/// The `len` argument is the number of **elements**, not the number of bytes.
13701370
///
1371-
/// # Unsafety
1372-
///
13731371
/// This function is unsafe as there is no guarantee that the given pointer is
13741372
/// valid for `len` elements, nor whether the lifetime inferred is a suitable
13751373
/// lifetime for the returned slice.
13761374
///
1377-
/// `p` must be non-null, even for zero-length slices.
1378-
///
13791375
/// # Caveat
13801376
///
13811377
/// The lifetime for the returned slice is inferred from its usage. To

branches/stable/src/librustc_resolve/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,6 +1844,11 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
18441844
visit::walk_ty_param_bounds_helper(this, bounds);
18451845

18461846
for trait_item in trait_items {
1847+
// Create a new rib for the trait_item-specific type
1848+
// parameters.
1849+
//
1850+
// FIXME #4951: Do we need a node ID here?
1851+
18471852
match trait_item.node {
18481853
ast::ConstTraitItem(_, ref default) => {
18491854
// Only impose the restrictions of

branches/stable/src/libstd/io/buffered.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use io::{self, DEFAULT_BUF_SIZE, Error, ErrorKind, SeekFrom};
2121
use ptr;
2222
use iter;
2323

24-
/// Wraps a `Read` and buffers input from it.
24+
/// Wraps a `Read` and buffers input from it
2525
///
2626
/// It can be excessively inefficient to work directly with a `Read` instance.
2727
/// For example, every call to `read` on `TcpStream` results in a system call.
@@ -54,13 +54,13 @@ pub struct BufReader<R> {
5454
}
5555

5656
impl<R: Read> BufReader<R> {
57-
/// Creates a new `BufReader` with a default buffer capacity.
57+
/// Creates a new `BufReader` with a default buffer capacity
5858
#[stable(feature = "rust1", since = "1.0.0")]
5959
pub fn new(inner: R) -> BufReader<R> {
6060
BufReader::with_capacity(DEFAULT_BUF_SIZE, inner)
6161
}
6262

63-
/// Creates a new `BufReader` with the specified buffer capacity.
63+
/// Creates a new `BufReader` with the specified buffer capacity
6464
#[stable(feature = "rust1", since = "1.0.0")]
6565
pub fn with_capacity(cap: usize, inner: R) -> BufReader<R> {
6666
let mut buf = Vec::with_capacity(cap);
@@ -183,7 +183,7 @@ impl<R: Seek> Seek for BufReader<R> {
183183
}
184184
}
185185

186-
/// Wraps a Writer and buffers output to it.
186+
/// Wraps a Writer and buffers output to it
187187
///
188188
/// It can be excessively inefficient to work directly with a `Write`. For
189189
/// example, every call to `write` on `TcpStream` results in a system call. A
@@ -205,13 +205,13 @@ pub struct BufWriter<W: Write> {
205205
pub struct IntoInnerError<W>(W, Error);
206206

207207
impl<W: Write> BufWriter<W> {
208-
/// Creates a new `BufWriter` with a default buffer capacity.
208+
/// Creates a new `BufWriter` with a default buffer capacity
209209
#[stable(feature = "rust1", since = "1.0.0")]
210210
pub fn new(inner: W) -> BufWriter<W> {
211211
BufWriter::with_capacity(DEFAULT_BUF_SIZE, inner)
212212
}
213213

214-
/// Creates a new `BufWriter` with the specified buffer capacity.
214+
/// Creates a new `BufWriter` with the specified buffer capacity
215215
#[stable(feature = "rust1", since = "1.0.0")]
216216
pub fn with_capacity(cap: usize, inner: W) -> BufWriter<W> {
217217
BufWriter {
@@ -253,11 +253,11 @@ impl<W: Write> BufWriter<W> {
253253
#[stable(feature = "rust1", since = "1.0.0")]
254254
pub fn get_ref(&self) -> &W { self.inner.as_ref().unwrap() }
255255

256-
/// Gets a mutable reference to the underlying writer.
256+
/// Gets a mutable reference to the underlying write.
257257
///
258258
/// # Warning
259259
///
260-
/// It is inadvisable to directly write to the underlying writer.
260+
/// It is inadvisable to directly read from the underlying writer.
261261
#[stable(feature = "rust1", since = "1.0.0")]
262262
pub fn get_mut(&mut self) -> &mut W { self.inner.as_mut().unwrap() }
263263

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
-include ../tools.mk
22

3+
# FIXME: ignore freebsd
34
# This is a basic test of LLVM ExecutionEngine functionality using compiled
45
# Rust code built using the `rustc` crate.
56

7+
ifneq ($(shell uname),FreeBSD)
68
all:
79
$(RUSTC) test.rs
810
$(call RUN,test $(RUSTC))
11+
else
12+
all:
13+
14+
endif

0 commit comments

Comments
 (0)