Skip to content

Rollup of 10 pull requests #33900

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 41 commits into from
May 27, 2016
Merged
Changes from 2 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
1e493fd
Add explanations about what derived trait implementations do
carols10cents May 20, 2016
bbfb6e7
`derive` explanation for PartialOrd should match that for Ord
carols10cents May 21, 2016
2f44053
Make `Derivable` header be an h2 instead of an h1
carols10cents May 21, 2016
fc467b3
Reorder `Copy` doc sections
carols10cents May 21, 2016
e831c72
Add an explicit "How can I implement `PartialEq`"? doc section
carols10cents May 21, 2016
54d2ef0
Add an explicit "How can I implement `Eq`" doc section
carols10cents May 21, 2016
c41227f
Add more detail to `Clone`'s documentation
carols10cents May 22, 2016
61bb9b2
Add more information about implementing `Hash`
carols10cents May 22, 2016
9efa445
Add an explicit "How can I implement `Ord`" doc section
carols10cents May 22, 2016
8b00a08
Add an explicit "How can I implement `PartialOrd`" doc section
carols10cents May 22, 2016
bd50eff
Make the Default docs more like the other traits
carols10cents May 22, 2016
b4e123d
Shorten, yet clarify, initial summary sentences
carols10cents May 23, 2016
d2ee6e0
Emphasize semantic differences of Copy/Clone rather than impl
carols10cents May 23, 2016
c22c524
"more than 32" => "more than 32 elements"
carols10cents May 23, 2016
497cbb6
"non equal" => "not equal"; consistent with the surrounding text
carols10cents May 23, 2016
9149992
Add some newlines in some code examples
carols10cents May 23, 2016
daa9dca
Use `()` when referring to functions
carols10cents May 23, 2016
d81a999
Prefer `ClassName` over `Self` in example trait implementations
carols10cents May 23, 2016
1b32298
Move all `Default` docs from module to trait
carols10cents May 23, 2016
1a7d3e1
Complete `PartialOrd`'s example so it passes make check-docs
carols10cents May 23, 2016
1e809f5
"the trait `Hash`" => "the `Hash` trait"
carols10cents May 23, 2016
22d626f
Fix invalid background color in stability elements
GuillaumeGomez May 23, 2016
ba8d46e
Fix asm-misplaced-option on ARM/AArch64
mmatyas May 20, 2016
f5a398d
Point out the clone operation in summary line docs of `Vec::extend_fr…
liigo May 25, 2016
dfa0d2c
Improve E0084 error explanation
GuillaumeGomez May 25, 2016
6d669b4
Add new error code tests
GuillaumeGomez May 25, 2016
2c93720
parser.rs: fix typos in comments
c4rlo May 18, 2016
5b82c5f
Fix ICE on failure to parse token tree
jseyfried May 25, 2016
eface32
Add `make tips` as useful make target
Byron May 26, 2016
7ba0016
Make Ipv4Addr cmp() faster
May 26, 2016
38bbb60
rustfmt on liblog
srinivasreddy May 27, 2016
5751495
Rollup merge of #33753 - mmatyas:armtestfix, r=alexcrichton
GuillaumeGomez May 27, 2016
967c388
Rollup merge of #33815 - carols10cents:trait-documentation-clarificat…
GuillaumeGomez May 27, 2016
98e768f
Rollup merge of #33829 - GuillaumeGomez:stability-css, r=steveklabnik
GuillaumeGomez May 27, 2016
caa732a
Rollup merge of #33858 - liigo:patch-7, r=GuillaumeGomez
GuillaumeGomez May 27, 2016
4ffebe7
Rollup merge of #33865 - GuillaumeGomez:E0084, r=jonathandturner
GuillaumeGomez May 27, 2016
43b430e
Rollup merge of #33866 - GuillaumeGomez:err-codes, r=jonathandturner
GuillaumeGomez May 27, 2016
c04e838
Rollup merge of #33870 - jseyfried:ice-issue-33569, r=pnkfelix
GuillaumeGomez May 27, 2016
6636dcc
Rollup merge of #33874 - Byron:patch-1, r=alexcrichton
GuillaumeGomez May 27, 2016
ee0821a
Rollup merge of #33891 - polachok:faster-ipv4-cmp, r=bluss
GuillaumeGomez May 27, 2016
2c4fd94
Rollup merge of #33898 - srinivasreddy:rustfmt_liblog, r=Manishearth
GuillaumeGomez May 27, 2016
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
15 changes: 15 additions & 0 deletions src/test/compile-fail/E0084.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[repr(i32)]
enum Foo {} //~ ERROR E0084

fn main() {
}
15 changes: 15 additions & 0 deletions src/test/compile-fail/E0087.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

fn foo<T>() {}

fn main() {
foo::<f64, bool>(); //~ ERROR E0087
}
15 changes: 15 additions & 0 deletions src/test/compile-fail/E0088.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

fn f() {}

fn main() {
f::<'static>(); //~ ERROR E0088
}
15 changes: 15 additions & 0 deletions src/test/compile-fail/E0089.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

fn foo<T, U>() {}

fn main() {
foo::<f64>(); //~ ERROR E0089
}
15 changes: 15 additions & 0 deletions src/test/compile-fail/E0091.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

type Foo<T> = u32; //~ ERROR E0091
type Foo2<A, B> = Box<A>; //~ ERROR E0091

fn main() {
}
17 changes: 17 additions & 0 deletions src/test/compile-fail/E0092.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(intrinsics)]
extern "rust-intrinsic" {
fn atomic_foo(); //~ ERROR E0092
}

fn main() {
}
17 changes: 17 additions & 0 deletions src/test/compile-fail/E0093.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(intrinsics)]
extern "rust-intrinsic" {
fn foo(); //~ ERROR E0093
}

fn main() {
}
17 changes: 17 additions & 0 deletions src/test/compile-fail/E0094.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(intrinsics)]
extern "rust-intrinsic" {
fn size_of<T, U>() -> usize; //~ ERROR E0094
}

fn main() {
}
13 changes: 13 additions & 0 deletions src/test/compile-fail/E0101.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

fn main() {
let x = |_| {}; //~ ERROR E0101
}
13 changes: 13 additions & 0 deletions src/test/compile-fail/E0102.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

fn main() {
let x = []; //~ ERROR E0102
}
21 changes: 21 additions & 0 deletions src/test/compile-fail/E0106.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

struct Foo {
x: &bool, //~ ERROR E0106
}
enum Bar {
A(u8),
B(&bool), //~ ERROR E0106
}
type MyStr = &str; //~ ERROR E0106

fn main() {
}
25 changes: 25 additions & 0 deletions src/test/compile-fail/E0107.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

struct Foo<'a>(&'a str);

enum Bar {
A,
B,
C,
}

struct Baz<'a> {
foo: Foo, //~ ERROR E0107
bar: Bar<'a>, //~ ERROR E0107
}

fn main() {
}
14 changes: 14 additions & 0 deletions src/test/compile-fail/E0109.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

type X = u32<i32>; //~ ERROR E0109

fn main() {
}
14 changes: 14 additions & 0 deletions src/test/compile-fail/E0110.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

type X = u32<'static>; //~ ERROR E0110

fn main() {
}
14 changes: 14 additions & 0 deletions src/test/compile-fail/E0116.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

impl Vec<u8> {} //~ ERROR E0116

fn main() {
}