Skip to content

Commit 848db6a

Browse files
committed
---
yaml --- r: 274910 b: refs/heads/stable c: dcb3526 h: refs/heads/master
1 parent 4b31207 commit 848db6a

File tree

189 files changed

+732
-2756
lines changed

Some content is hidden

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

189 files changed

+732
-2756
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: 083dc5b12d6d29e5d88f6446664968d1f868562d
32+
refs/heads/stable: dcb352647b20f5c7b7a0c1ca42d43ba98a4fa654
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/mk/tests.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,8 +1071,7 @@ $(3)/test/run-make/%-$(1)-T-$(2)-H-$(3).ok: \
10711071
$$(S) \
10721072
$(3) \
10731073
"$$(LLVM_LIBDIR_RUSTFLAGS_$(3))" \
1074-
"$$(LLVM_ALL_COMPONENTS_$(3))" \
1075-
"$$(LLVM_CXXFLAGS_$(3))"
1074+
"$$(LLVM_ALL_COMPONENTS_$(3))"
10761075
@touch -r $$@.start_time $$@ && rm $$@.start_time
10771076
else
10781077
# FIXME #11094 - The above rule doesn't work right for multiple targets

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/etc/maketest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def convert_path_spec(name, value):
4646
putenv('RUSTC', os.path.abspath(sys.argv[3]))
4747
putenv('TMPDIR', os.path.abspath(sys.argv[4]))
4848
putenv('CC', sys.argv[5] + ' ' + sys.argv[6])
49-
putenv('CFLAGS', sys.argv[6])
5049
putenv('RUSTDOC', os.path.abspath(sys.argv[7]))
5150
filt = sys.argv[8]
5251
putenv('LD_LIB_PATH_ENVVAR', sys.argv[9])
@@ -56,7 +55,6 @@ def convert_path_spec(name, value):
5655
putenv('S', os.path.abspath(sys.argv[13]))
5756
putenv('RUSTFLAGS', sys.argv[15])
5857
putenv('LLVM_COMPONENTS', sys.argv[16])
59-
putenv('LLVM_CXXFLAGS', sys.argv[17])
6058
putenv('PYTHON', sys.executable)
6159
os.putenv('TARGET', target_triple)
6260

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/lint/context.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,6 @@ impl<'a, 'tcx, 'v> hir_visit::Visitor<'v> for LateContext<'a, 'tcx> {
758758
run_lints!(cx, check_item, late_passes, it);
759759
cx.visit_ids(|v| v.visit_item(it));
760760
hir_visit::walk_item(cx, it);
761-
run_lints!(cx, check_item_post, late_passes, it);
762761
})
763762
}
764763

@@ -847,7 +846,6 @@ impl<'a, 'tcx, 'v> hir_visit::Visitor<'v> for LateContext<'a, 'tcx> {
847846
fn visit_block(&mut self, b: &hir::Block) {
848847
run_lints!(self, check_block, late_passes, b);
849848
hir_visit::walk_block(self, b);
850-
run_lints!(self, check_block_post, late_passes, b);
851849
}
852850

853851
fn visit_arm(&mut self, a: &hir::Arm) {
@@ -920,7 +918,6 @@ impl<'a, 'v> ast_visit::Visitor<'v> for EarlyContext<'a> {
920918
run_lints!(cx, check_item, early_passes, it);
921919
cx.visit_ids(|v| v.visit_item(it));
922920
ast_visit::walk_item(cx, it);
923-
run_lints!(cx, check_item_post, early_passes, it);
924921
})
925922
}
926923

@@ -1004,7 +1001,6 @@ impl<'a, 'v> ast_visit::Visitor<'v> for EarlyContext<'a> {
10041001
fn visit_block(&mut self, b: &ast::Block) {
10051002
run_lints!(self, check_block, early_passes, b);
10061003
ast_visit::walk_block(self, b);
1007-
run_lints!(self, check_block_post, early_passes, b);
10081004
}
10091005

10101006
fn visit_arm(&mut self, a: &ast::Arm) {
@@ -1257,8 +1253,6 @@ pub fn check_crate(tcx: &ty::ctxt, access_levels: &AccessLevels) {
12571253
run_lints!(cx, check_crate, late_passes, krate);
12581254

12591255
hir_visit::walk_crate(cx, krate);
1260-
1261-
run_lints!(cx, check_crate_post, late_passes, krate);
12621256
});
12631257

12641258
// If we missed any lints added to the session, then there's a bug somewhere
@@ -1290,8 +1284,6 @@ pub fn check_ast_crate(sess: &Session, krate: &ast::Crate) {
12901284
run_lints!(cx, check_crate, early_passes, krate);
12911285

12921286
ast_visit::walk_crate(cx, krate);
1293-
1294-
run_lints!(cx, check_crate_post, early_passes, krate);
12951287
});
12961288

12971289
// Put the lint store back in the session.

branches/stable/src/librustc/lint/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,11 @@ pub trait LintPass {
132132
pub trait LateLintPass: LintPass {
133133
fn check_name(&mut self, _: &LateContext, _: Span, _: ast::Name) { }
134134
fn check_crate(&mut self, _: &LateContext, _: &hir::Crate) { }
135-
fn check_crate_post(&mut self, _: &LateContext, _: &hir::Crate) { }
136135
fn check_mod(&mut self, _: &LateContext, _: &hir::Mod, _: Span, _: ast::NodeId) { }
137136
fn check_foreign_item(&mut self, _: &LateContext, _: &hir::ForeignItem) { }
138137
fn check_item(&mut self, _: &LateContext, _: &hir::Item) { }
139-
fn check_item_post(&mut self, _: &LateContext, _: &hir::Item) { }
140138
fn check_local(&mut self, _: &LateContext, _: &hir::Local) { }
141139
fn check_block(&mut self, _: &LateContext, _: &hir::Block) { }
142-
fn check_block_post(&mut self, _: &LateContext, _: &hir::Block) { }
143140
fn check_stmt(&mut self, _: &LateContext, _: &hir::Stmt) { }
144141
fn check_arm(&mut self, _: &LateContext, _: &hir::Arm) { }
145142
fn check_pat(&mut self, _: &LateContext, _: &hir::Pat) { }
@@ -177,14 +174,11 @@ pub trait LateLintPass: LintPass {
177174
pub trait EarlyLintPass: LintPass {
178175
fn check_ident(&mut self, _: &EarlyContext, _: Span, _: ast::Ident) { }
179176
fn check_crate(&mut self, _: &EarlyContext, _: &ast::Crate) { }
180-
fn check_crate_post(&mut self, _: &EarlyContext, _: &ast::Crate) { }
181177
fn check_mod(&mut self, _: &EarlyContext, _: &ast::Mod, _: Span, _: ast::NodeId) { }
182178
fn check_foreign_item(&mut self, _: &EarlyContext, _: &ast::ForeignItem) { }
183179
fn check_item(&mut self, _: &EarlyContext, _: &ast::Item) { }
184-
fn check_item_post(&mut self, _: &EarlyContext, _: &ast::Item) { }
185180
fn check_local(&mut self, _: &EarlyContext, _: &ast::Local) { }
186181
fn check_block(&mut self, _: &EarlyContext, _: &ast::Block) { }
187-
fn check_block_post(&mut self, _: &EarlyContext, _: &ast::Block) { }
188182
fn check_stmt(&mut self, _: &EarlyContext, _: &ast::Stmt) { }
189183
fn check_arm(&mut self, _: &EarlyContext, _: &ast::Arm) { }
190184
fn check_pat(&mut self, _: &EarlyContext, _: &ast::Pat) { }

0 commit comments

Comments
 (0)