Skip to content

Commit deeb16f

Browse files
committed
---
yaml --- r: 235447 b: refs/heads/stable c: e6e6368 h: refs/heads/master i: 235445: 3c63d8b 235443: 4d014d3 235439: 40ccdb8 v: v3
1 parent cdbc5cc commit deeb16f

File tree

17 files changed

+79
-310
lines changed

17 files changed

+79
-310
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: 2c49927ae4c125d55f1c49b590a714428b823d9c
32+
refs/heads/stable: e6e636845472cb843d978ae865317fae08e50a74
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/.travis.yml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,20 @@
1-
# ccache support is disabled unless your language is a C-derivative. However
2-
# `language: C` unconditionally sets `CC=compiler`. If we just set it in our
3-
# `env` it will be overwritten by the default (gcc 4.6).
1+
# Use something that's not 'ruby' so we don't set up things like
2+
# RVM/bundler/ruby and whatnot. Right now 'rust' as a language actually
3+
# downloads a rust/cargo snapshot, which we don't really want for building rust.
44
language: c
5-
compiler: /usr/bin/gcc-4.7
6-
cache: ccache
75
sudo: false
86

97
# The test suite is in general way too stressful for travis, especially in
108
# terms of time limit and reliability. In the past we've tried to scale things
119
# back to only build the stage1 compiler and run a subset of tests, but this
1210
# didn't end up panning out very well.
1311
#
14-
# As a result, we're just using travis to run `make tidy` and *only* build
15-
# stage1 but *not* test it for now (a strict subset of the bootstrap). This will
16-
# catch "obvious" errors like style or not even compiling.
17-
#
18-
# We need gcc4.7 or higher to build LLVM, and travis (well, Ubuntu 12.04)
19-
# currently ships with 4.6. Gotta download our own.
12+
# As a result, we're just using travis to run `make tidy` now. It'll help
13+
# everyone find out about their trailing spaces early on!
2014
before_script:
21-
- ./configure --enable-ccache
15+
- ./configure --llvm-root=path/to/nowhere
2216
script:
2317
- make tidy
24-
- make rustc-stage1 -j4
25-
26-
env:
27-
- CXX=/usr/bin/g++-4.7
28-
29-
addons:
30-
apt:
31-
sources:
32-
- ubuntu-toolchain-r-test
33-
packages:
34-
- gcc-4.7
35-
- g++-4.7
3618

3719
# Real testing happens on http://buildbot.rust-lang.org/
3820
#

branches/stable/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ Documentation improvements are very welcome. The source of `doc.rust-lang.org`
133133
is located in `src/doc` in the tree, and standard API documentation is generated
134134
from the source code itself.
135135

136-
Documentation pull requests function in the same way as other pull requests,
137-
though you may see a slightly different form of `r+`:
136+
Documentation pull requests function in the same as other pull requests, though
137+
you may see a slightly different form of `r+`:
138138

139139
@bors: r+ 38fe8d2 rollup
140140

branches/stable/RELEASES.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ Breaking Changes
2828
in, and the same value reported by clang's
2929
`alignof`. [`mem::min_align_of`] is deprecated. This is not known to
3030
break real code.
31-
* [The `#[packed]` attribute is no longer silently accepted by the
32-
compiler][packed]. This attribute did nothing and code that
33-
mentioned it likely did not work as intended.
3431

3532
Language
3633
--------
@@ -143,7 +140,7 @@ Misc
143140
[fat]: https://github.com/rust-lang/rust/pull/26411
144141
[dst]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
145142
[parcodegen]: https://github.com/rust-lang/rust/pull/26018
146-
[packed]: https://github.com/rust-lang/rust/pull/25541
143+
147144

148145
Version 1.1.0 (June 2015)
149146
=========================

branches/stable/configure

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,12 +1031,15 @@ fi
10311031

10321032
if [ ! -z "$CFG_ENABLE_CCACHE" ]
10331033
then
1034-
if [ -z "$CFG_CCACHE" ]
1034+
if [ -z "$CC" ]
10351035
then
1036-
err "ccache requested but not found"
1037-
fi
1036+
if [ -z "$CFG_CCACHE" ]
1037+
then
1038+
err "ccache requested but not found"
1039+
fi
10381040

1039-
CFG_CC="ccache $CFG_CC"
1041+
CFG_CC="ccache $CFG_CC"
1042+
fi
10401043
fi
10411044

10421045
if [ -z "$CC" -a -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
@@ -1525,26 +1528,11 @@ do
15251528

15261529
(*)
15271530
msg "inferring LLVM_CXX/CC from CXX/CC = $CXX/$CC"
1528-
if [ ! -z "$CFG_ENABLE_CCACHE" ]
1529-
then
1530-
if [ -z "$CFG_CCACHE" ]
1531-
then
1532-
err "ccache requested but not found"
1533-
fi
1534-
1535-
LLVM_CXX_32="ccache $CXX"
1536-
LLVM_CC_32="ccache $CC"
1537-
1538-
LLVM_CXX_64="ccache $CXX"
1539-
LLVM_CC_64="ccache $CC"
1540-
else
1541-
LLVM_CXX_32="$CXX"
1542-
LLVM_CC_32="$CC"
1543-
1544-
LLVM_CXX_64="$CXX"
1545-
LLVM_CC_64="$CC"
1546-
fi
1531+
LLVM_CXX_32="$CXX"
1532+
LLVM_CC_32="$CC"
15471533

1534+
LLVM_CXX_64="$CXX"
1535+
LLVM_CC_64="$CC"
15481536
;;
15491537
esac
15501538

branches/stable/src/doc/trpl/error-handling.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ is very wrong. Wrong enough that we can't continue with things in the current
5050
state. Another example is using the `unreachable!()` macro:
5151

5252
```rust,ignore
53-
use Event::NewRelease;
54-
5553
enum Event {
5654
NewRelease,
5755
}
@@ -73,7 +71,7 @@ fn descriptive_probability(event: Event) -> &'static str {
7371
}
7472
7573
fn main() {
76-
println!("{}", descriptive_probability(NewRelease));
74+
std::io::println(descriptive_probability(NewRelease));
7775
}
7876
```
7977

branches/stable/src/doc/trpl/inline-assembly.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ fn main() {
103103
If you would like to use real operands in this position, however,
104104
you are required to put curly braces `{}` around the register that
105105
you want, and you are required to put the specific size of the
106-
operand. This is useful for very low level programming, where
106+
operand. This is useful for very low level programming, where
107107
which register you use is important:
108108

109109
```rust
@@ -166,12 +166,3 @@ unsafe {
166166
println!("eax is currently {}", result);
167167
# }
168168
```
169-
170-
## More Information
171-
172-
The current implementation of the `asm!` macro is a direct binding to [LLVM's
173-
inline assembler expressions][llvm-docs], so be sure to check out [their
174-
documentation as well][llvm-docs] for more information about clobbers,
175-
constraints, etc.
176-
177-
[llvm-docs]: http://llvm.org/docs/LangRef.html#inline-assembler-expressions

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ With that in mind, let’s learn about ownership.
4242
# Ownership
4343

4444
[Variable bindings][bindings] have a property in Rust: they ‘have ownership’
45-
of what they’re bound to. This means that when a binding goes out of scope,
46-
Rust will free the bound resources. For example:
45+
of what they’re bound to. This means that when a binding goes out of scope, the
46+
resource that they’re bound to are freed. For example:
4747

4848
```rust
4949
fn foo() {

branches/stable/src/doc/trpl/the-stack-and-the-heap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ After `bar()` is over, its frame is deallocated, leaving just `foo()` and
176176
| 1 | a | 5 |
177177
| 0 | x | 42 |
178178

179-
And then `foo()` ends, leaving just `main()`:
179+
And then `foo()` ends, leaving just `main()`
180180

181181
| Address | Name | Value |
182182
|---------|------|-------|
@@ -537,7 +537,7 @@ Generally, you should prefer stack allocation, and so, Rust stack-allocates by
537537
default. The LIFO model of the stack is simpler, at a fundamental level. This
538538
has two big impacts: runtime efficiency and semantic impact.
539539

540-
## Runtime Efficiency
540+
## Runtime Efficiency.
541541

542542
Managing the memory for the stack is trivial: The machine just
543543
increments or decrements a single value, the so-called “stack pointer”.

branches/stable/src/librustc/diagnostics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -972,16 +972,16 @@ Updates to the borrow checker in a future version of Rust may remove this
972972
restriction, but for now patterns must be rewritten without sub-bindings.
973973
974974
```
975-
// Before.
976-
match Some("hi".to_string()) {
977-
ref op_string_ref @ Some(ref s) => ...
975+
// Code like this...
976+
match Some(5) {
977+
ref op_num @ Some(num) => ...
978978
None => ...
979979
}
980980
981981
// After.
982982
match Some("hi".to_string()) {
983983
Some(ref s) => {
984-
let op_string_ref = &Some(s);
984+
let op_string_ref = &Some(&s);
985985
...
986986
}
987987
None => ...

branches/stable/src/librustc_trans/save/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,6 @@ fn escape(s: String) -> String {
753753

754754
// If the expression is a macro expansion or other generated code, run screaming
755755
// and don't index.
756-
fn generated_code(span: Span) -> bool {
756+
pub fn generated_code(span: Span) -> bool {
757757
span.expn_id != NO_EXPANSION || span == DUMMY_SP
758758
}

branches/stable/src/librustdoc/html/static/main.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@ code, pre {
128128
border-radius: 3px;
129129
padding: 0 0.2em;
130130
}
131-
.docblock pre code {
132-
padding: 0;
133-
}
134131
pre {
135132
background-color: #F5F5F5;
136133
padding: 14px;

branches/stable/src/librustdoc/html/static/main.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -951,8 +951,3 @@
951951
}());
952952

953953
}());
954-
955-
// Sets the focus on the search bar at the top of the page
956-
function focusSearchBar() {
957-
document.getElementsByName('search')[0].focus();
958-
}

branches/stable/src/libstd/io/buffered.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use cmp;
1818
use error;
1919
use fmt;
2020
use io::{self, DEFAULT_BUF_SIZE, Error, ErrorKind, SeekFrom};
21+
use ptr;
2122

2223
/// The `BufReader` struct adds buffering to any reader.
2324
///
@@ -307,8 +308,14 @@ impl<W: Write> BufWriter<W> {
307308
}
308309
}
309310
if written > 0 {
310-
self.buf.drain(..written);
311+
// NB: would be better expressed as .remove(0..n) if it existed
312+
unsafe {
313+
ptr::copy(self.buf.as_ptr().offset(written as isize),
314+
self.buf.as_mut_ptr(),
315+
len - written);
316+
}
311317
}
318+
self.buf.truncate(len - written);
312319
ret
313320
}
314321

0 commit comments

Comments
 (0)