Skip to content

Commit 851a945

Browse files
committed
---
yaml --- r: 227798 b: refs/heads/try c: 56fd31f h: refs/heads/master v: v3
1 parent 5bd032a commit 851a945

File tree

11 files changed

+17
-122
lines changed

11 files changed

+17
-122
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: d278632fefa32dfa218fcf4db69ca60148db939a
4+
refs/heads/try: 56fd31f9a4a816e82a22787dab20cf785761f3f8
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/configure

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,14 +1037,6 @@ for target_file in ${CFG_SRC_DIR}mk/cfg/*.mk; do
10371037
CFG_SUPPORTED_TARGET="${CFG_SUPPORTED_TARGET} $(basename "$target_file" .mk)"
10381038
done
10391039

1040-
# copy build-triples to host-triples so that builds are a subset of hosts
1041-
V_TEMP=""
1042-
for i in $CFG_BUILD $CFG_HOST;
1043-
do
1044-
echo "$V_TEMP" | grep -qF $i || V_TEMP="$V_TEMP${V_TEMP:+ }$i"
1045-
done
1046-
CFG_HOST=$V_TEMP
1047-
10481040
# copy host-triples to target-triples so that hosts are a subset of targets
10491041
V_TEMP=""
10501042
for i in $CFG_HOST $CFG_TARGET;

branches/try/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/try/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 generic give a _name_ to the specific type
32+
* _Precise types_. Because generics 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/try/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/try/src/doc/trpl/documentation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ we could have added more explanation in a new paragraph.
102102
#### Special sections
103103

104104
Next, are special sections. These are indicated with a header, `#`. There
105-
are four kinds of headers that are commonly used. They aren't special syntax,
105+
are three kinds of headers that are commonly used. They aren't special syntax,
106106
just convention, for now.
107107

108108
```rust
@@ -144,7 +144,7 @@ responsible for upholding.
144144
# fn foo() {}
145145
```
146146

147-
Fourth, `Examples`. Include one or more examples of using your function or
147+
Third, `Examples`. Include one or more examples of using your function or
148148
method, and your users will love you for it. These examples go inside of
149149
code block annotations, which we'll talk about in a moment, and can have
150150
more than one section:

branches/try/src/doc/trpl/installing-rust.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ $ sudo /usr/local/lib/rustlib/uninstall.sh
4141
If you used the Windows installer, just re-run the `.msi` and it will give you
4242
an uninstall option.
4343

44-
## That disclaimer we promised
45-
4644
Some people, and somewhat rightfully so, get very upset when we tell you to
4745
`curl | sh`. Basically, when you do this, you are trusting that the good
4846
people who maintain Rust aren't going to hack your computer and do bad things.
@@ -52,8 +50,6 @@ binary downloads][install-page].
5250

5351
[from-source]: https://github.com/rust-lang/rust#building-from-source
5452

55-
## Platform support
56-
5753
Oh, we should also mention the officially supported platforms:
5854

5955
* Windows (7, 8, Server 2008 R2)
@@ -70,8 +66,6 @@ integrated as the Linux/OS X experience is. We're working on it! If anything
7066
does not work, it is a bug. Please let us know if that happens. Each and every
7167
commit is tested against Windows just like any other platform.
7268

73-
## After installation
74-
7569
If you've got Rust installed, you can open up a shell, and type this:
7670

7771
```bash

branches/try/src/liblibc/lib.rs

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,12 @@ pub mod types {
441441
pub type intmax_t = i64;
442442
pub type uintmax_t = u64;
443443
}
444-
#[cfg(any(target_arch = "mips",
444+
#[cfg(any(target_arch = "x86",
445+
target_arch = "mips",
445446
target_arch = "mipsel",
446447
target_arch = "powerpc",
447448
target_arch = "le32",
448-
all(any(target_arch = "arm", target_arch = "x86"),
449-
not(target_os = "android"))))]
449+
all(target_arch = "arm", not(target_os = "android"))))]
450450
pub mod posix88 {
451451
pub type off_t = i32;
452452
pub type dev_t = u64;
@@ -458,8 +458,7 @@ pub mod types {
458458
pub type mode_t = u32;
459459
pub type ssize_t = i32;
460460
}
461-
#[cfg(all(any(target_arch = "arm", target_arch = "x86"),
462-
target_os = "android"))]
461+
#[cfg(all(target_arch = "arm", target_os = "android"))]
463462
pub mod posix88 {
464463
pub type off_t = i32;
465464
pub type dev_t = u32;
@@ -474,8 +473,7 @@ pub mod types {
474473
#[cfg(any(target_arch = "x86",
475474
target_arch = "le32",
476475
target_arch = "powerpc",
477-
all(any(target_arch = "arm", target_arch = "x86"),
478-
not(target_os = "android"))))]
476+
all(target_arch = "arm", not(target_os = "android"))))]
479477
pub mod posix01 {
480478
use types::os::arch::c95::{c_short, c_long, time_t};
481479
use types::os::arch::posix88::{dev_t, gid_t, ino_t};
@@ -521,8 +519,7 @@ pub mod types {
521519
pub __size: [u32; 9]
522520
}
523521
}
524-
#[cfg(all(any(target_arch = "arm", target_arch = "x86"),
525-
target_os = "android"))]
522+
#[cfg(all(target_arch = "arm", target_os = "android"))]
526523
pub mod posix01 {
527524
use types::os::arch::c95::{c_uchar, c_uint, c_ulong, time_t};
528525
use types::os::arch::c99::{c_longlong, c_ulonglong};
@@ -5919,15 +5916,13 @@ pub mod funcs {
59195916
use types::os::arch::c95::c_int;
59205917
use types::os::common::posix01::sighandler_t;
59215918

5922-
#[cfg(not(all(target_os = "android", any(target_arch = "arm",
5923-
target_arch = "x86"))))]
5919+
#[cfg(not(all(target_os = "android", target_arch = "arm")))]
59245920
extern {
59255921
pub fn signal(signum: c_int,
59265922
handler: sighandler_t) -> sighandler_t;
59275923
}
59285924

5929-
#[cfg(all(target_os = "android", any(target_arch = "arm",
5930-
target_arch = "x86")))]
5925+
#[cfg(all(target_os = "android", target_arch = "arm"))]
59315926
extern {
59325927
#[link_name = "bsd_signal"]
59335928
pub fn signal(signum: c_int,

branches/try/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/try/src/libstd/sys/windows/os.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,6 @@ impl ExactSizeIterator for Args {
311311

312312
impl Drop for Args {
313313
fn drop(&mut self) {
314-
// self.cur can be null if CommandLineToArgvW previously failed,
315-
// but LocalFree ignores NULL pointers
316314
unsafe { c::LocalFree(self.cur as *mut c_void); }
317315
}
318316
}
@@ -323,9 +321,6 @@ pub fn args() -> Args {
323321
let lpCmdLine = c::GetCommandLineW();
324322
let szArgList = c::CommandLineToArgvW(lpCmdLine, &mut nArgs);
325323

326-
// szArcList can be NULL if CommandLinToArgvW failed,
327-
// but in that case nArgs is 0 so we won't actually
328-
// try to read a null pointer
329324
Args { cur: szArgList, range: 0..(nArgs as isize) }
330325
}
331326
}

branches/try/src/libstd/tuple.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
//! * `Eq`
2626
//! * `PartialOrd`
2727
//! * `Ord`
28-
//! * `Debug`
2928
//! * `Default`
30-
//! * `Hash`
3129
//!
3230
//! # Examples
3331
//!

0 commit comments

Comments
 (0)