Skip to content

Commit 3a4fb82

Browse files
committed
Auto merge of #28316 - Manishearth:rollup, r=Manishearth
- Successful merges: #28281, #28283, #28289, #28294, #28295, #28305 - Failed merges:
2 parents 7c8ae60 + 519a186 commit 3a4fb82

File tree

5 files changed

+10
-108
lines changed

5 files changed

+10
-108
lines changed

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
<richgel99@gmail.com>. All uses of this file are

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][https://en.wikipedia.org/wiki/Hygienic_macro]. Each macro expansion
316+
This works because Rust has a [hygienic macro system]. 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

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

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 live as long as the resource they refer to. Rust will check the
302-
scopes of your references to ensure that this is true.
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.
303303

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

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 byte slice.
415+
/// Includes a file as a reference to a byte array.
416416
///
417-
/// This macro will yield an expression of type `&'static [u8]` which is
417+
/// This macro will yield an expression of type `&'static [u8; N]` 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)