Skip to content

Commit 924f15d

Browse files
committed
---
yaml --- r: 231877 b: refs/heads/auto c: 37b1a87 h: refs/heads/master i: 231875: 757c914 v: v3
1 parent 76b8ce1 commit 924f15d

File tree

13 files changed

+37
-166
lines changed

13 files changed

+37
-166
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: ee00780b985b6953346eb2dfe60d364d8159a86f
11+
refs/heads/auto: 37b1a8762b40717375a70755a75ac8773c382d7a
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/COPYRIGHT

Lines changed: 0 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -22,104 +22,6 @@ The Rust Project includes packages written by third parties.
2222
The following third party packages are included, and carry
2323
their own copyright notices and license terms:
2424

25-
* Two header files that are part of the Valgrind
26-
package. These files are found at src/rt/valgrind/valgrind.h and
27-
src/rt/valgrind/memcheck.h, within this distribution. These files
28-
are redistributed under the following terms, as noted in
29-
them:
30-
31-
for src/rt/valgrind/valgrind.h:
32-
33-
This file is part of Valgrind, a dynamic binary
34-
instrumentation framework.
35-
36-
Copyright (C) 2000-2010 Julian Seward. All rights
37-
reserved.
38-
39-
Redistribution and use in source and binary forms, with
40-
or without modification, are permitted provided that the
41-
following conditions are met:
42-
43-
1. Redistributions of source code must retain the above
44-
copyright notice, this list of conditions and the
45-
following disclaimer.
46-
47-
2. The origin of this software must not be
48-
misrepresented; you must not claim that you wrote the
49-
original software. If you use this software in a
50-
product, an acknowledgment in the product
51-
documentation would be appreciated but is not
52-
required.
53-
54-
3. Altered source versions must be plainly marked as
55-
such, and must not be misrepresented as being the
56-
original software.
57-
58-
4. The name of the author may not be used to endorse or
59-
promote products derived from this software without
60-
specific prior written permission.
61-
62-
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
63-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
64-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
65-
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
66-
NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
67-
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
68-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
69-
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
70-
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
71-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
72-
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
73-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
74-
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
75-
OF SUCH DAMAGE.
76-
77-
for src/rt/valgrind/memcheck.h:
78-
79-
This file is part of MemCheck, a heavyweight Valgrind
80-
tool for detecting memory errors.
81-
82-
Copyright (C) 2000-2010 Julian Seward. All rights
83-
reserved.
84-
85-
Redistribution and use in source and binary forms, with
86-
or without modification, are permitted provided that the
87-
following conditions are met:
88-
89-
1. Redistributions of source code must retain the above
90-
copyright notice, this list of conditions and the
91-
following disclaimer.
92-
93-
2. The origin of this software must not be
94-
misrepresented; you must not claim that you wrote the
95-
original software. If you use this software in a
96-
product, an acknowledgment in the product
97-
documentation would be appreciated but is not
98-
required.
99-
100-
3. Altered source versions must be plainly marked as
101-
such, and must not be misrepresented as being the
102-
original software.
103-
104-
4. The name of the author may not be used to endorse or
105-
promote products derived from this software without
106-
specific prior written permission.
107-
108-
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
109-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
110-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
111-
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
112-
NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
113-
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
114-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
115-
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
116-
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
117-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
118-
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
119-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
120-
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
121-
OF SUCH DAMAGE.
122-
12325
* The src/rt/miniz.c file, carrying an implementation of
12426
RFC1950/RFC1951 DEFLATE, by Rich Geldreich
12527
<[email protected]>. All uses of this file are

branches/auto/src/doc/trpl/macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ fn main() {
313313
}
314314
```
315315

316-
This works because Rust has a [hygienic macro system]. Each macro expansion
316+
This works because Rust has a [hygienic macro system][https://en.wikipedia.org/wiki/Hygienic_macro]. Each macro expansion
317317
happens in a distinct ‘syntax context’, and each variable is tagged with the
318318
syntax context where it was introduced. It’s as though the variable `state`
319319
inside `main` is painted a different "color" from the variable `state` inside

branches/auto/src/doc/trpl/mutability.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn foo(mut x: i32) {
6262
# Interior vs. Exterior Mutability
6363

6464
However, when we say something is ‘immutable’ in Rust, that doesn’t mean that
65-
it’s not able to be changed: we mean something has ‘exterior mutability’. Consider,
65+
it’s not able to be changed: We mean something has ‘exterior mutability’. Consider,
6666
for example, [`Arc<T>`][arc]:
6767

6868
```rust
@@ -85,8 +85,8 @@ philosophy, memory safety, and the mechanism by which Rust guarantees it, the
8585
> You may have one or the other of these two kinds of borrows, but not both at
8686
> the same time:
8787
>
88-
> * one or more references (`&T`) to a resource,
89-
> * exactly one mutable reference (`&mut T`).
88+
> * one or more references (`&T`) to a resource.
89+
> * exactly one mutable reference (`&mut T`)
9090
9191
[ownership]: ownership.html
9292
[borrowing]: references-and-borrowing.html#borrowing

branches/auto/src/doc/trpl/references-and-borrowing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ First, any borrow must last for a scope no greater than that of the owner.
159159
Second, you may have one or the other of these two kinds of borrows, but not
160160
both at the same time:
161161

162-
* one or more references (`&T`) to a resource,
163-
* exactly one mutable reference (`&mut T`).
162+
* one or more references (`&T`) to a resource.
163+
* exactly one mutable reference (`&mut T`)
164164

165165

166166
You may notice that this is very similar, though not exactly the same as,
@@ -298,8 +298,8 @@ We can’t modify `v` because it’s borrowed by the loop.
298298

299299
### use after free
300300

301-
References must not live longer than the resource they refer to. Rust will
302-
check the scopes of your references to ensure that this is true.
301+
References must live as long as the resource they refer to. Rust will check the
302+
scopes of your references to ensure that this is true.
303303

304304
If Rust didn’t check this property, we could accidentally use a reference
305305
which was invalid. For example:

branches/auto/src/librustc_back/target/dragonfly_base.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ pub fn opts() -> TargetOptions {
1919
linker_is_gnu: true,
2020
has_rpath: true,
2121
pre_link_args: vec!(
22+
"-L/usr/local/lib".to_string(),
23+
"-L/usr/lib/gcc47".to_string(),
2224
// GNU-style linkers will use this to omit linking to libraries
2325
// which don't actually fulfill any relocations, but only for
2426
// libraries which follow this flag. Thus, use it before

branches/auto/src/librustc_trans/trans/context.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,6 @@ fn declare_intrinsic(ccx: &CrateContext, key: &str) -> Option<ValueRef> {
798798
if key == $name {
799799
let f = declare::declare_cfn(ccx, $name, Type::func(&[], &$ret),
800800
ccx.tcx().mk_nil());
801-
llvm::SetUnnamedAddr(f, false);
802801
ccx.intrinsics().borrow_mut().insert($name, f.clone());
803802
return Some(f);
804803
}
@@ -807,7 +806,6 @@ fn declare_intrinsic(ccx: &CrateContext, key: &str) -> Option<ValueRef> {
807806
if key == $name {
808807
let f = declare::declare_cfn(ccx, $name, Type::func(&[$($arg),*], &$ret),
809808
ccx.tcx().mk_nil());
810-
llvm::SetUnnamedAddr(f, false);
811809
ccx.intrinsics().borrow_mut().insert($name, f.clone());
812810
return Some(f);
813811
}

branches/auto/src/librustdoc/html/layout.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ r##"<!DOCTYPE html>
6262
6363
{before_content}
6464
65-
<nav class="sidebar">
65+
<section class="sidebar">
6666
{logo}
6767
{sidebar}
68-
</nav>
68+
</section>
6969
7070
<nav class="sub">
7171
<form class="search-form js-only">
@@ -83,12 +83,10 @@ r##"<!DOCTYPE html>
8383
8484
<section class="footer"></section>
8585
86-
<aside id="help" class="hidden">
86+
<div id="help" class="hidden">
8787
<div>
88-
<h1 class="hidden">Help</h1>
89-
9088
<div class="shortcuts">
91-
<h2>Keyboard Shortcuts</h2>
89+
<h1>Keyboard Shortcuts</h1>
9290
9391
<dl>
9492
<dt>?</dt>
@@ -105,7 +103,7 @@ r##"<!DOCTYPE html>
105103
</div>
106104
107105
<div class="infos">
108-
<h2>Search Tricks</h2>
106+
<h1>Search Tricks</h1>
109107
110108
<p>
111109
Prefix searches with a type followed by a colon (e.g.
@@ -125,7 +123,7 @@ r##"<!DOCTYPE html>
125123
</p>
126124
</div>
127125
</div>
128-
</aside>
126+
</div>
129127
130128
{after_content}
131129

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

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ h3.impl, h3.method, h4.method, h3.type, h4.type {
104104
h3.impl, h3.method, h3.type {
105105
margin-top: 15px;
106106
}
107-
h1, h2, h3, h4, .sidebar, a.source, .search-input, .content table :not(code)>a, .collapse-toggle {
107+
h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table :not(code)>a, .collapse-toggle {
108108
font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
109109
}
110110

@@ -189,16 +189,11 @@ nav.sub {
189189
padding: 0 10px;
190190
margin-bottom: 14px;
191191
}
192-
.block h2, .block h3 {
192+
.block h2 {
193193
margin-top: 0;
194194
margin-bottom: 8px;
195195
text-align: center;
196196
}
197-
.block ul, .block li {
198-
margin: 0;
199-
padding: 0;
200-
list-style: none;
201-
}
202197

203198
.block a {
204199
display: block;
@@ -386,7 +381,7 @@ nav.main .separator {
386381
nav.sum { text-align: right; }
387382
nav.sub form { display: inline; }
388383

389-
nav.sub, .content {
384+
nav, .content {
390385
margin-left: 230px;
391386
}
392387

@@ -412,7 +407,6 @@ a {
412407
.content span.method, .content a.method, .block a.current.method { color: #8c6067; }
413408
.content span.tymethod, .content a.tymethod, .block a.current.tymethod { color: #8c6067; }
414409
.content .fnname { color: #8c6067; }
415-
.block a.current.crate { font-weight: 500; }
416410

417411
.search-input {
418412
width: 100%;
@@ -495,7 +489,7 @@ body.blur > :not(#help) {
495489
}
496490
#help dd { margin: 5px 33px; }
497491
#help .infos { padding-left: 0; }
498-
#help h1, #help h2 { margin-top: 0; }
492+
#help h1 { margin-top: 0; }
499493
#help > div div {
500494
width: 50%;
501495
float: left;

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

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,7 @@
773773
if (rootPath === '../') {
774774
var sidebar = $('.sidebar');
775775
var div = $('<div>').attr('class', 'block crate');
776-
div.append($('<h3>').text('Crates'));
777-
var ul = $('<ul>').appendTo(div);
776+
div.append($('<h2>').text('Crates'));
778777

779778
var crates = [];
780779
for (var crate in rawSearchIndex) {
@@ -789,10 +788,9 @@
789788
}
790789
if (rawSearchIndex[crates[i]].items[0]) {
791790
var desc = rawSearchIndex[crates[i]].items[0][3];
792-
var link = $('<a>', {'href': '../' + crates[i] + '/index.html',
791+
div.append($('<a>', {'href': '../' + crates[i] + '/index.html',
793792
'title': plainSummaryLine(desc),
794-
'class': klass}).text(crates[i]);
795-
ul.append($('<li>').append(link));
793+
'class': klass}).text(crates[i]));
796794
}
797795
}
798796
sidebar.append(div);
@@ -811,8 +809,7 @@
811809
if (!filtered) { return; }
812810

813811
var div = $('<div>').attr('class', 'block ' + shortty);
814-
div.append($('<h3>').text(longty));
815-
var ul = $('<ul>').appendTo(div);
812+
div.append($('<h2>').text(longty));
816813

817814
for (var i = 0; i < filtered.length; ++i) {
818815
var item = filtered[i];
@@ -829,10 +826,9 @@
829826
} else {
830827
path = shortty + '.' + name + '.html';
831828
}
832-
var link = $('<a>', {'href': current.relpath + path,
829+
div.append($('<a>', {'href': current.relpath + path,
833830
'title': desc,
834-
'class': klass}).text(name);
835-
ul.append($('<li>').append(link));
831+
'class': klass}).text(name));
836832
}
837833
sidebar.append(div);
838834
}

branches/auto/src/libstd/ffi/c_str.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl CString {
209209
issue = "27769")]
210210
#[deprecated(since = "1.4.0", reason = "renamed to from_raw")]
211211
pub unsafe fn from_ptr(ptr: *const libc::c_char) -> CString {
212-
CString::from_raw(ptr as *mut _)
212+
CString::from_raw(ptr)
213213
}
214214

215215
/// Retakes ownership of a CString that was transferred to C.
@@ -219,7 +219,7 @@ impl CString {
219219
/// using the pointer.
220220
#[unstable(feature = "cstr_memory", reason = "recently added",
221221
issue = "27769")]
222-
pub unsafe fn from_raw(ptr: *mut libc::c_char) -> CString {
222+
pub unsafe fn from_raw(ptr: *const libc::c_char) -> CString {
223223
let len = libc::strlen(ptr) + 1; // Including the NUL byte
224224
let slice = slice::from_raw_parts(ptr, len as usize);
225225
CString { inner: mem::transmute(slice) }
@@ -237,7 +237,7 @@ impl CString {
237237
issue = "27769")]
238238
#[deprecated(since = "1.4.0", reason = "renamed to into_raw")]
239239
pub fn into_ptr(self) -> *const libc::c_char {
240-
self.into_raw() as *const _
240+
self.into_raw()
241241
}
242242

243243
/// Transfers ownership of the string to a C caller.
@@ -250,8 +250,11 @@ impl CString {
250250
/// Failure to call `from_ptr` will lead to a memory leak.
251251
#[unstable(feature = "cstr_memory", reason = "recently added",
252252
issue = "27769")]
253-
pub fn into_raw(self) -> *mut libc::c_char {
254-
Box::into_raw(self.inner) as *mut libc::c_char
253+
pub fn into_raw(self) -> *const libc::c_char {
254+
// It is important that the bytes be sized to fit - we need
255+
// the capacity to be determinable from the string length, and
256+
// shrinking to fit is the only way to be sure.
257+
Box::into_raw(self.inner) as *const libc::c_char
255258
}
256259

257260
/// Returns the contents of this `CString` as a slice of bytes.

branches/auto/src/libstd/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ pub mod builtin {
412412
#[macro_export]
413413
macro_rules! include_str { ($file:expr) => ({ /* compiler built-in */ }) }
414414

415-
/// Includes a file as a reference to a byte array.
415+
/// Includes a file as a byte slice.
416416
///
417-
/// This macro will yield an expression of type `&'static [u8; N]` which is
417+
/// This macro will yield an expression of type `&'static [u8]` which is
418418
/// the contents of the filename specified. The file is located relative to
419419
/// the current file (similarly to how modules are found),
420420
///

0 commit comments

Comments
 (0)