Skip to content

Rollup of PRs in the queue; Tuesday #22755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 54 commits into from
Feb 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
8e0e87f
revised pointer example
Feb 18, 2015
ded93b1
std: Update the std::io adaptors to proxy all methods
erickt Feb 20, 2015
756210a
std: Ensure fs::{DirEntry, ReadDir} are Send/Sync
alexcrichton Feb 20, 2015
189409f
Fix thread documentation
aochagavia Feb 20, 2015
e3104d8
Kill fmt::Show and fmt::String with fire!
nagisa Feb 21, 2015
97c1711
Distinguish between AST and various Dummy nodes in CFG.
Aatch Feb 19, 2015
a0b7bad
remove the `exit_map` field, it is unnecessary.
Aatch Feb 19, 2015
eb4961b
Add support for mapping a single ast-node to multiple cfg-nodes.
Aatch Feb 19, 2015
4bae133
revise handling of match expressions so that arms branch to next arm.
Aatch Feb 19, 2015
85defff
Improve borrowck error when a second move is due to a loop.
Aatch Feb 19, 2015
3ebdbac
Do not permit type parameters on builtin bounds.
ahmedcharles Jan 24, 2015
a194519
continue when builtin bounds are registered
flaper87 Feb 22, 2015
7ff11d7
Unify lifetime/type arguments error messages for (non-)builtin bounds
flaper87 Feb 22, 2015
8db6465
Change int to i32 in Cow example.
Feb 22, 2015
67b03fb
int audit - libcore::fmt
nrc Feb 23, 2015
5d8c9f5
int audit core::hash
nrc Feb 23, 2015
1db684f
int audit - std::sync
nrc Feb 23, 2015
282e278
doc: Fix `target_{word_size,pointer_width}` renaming
lukasoyen Feb 23, 2015
1049e88
Static and dynamic dispatch: missing word
steveklabnik Feb 23, 2015
e5e76e9
Integer audit in `libstd/thread_local/*`, part of #22240
vojtechkral Feb 23, 2015
cfd2a5c
openbsd: restore linker option
semarie Feb 23, 2015
dab394c
Add documentation to associated types in libcore, libstd
ipetkov Feb 23, 2015
717a91d
Update missing-docs lint to check associated type declarations
ipetkov Feb 23, 2015
2e9521c
Update missing-doc test to explicitly check errors
ipetkov Feb 23, 2015
8f5d225
Extend object safety so that methods with Sized:Self are exempt.
nikomatsakis Feb 9, 2015
fe512da
Remove awful hack concerning `Trait impl Trait` in method resolution …
nikomatsakis Feb 9, 2015
fd9f7da
Make traits with by-value-self be considered object safe.
nikomatsakis Feb 23, 2015
bb0e0a9
std::prelude: code consistency nits
tshepang Feb 22, 2015
9f8226a
Enforce a white background for the docs
frewsxcv Feb 23, 2015
0dc720b
Rollup merge of #22604 - aochagavia:docs, r=alexcrichton
Manishearth Feb 24, 2015
4337ddb
Rollup merge of #22653 - tsion:master, r=alexcrichton
Manishearth Feb 24, 2015
4737790
Rollup merge of #22680 - FlaPer87:type_builtin, r=nikomatsakis
Manishearth Feb 24, 2015
2d817db
Rollup merge of #22687 - tshepang:prelude-nits, r=alexcrichton
Manishearth Feb 24, 2015
05d9999
Rollup merge of #22711 - lummax:patch-1, r=dotdash
Manishearth Feb 24, 2015
9ed6c33
Rollup merge of #22719 - steveklabnik:typo_fix, r=alexcrichton
Manishearth Feb 24, 2015
39c0aa3
Rollup merge of #22726 - semarie:openbsd-Wl-as-needed, r=alexcrichton
Manishearth Feb 24, 2015
c89a30f
Rollup merge of #22740 - frewsxcv:patch-4, r=alexcrichton
Manishearth Feb 24, 2015
eaacc7a
Rollup merge of #22632 - nagisa:kill-show-string-with-fire!, r=alexcr…
Manishearth Feb 24, 2015
3ca5439
Rollup merge of #22700 - nick29581:ints_hash, r=alexcrichton
Manishearth Feb 24, 2015
9b7c749
Rollup merge of #22728 - vojtechkral:int-audit-thread-local, r=alexcr…
Manishearth Feb 24, 2015
cf2c14f
Rollup merge of #22730 - ipetkov:lint-docs, r=alexcrichton
Manishearth Feb 24, 2015
8e88762
Rollup merge of #22473 - leejunseok:fix_pointer_example, r=steveklabnik
Manishearth Feb 24, 2015
5676f60
Rollup merge of #22301 - nikomatsakis:object-safe-sized-methods, r=huonw
Manishearth Feb 24, 2015
cfab9cc
Rollup merge of #22428 - erickt:io-wrappers, r=aturon
Manishearth Feb 24, 2015
d7df353
Rollup merge of #22580 - pnkfelix:guard-pat-cfg2, r=pnkfelix
Manishearth Feb 24, 2015
54041c2
Rollup merge of #22594 - alexcrichton:issue-22577, r=aturon
Manishearth Feb 24, 2015
e711ac7
Remove double expr_u32 (fixup #22700)
Manishearth Feb 24, 2015
7a8a517
Remove ty_open and treat Unsized lvalues as *Unsized.
eddyb Feb 17, 2015
3b0cafb
tests: update expected recursion limit errors for the temporary lack …
eddyb Feb 20, 2015
8659de0
rustc_trans: use an Lvalue Datum for an unsized lvalue to avoid bogus…
eddyb Feb 24, 2015
89d5d24
Rollup merge of #22213 - eddyb:ty_open-case-closed, r=nikomatsakis
Manishearth Feb 24, 2015
13efa52
Remove another instance of ty_open (fixup #22213)
Manishearth Feb 24, 2015
2d74b53
Rollup merge of #22720 - edwardw:enum-struct-ident-walk-into-a-bar, r…
Manishearth Feb 24, 2015
b182cd7
Fix integers in tests (fixup #22700)
Manishearth Feb 24, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2165,7 +2165,7 @@ fn needs_foo_or_bar() {
// This function is only included when compiling for a unixish OS with a 32-bit
// architecture
#[cfg(all(unix, target_word_size = "32"))]
#[cfg(all(unix, target_pointer_width = "32"))]
fn on_32bit_unix() {
// ...
}
Expand Down Expand Up @@ -2193,9 +2193,9 @@ The following configurations must be defined by the implementation:
* `target_os = "..."`. Operating system of the target, examples include
`"win32"`, `"macos"`, `"linux"`, `"android"`, `"freebsd"`, `"dragonfly"`,
`"bitrig"` or `"openbsd"`.
* `target_word_size = "..."`. Target word size in bits. This is set to `"32"`
for targets with 32-bit pointers, and likewise set to `"64"` for 64-bit
pointers.
* `target_pointer_width = "..."`. Target pointer width in bits. This is set
to `"32"` for targets with 32-bit pointers, and likewise set to `"64"` for
64-bit pointers.
* `unix`. See `target_family`.
* `windows`. See `target_family`.

Expand Down
1 change: 1 addition & 0 deletions src/doc/rust.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
/* General structure */

body {
background-color: white;
margin: 0 auto;
padding: 0 15px;
font-family: "Source Serif Pro", Georgia, Times, "Times New Roman", serif;
Expand Down
27 changes: 14 additions & 13 deletions src/doc/trpl/pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,16 +361,16 @@ duration a *lifetime*. Let's try a more complex example:

```{rust}
fn main() {
let x = &mut 5;
let mut x = 5;

if *x < 10 {
if x < 10 {
let y = &x;

println!("Oh no: {}", y);
return;
}

*x -= 1;
x -= 1;

println!("Oh no: {}", x);
}
Expand All @@ -382,17 +382,18 @@ mutated, and therefore, lets us pass. This wouldn't work:

```{rust,ignore}
fn main() {
let x = &mut 5;
let mut x = 5;

if *x < 10 {
if x < 10 {
let y = &x;
*x -= 1;

x -= 1;

println!("Oh no: {}", y);
return;
}

*x -= 1;
x -= 1;

println!("Oh no: {}", x);
}
Expand All @@ -401,12 +402,12 @@ fn main() {
It gives this error:

```text
test.rs:5:8: 5:10 error: cannot assign to `*x` because it is borrowed
test.rs:5 *x -= 1;
^~
test.rs:4:16: 4:18 note: borrow of `*x` occurs here
test.rs:4 let y = &x;
^~
test.rs:7:9: 7:15 error: cannot assign to `x` because it is borrowed
test.rs:7 x -= 1;
^~~~~~
test.rs:5:18: 5:19 note: borrow of `x` occurs here
test.rs:5 let y = &x;
^
```

As you might guess, this kind of analysis is complex for a human, and therefore
Expand Down
4 changes: 2 additions & 2 deletions src/doc/trpl/static-and-dynamic-dispatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ dynamic dispatch is sometimes more efficient.

However, the common case is that it is more efficient to use static dispatch,
and one can always have a thin statically-dispatched wrapper function that does
a dynamic, but not vice versa, meaning static calls are more flexible. The
standard library tries to be statically dispatched where possible for this
a dynamic dispatch, but not vice versa, meaning static calls are more flexible.
The standard library tries to be statically dispatched where possible for this
reason.

## Dynamic dispatch
Expand Down
2 changes: 1 addition & 1 deletion src/libcollections/borrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl<T> ToOwned for T where T: Clone {
/// ```rust
/// use std::borrow::Cow;
///
/// fn abs_all(input: &mut Cow<[int]>) {
/// fn abs_all(input: &mut Cow<[i32]>) {
/// for i in 0..input.len() {
/// let v = input[i];
/// if v < 0 {
Expand Down
2 changes: 1 addition & 1 deletion src/libcollections/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
#![stable(feature = "rust1", since = "1.0.0")]

pub use core::fmt::{Formatter, Result, Write, rt};
pub use core::fmt::{Show, String, Octal, Binary};
pub use core::fmt::{Octal, Binary};
pub use core::fmt::{Display, Debug};
pub use core::fmt::{LowerHex, UpperHex, Pointer};
pub use core::fmt::{LowerExp, UpperExp};
Expand Down
22 changes: 11 additions & 11 deletions src/libcore/fmt/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ pub enum ExponentFormat {
pub enum SignificantDigits {
/// At most the given number of digits will be printed, truncating any
/// trailing zeroes.
DigMax(uint),
DigMax(usize),

/// Precisely the given number of digits will be printed.
DigExact(uint)
DigExact(usize)
}

/// How to emit the sign of a number.
Expand Down Expand Up @@ -240,27 +240,27 @@ pub fn float_to_str_bytes_common<T: Float, U, F>(
// If reached left end of number, have to
// insert additional digit:
if i < 0
|| buf[i as uint] == b'-'
|| buf[i as uint] == b'+' {
for j in (i as uint + 1..end).rev() {
|| buf[i as usize] == b'-'
|| buf[i as usize] == b'+' {
for j in (i as usize + 1..end).rev() {
buf[j + 1] = buf[j];
}
buf[(i + 1) as uint] = value2ascii(1);
buf[(i + 1) as usize] = value2ascii(1);
end += 1;
break;
}

// Skip the '.'
if buf[i as uint] == b'.' { i -= 1; continue; }
if buf[i as usize] == b'.' { i -= 1; continue; }

// Either increment the digit,
// or set to 0 if max and carry the 1.
let current_digit = ascii2value(buf[i as uint]);
let current_digit = ascii2value(buf[i as usize]);
if current_digit < (radix - 1) {
buf[i as uint] = value2ascii(current_digit+1);
buf[i as usize] = value2ascii(current_digit+1);
break;
} else {
buf[i as uint] = value2ascii(0);
buf[i as usize] = value2ascii(0);
i -= 1;
}
}
Expand Down Expand Up @@ -311,7 +311,7 @@ pub fn float_to_str_bytes_common<T: Float, U, F>(

struct Filler<'a> {
buf: &'a mut [u8],
end: &'a mut uint,
end: &'a mut usize,
}

impl<'a> fmt::Write for Filler<'a> {
Expand Down
Loading