Skip to content

Commit 8d83809

Browse files
committed
---
yaml --- r: 274903 b: refs/heads/stable c: 14adc9b h: refs/heads/master i: 274901: 2b48aae 274899: 5c9914f 274895: 0cdca78
1 parent d8d91ad commit 8d83809

File tree

179 files changed

+711
-2547
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+711
-2547
lines changed

[refs]

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

branches/stable/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*.elc
1818
*.epub
1919
*.exe
20-
*.pdb
2120
*.fn
2221
*.html
2322
*.kdev4

branches/stable/mk/cfg/i586-unknown-linux-gnu.mk

Lines changed: 0 additions & 23 deletions
This file was deleted.

branches/stable/src/bootstrap/build/clean.rs

Lines changed: 0 additions & 36 deletions
This file was deleted.

branches/stable/src/bootstrap/build/flags.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ pub struct Flags {
2626
pub src: Option<PathBuf>,
2727
pub jobs: Option<u32>,
2828
pub args: Vec<String>,
29-
pub clean: bool,
3029
}
3130

3231
pub struct Filter {
@@ -45,7 +44,6 @@ impl Flags {
4544
opts.optopt("", "stage", "stage to build", "N");
4645
opts.optopt("", "src", "path to repo root", "DIR");
4746
opts.optopt("j", "jobs", "number of jobs to run in parallel", "JOBS");
48-
opts.optflag("", "clean", "clean output directory");
4947
opts.optflag("h", "help", "print this help message");
5048

5149
let usage = |n| -> ! {
@@ -77,7 +75,6 @@ impl Flags {
7775

7876
Flags {
7977
verbose: m.opt_present("v"),
80-
clean: m.opt_present("clean"),
8178
stage: m.opt_str("stage").map(|j| j.parse().unwrap()),
8279
build: m.opt_str("build").unwrap(),
8380
host: Filter { values: m.opt_strs("host") },

branches/stable/src/bootstrap/build/job.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,9 @@ pub unsafe fn setup() {
6464
mem::size_of_val(&info) as DWORD);
6565
assert!(r != 0, "{}", io::Error::last_os_error());
6666

67-
// Assign our process to this job object. Note that if this fails, one very
68-
// likely reason is that we are ourselves already in a job object! This can
69-
// happen on the build bots that we've got for Windows, or if just anyone
70-
// else is instrumenting the build. In this case we just bail out
71-
// immediately and assume that they take care of it.
72-
//
73-
// Also note that nested jobs (why this might fail) are supported in recent
74-
// versions of Windows, but the version of Windows that our bots are running
75-
// at least don't support nested job objects.
67+
// Assign our process to this job object
7668
let r = AssignProcessToJobObject(job, GetCurrentProcess());
77-
if r == 0 {
78-
CloseHandle(job);
79-
return
80-
}
69+
assert!(r != 0, "{}", io::Error::last_os_error());
8170

8271
// If we've got a parent process (e.g. the python script that called us)
8372
// then move ownership of this job object up to them. That way if the python

branches/stable/src/bootstrap/build/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ macro_rules! t {
3030

3131
mod cc;
3232
mod channel;
33-
mod clean;
3433
mod compile;
3534
mod config;
3635
mod flags;
@@ -123,10 +122,6 @@ impl Build {
123122
#[cfg(not(windows))] fn setup_job() {}
124123
setup_job();
125124

126-
if self.flags.clean {
127-
return clean::clean(self);
128-
}
129-
130125
cc::find(self);
131126
sanity::check(self);
132127
channel::collect(self);

branches/stable/src/bootstrap/mk/Makefile.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,3 @@ BOOTSTRAP := $(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap.py $(BOOTSTRAP_
2121

2222
all:
2323
$(Q)$(BOOTSTRAP)
24-
25-
clean:
26-
$(Q)$(BOOTSTRAP) --clean

branches/stable/src/doc/book/concurrency.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,6 @@ use std::sync::mpsc;
286286
fn main() {
287287
let data = Arc::new(Mutex::new(0));
288288

289-
// `tx` is the "transmitter" or "sender"
290-
// `rx` is the "receiver"
291289
let (tx, rx) = mpsc::channel();
292290

293291
for _ in 0..10 {

branches/stable/src/doc/book/documentation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,23 +319,23 @@ our source code:
319319
```text
320320
First, we set `x` to five:
321321
322-
```rust
322+
```text
323323
let x = 5;
324324
# let y = 6;
325325
# println!("{}", x + y);
326326
```
327327
328328
Next, we set `y` to six:
329329
330-
```rust
330+
```text
331331
# let x = 5;
332332
let y = 6;
333333
# println!("{}", x + y);
334334
```
335335
336336
Finally, we print the sum of `x` and `y`:
337337
338-
```rust
338+
```text
339339
# let x = 5;
340340
# let y = 6;
341341
println!("{}", x + y);

branches/stable/src/doc/book/ownership.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@ fn foo() {
5151
}
5252
```
5353

54-
When `v` comes into scope, a new [vector] is created on [the stack][stack],
55-
and it allocates space on [the heap][heap] for its elements. When `v` goes out
56-
of scope at the end of `foo()`, Rust will clean up everything related to the
57-
vector, even the heap-allocated memory. This happens deterministically, at the
58-
end of the scope.
54+
When `v` comes into scope, a new [vector] is created, and it allocates space on
55+
[the heap][heap] for each of its elements. When `v` goes out of scope at the
56+
end of `foo()`, Rust will clean up everything related to the vector, even the
57+
heap-allocated memory. This happens deterministically, at the end of the scope.
5958

6059
We'll cover [vectors] in detail later in this chapter; we only use them
6160
here as an example of a type that allocates space on the heap at runtime. They
@@ -68,7 +67,6 @@ Vectors have a [generic type][generics] `Vec<T>`, so in this example `v` will ha
6867
[arrays]: primitive-types.html#arrays
6968
[vectors]: vectors.html
7069
[heap]: the-stack-and-the-heap.html
71-
[stack]: the-stack-and-the-heap.html#the-stack
7270
[bindings]: variable-bindings.html
7371
[generics]: generics.html
7472

branches/stable/src/doc/book/using-rust-without-the-standard-library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ don’t want to use the standard library via an attribute: `#![no_std]`.
1111
> For details on binaries without the standard library, see [the nightly
1212
> chapter on `#![no_std]`](no-stdlib.html)
1313
14-
To use `#![no_std]`, add it to your crate root:
14+
To use `#![no_std]`, add a it to your crate root:
1515

1616
```rust
1717
#![no_std]

branches/stable/src/doc/uptack.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
\usepackage{newunicodechar}
2+
\newunicodechar⊥{{$\bot$}}

branches/stable/src/libcollections/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ impl<T> Vec<T> {
528528
}
529529

530530
/// Inserts an element at position `index` within the vector, shifting all
531-
/// elements after it to the right.
531+
/// elements after position `i` one position to the right.
532532
///
533533
/// # Panics
534534
///
@@ -570,7 +570,7 @@ impl<T> Vec<T> {
570570
}
571571

572572
/// Removes and returns the element at position `index` within the vector,
573-
/// shifting all elements after it to the left.
573+
/// shifting all elements after position `index` one position to the left.
574574
///
575575
/// # Panics
576576
///

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -741,13 +741,6 @@ macro_rules! int_impl {
741741
/// where `mask` removes any high-order bits of `rhs` that
742742
/// would cause the shift to exceed the bitwidth of the type.
743743
///
744-
/// Note that this is *not* the same as a rotate-left; the
745-
/// RHS of a wrapping shift-left is restricted to the range
746-
/// of the type, rather than the bits shifted out of the LHS
747-
/// being returned to the other end. The primitive integer
748-
/// types all implement a `rotate_left` function, which may
749-
/// be what you want instead.
750-
///
751744
/// # Examples
752745
///
753746
/// Basic usage:
@@ -766,13 +759,6 @@ macro_rules! int_impl {
766759
/// where `mask` removes any high-order bits of `rhs` that
767760
/// would cause the shift to exceed the bitwidth of the type.
768761
///
769-
/// Note that this is *not* the same as a rotate-right; the
770-
/// RHS of a wrapping shift-right is restricted to the range
771-
/// of the type, rather than the bits shifted out of the LHS
772-
/// being returned to the other end. The primitive integer
773-
/// types all implement a `rotate_right` function, which may
774-
/// be what you want instead.
775-
///
776762
/// # Examples
777763
///
778764
/// Basic usage:

branches/stable/src/librustc/middle/infer/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ pub struct InferCtxt<'a, 'tcx: 'a> {
8888

8989
pub parameter_environment: ty::ParameterEnvironment<'a, 'tcx>,
9090

91+
pub fulfillment_cx: RefCell<traits::FulfillmentContext<'tcx>>,
92+
9193
// the set of predicates on which errors have been reported, to
9294
// avoid reporting the same error twice.
9395
pub reported_trait_errors: RefCell<FnvHashSet<traits::TraitErrorKey<'tcx>>>,
@@ -364,6 +366,7 @@ pub fn new_infer_ctxt<'a, 'tcx>(tcx: &'a ty::ctxt<'tcx>,
364366
float_unification_table: RefCell::new(UnificationTable::new()),
365367
region_vars: RegionVarBindings::new(tcx),
366368
parameter_environment: param_env.unwrap_or(tcx.empty_parameter_environment()),
369+
fulfillment_cx: RefCell::new(traits::FulfillmentContext::new()),
367370
reported_trait_errors: RefCell::new(FnvHashSet()),
368371
normalize: false,
369372
err_count_on_creation: tcx.sess.err_count()
@@ -522,7 +525,7 @@ pub fn normalize_associated_type<'tcx,T>(tcx: &ty::ctxt<'tcx>, value: &T) -> T
522525
result,
523526
obligations);
524527

525-
let mut fulfill_cx = traits::FulfillmentContext::new();
528+
let mut fulfill_cx = infcx.fulfillment_cx.borrow_mut();
526529

527530
for obligation in obligations {
528531
fulfill_cx.register_predicate_obligation(&infcx, obligation);

branches/stable/src/librustc/middle/traits/fulfill.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl<'tcx> FulfillmentContext<'tcx> {
133133
cause: ObligationCause<'tcx>)
134134
-> Ty<'tcx>
135135
{
136-
debug!("normalize_projection_type(projection_ty={:?})",
136+
debug!("normalize_associated_type(projection_ty={:?})",
137137
projection_ty);
138138

139139
assert!(!projection_ty.has_escaping_regions());
@@ -147,7 +147,7 @@ impl<'tcx> FulfillmentContext<'tcx> {
147147
self.register_predicate_obligation(infcx, obligation);
148148
}
149149

150-
debug!("normalize_projection_type: result={:?}", normalized.value);
150+
debug!("normalize_associated_type: result={:?}", normalized.value);
151151

152152
normalized.value
153153
}
@@ -185,11 +185,11 @@ impl<'tcx> FulfillmentContext<'tcx> {
185185
assert!(!obligation.has_escaping_regions());
186186

187187
if self.is_duplicate_or_add(infcx.tcx, &obligation.predicate) {
188-
debug!("register_predicate_obligation({:?}) -- already seen, skip", obligation);
188+
debug!("register_predicate({:?}) -- already seen, skip", obligation);
189189
return;
190190
}
191191

192-
debug!("register_predicate_obligation({:?})", obligation);
192+
debug!("register_predicate({:?})", obligation);
193193
let obligation = PendingPredicateObligation {
194194
obligation: obligation,
195195
stalled_on: vec![]
@@ -274,7 +274,7 @@ impl<'tcx> FulfillmentContext<'tcx> {
274274
let mut errors = Vec::new();
275275

276276
loop {
277-
debug!("select: starting another iteration");
277+
debug!("select_where_possible: starting another iteration");
278278

279279
// Process pending obligations.
280280
let outcome = {
@@ -287,7 +287,7 @@ impl<'tcx> FulfillmentContext<'tcx> {
287287
region_obligations))
288288
};
289289

290-
debug!("select: outcome={:?}", outcome);
290+
debug!("select_where_possible: outcome={:?}", outcome);
291291

292292
// these are obligations that were proven to be true.
293293
for pending_obligation in outcome.completed {

branches/stable/src/librustc_back/target/i586_unknown_linux_gnu.rs

Lines changed: 0 additions & 28 deletions
This file was deleted.

branches/stable/src/librustc_back/target/i686_pc_windows_msvc.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,6 @@ pub fn target() -> Target {
1414
let mut base = super::windows_msvc_base::opts();
1515
base.cpu = "pentium4".to_string();
1616

17-
// Mark all dynamic libraries and executables as compatible with the larger 4GiB address
18-
// space available to x86 Windows binaries on x86_64.
19-
base.pre_link_args.push("/LARGEADDRESSAWARE".to_string());
20-
21-
// Ensure the linker will only produce an image if it can also produce a table of
22-
// the image's safe exception handlers.
23-
// https://msdn.microsoft.com/en-us/library/9a89h429.aspx
24-
base.pre_link_args.push("/SAFESEH".to_string());
25-
2617
Target {
2718
llvm_target: "i686-pc-windows-msvc".to_string(),
2819
target_endian: "little".to_string(),

branches/stable/src/librustc_back/target/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ macro_rules! supported_targets {
8989
supported_targets! {
9090
("x86_64-unknown-linux-gnu", x86_64_unknown_linux_gnu),
9191
("i686-unknown-linux-gnu", i686_unknown_linux_gnu),
92-
("i586-unknown-linux-gnu", i586_unknown_linux_gnu),
9392
("mips-unknown-linux-gnu", mips_unknown_linux_gnu),
9493
("mipsel-unknown-linux-gnu", mipsel_unknown_linux_gnu),
9594
("powerpc-unknown-linux-gnu", powerpc_unknown_linux_gnu),

0 commit comments

Comments
 (0)