Skip to content

Commit 8685149

Browse files
committed
---
yaml --- r: 234877 b: refs/heads/stable c: 425871b h: refs/heads/master i: 234875: c237df1 v: v3
1 parent 96a0af3 commit 8685149

File tree

8 files changed

+9
-93
lines changed

8 files changed

+9
-93
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: a6430925b435d5c27bb7fb4088dee06817c83d87
32+
refs/heads/stable: 425871bd90fda87dd99cbbebf159f665f252abf0
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ then
920920
LLVM_VERSION=$($LLVM_CONFIG --version)
921921

922922
case $LLVM_VERSION in
923-
(3.[5-7]*)
923+
(3.[5-6]*)
924924
msg "found ok version of LLVM: $LLVM_VERSION"
925925
;;
926926
(*)

branches/stable/mk/main.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
######################################################################
1414

1515
# The version number
16-
CFG_RELEASE_NUM=1.3.0
16+
CFG_RELEASE_NUM=1.2.0
1717

1818
# An optional number to put after the label, e.g. '.2' -> '-beta.2'
1919
# NB Make sure it starts with a dot to conform to semver pre-release

branches/stable/src/doc/style/features/traits/generics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ explicitly implement to be used by this generic function.
2929
explicit conversions or other method calls would usually be necessary. See the
3030
[overloading/implicits use case](#use-case:-limited-overloading-and/or-implicit-conversions)
3131
below.
32-
* _Precise types_. Because generics give a _name_ to the specific type
32+
* _Precise types_. Because generic give a _name_ to the specific type
3333
implementing a trait, it is possible to be precise about places where that
3434
exact type is required or produced. For example, a function
3535

branches/stable/src/doc/trpl/academic-research.md

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -42,32 +42,5 @@ Recommended for inspiration and a better understanding of Rust's background.
4242

4343
### Papers *about* Rust
4444

45-
* [GPU Programming in Rust: Implementing High Level Abstractions in a
46-
Systems Level
47-
Language](http://www.cs.indiana.edu/~eholk/papers/hips2013.pdf). Early GPU work by Eric Holk.
48-
* [Parallel closures: a new twist on an old
49-
idea](https://www.usenix.org/conference/hotpar12/parallel-closures-new-twist-old-idea)
50-
- not exactly about rust, but by nmatsakis
51-
* [Patina: A Formalization of the Rust Programming
52-
Language](ftp://ftp.cs.washington.edu/tr/2015/03/UW-CSE-15-03-02.pdf). Early
53-
formalization of a subset of the type system, by Eric Reed.
54-
* [Experience Report: Developing the Servo Web Browser Engine using
55-
Rust](http://arxiv.org/abs/1505.07383). By Lars Bergstrom.
56-
* [Implementing a Generic Radix Trie in
57-
Rust](https://michaelsproul.github.io/rust_radix_paper/rust-radix-sproul.pdf). Undergrad
58-
paper by Michael Sproul.
59-
* [Reenix: Implementing a Unix-Like Operating System in
60-
Rust](http://scialex.github.io/reenix.pdf). Undergrad paper by Alex
61-
Light.
62-
* [Evaluation of performance and productivity metrics of potential
63-
programming languages in the HPC environment](). Bachelor's thesis by
64-
Florian Wilkens. Compares C, Go and Rust.
65-
* [Nom, a byte oriented, streaming, zero copy, parser combinators library
66-
in Rust](http://spw15.langsec.org/papers/couprie-nom.pdf). By
67-
Geoffroy Couprie, research for VLC.
68-
* [Graph-Based Higher-Order Intermediate
69-
Representation](http://compilers.cs.uni-saarland.de/papers/lkh15_cgo.pdf). An
70-
experimental IR implemented in Impala, a Rust-like language.
71-
* [Code Refinement of Stencil
72-
Codes](http://compilers.cs.uni-saarland.de/papers/ppl14_web.pdf). Another
73-
paper using Impala.
45+
* [GPU programming in Rust](http://www.cs.indiana.edu/~eholk/papers/hips2013.pdf)
46+
* [Parallel closures: a new twist on an old idea](https://www.usenix.org/conference/hotpar12/parallel-closures-new-twist-old-idea) - not exactly about rust, but by nmatsakis

branches/stable/src/librustc_typeck/diagnostics.rs

Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -380,22 +380,6 @@ fn main() {
380380
```
381381
"##,
382382

383-
E0044: r##"
384-
You can't use type parameters on foreign items. Example of erroneous code:
385-
386-
```
387-
extern { fn some_func<T>(x: T); }
388-
```
389-
390-
To fix this, replace the type parameter with the specializations that you
391-
need:
392-
393-
```
394-
extern { fn some_func_i32(x: i32); }
395-
extern { fn some_func_i64(x: i64); }
396-
```
397-
"##,
398-
399383
E0045: r##"
400384
Rust only supports variadic parameters for interoperability with C code in its
401385
FFI. As such, variadic parameters can only be used with functions which are
@@ -749,44 +733,6 @@ fn some_func(x: &mut i32) {
749733
```
750734
"##,
751735

752-
E0071: r##"
753-
You tried to use a structure initialization with a non-structure type.
754-
Example of erroneous code:
755-
756-
```
757-
enum Foo { FirstValue };
758-
759-
let u = Foo::FirstValue { value: 0i32 }; // error: Foo::FirstValue
760-
// isn't a structure!
761-
// or even simpler, if the structure wasn't defined at all:
762-
let u = RandomName { random_field: 0i32 }; // error: RandomName
763-
// isn't a structure!
764-
```
765-
766-
To fix this, please check:
767-
* Did you spell it right?
768-
* Did you accidentaly used an enum as a struct?
769-
* Did you accidentaly make an enum when you intended to use a struct?
770-
771-
Here is the previous code with all missing information:
772-
773-
```
774-
struct Inner {
775-
value: i32
776-
}
777-
778-
enum Foo {
779-
FirstValue(Inner)
780-
}
781-
782-
fn main() {
783-
let u = Foo::FirstValue(Inner { value: 0i32 });
784-
785-
let t = Inner { value: 0i32 };
786-
}
787-
```
788-
"##,
789-
790736
E0072: r##"
791737
When defining a recursive struct or enum, any use of the type being defined
792738
from inside the definition must occur behind a pointer (like `Box` or `&`).
@@ -1542,7 +1488,9 @@ For more information see the [opt-in builtin traits RFC](https://github.com/rust
15421488
}
15431489

15441490
register_diagnostics! {
1491+
E0044, // foreign items may not have type parameters
15451492
E0068,
1493+
E0071,
15461494
E0074,
15471495
E0075,
15481496
E0076,

branches/stable/src/test/compile-fail/issue-23305.rs renamed to branches/stable/src/test/run-pass/issue-22375.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
pub trait ToNbt<T> {
12-
fn new(val: T) -> Self;
13-
}
14-
15-
impl ToNbt<Self> {} //~ ERROR use of `Self` outside of an impl or trait
11+
trait A<T: A<T>> {}
1612

1713
fn main() {}

branches/stable/src/test/run-pass/parallel-codegen-closures.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// Tests parallel codegen - this can fail if the symbol for the anonymous
1212
// closure in `sum` pollutes the second codegen unit from the first.
1313

14-
// ignore-bitrig
1514
// compile-flags: -C codegen_units=2
1615

1716
#![feature(core)]

0 commit comments

Comments
 (0)