Skip to content

Commit 2df380a

Browse files
committed
---
yaml --- r: 212727 b: refs/heads/tmp c: a9899a7 h: refs/heads/master i: 212725: 8c34c2c 212723: 1087256 212719: 3a81aa8 v: v3
1 parent e647b6d commit 2df380a

File tree

9 files changed

+17
-35
lines changed

9 files changed

+17
-35
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3232
refs/heads/beta: 4efc4ec178f6ddf3c8cd268b011f3a04056f9d16
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35-
refs/heads/tmp: 496fe4d51a5b44f6072f24b016f8f1199c101448
35+
refs/heads/tmp: a9899a73533c542efcc797405e3c09882da9d7fa
3636
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3737
refs/tags/homu-tmp: bea1c4a78e5233ea6f85a2028a26e08c26635fca
3838
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/mk/cfg/x86_64-pc-windows-msvc.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ CFG_STATIC_LIB_NAME_x86_64-pc-windows-msvc=$(1).lib
99
CFG_LIB_GLOB_x86_64-pc-windows-msvc=$(1)-*.dll
1010
CFG_LIB_DSYM_GLOB_x86_64-pc-windows-msvc=$(1)-*.dylib.dSYM
1111
CFG_JEMALLOC_CFLAGS_x86_64-pc-windows-msvc :=
12-
CFG_GCCISH_CFLAGS_x86_64-pc-windows-msvc := -MD
13-
CFG_GCCISH_CXXFLAGS_x86_64-pc-windows-msvc := -MD
12+
CFG_GCCISH_CFLAGS_x86_64-pc-windows-msvc :=
13+
CFG_GCCISH_CXXFLAGS_x86_64-pc-windows-msvc :=
1414
CFG_GCCISH_LINK_FLAGS_x86_64-pc-windows-msvc :=
1515
CFG_GCCISH_DEF_FLAG_x86_64-pc-windows-msvc :=
1616
CFG_LLC_FLAGS_x86_64-pc-windows-msvc :=

branches/tmp/src/doc/reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,7 @@ Traits can include default implementations of methods, as in:
13671367
```
13681368
trait Foo {
13691369
fn bar(&self);
1370+
13701371
fn baz(&self) { println!("We called baz."); }
13711372
}
13721373
```

branches/tmp/src/doc/trpl/const-and-static.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,7 @@ Almost always, if you can choose between the two, choose `const`. It’s pretty
7878
rare that you actually want a memory location associated with your constant,
7979
and using a const allows for optimizations like constant propagation not only
8080
in your crate but downstream crates.
81+
82+
A const can be thought of as a `#define` in C: it has metadata overhead but it
83+
has no runtime overhead. “Should I use a #define or a static in C,” is largely
84+
the same question as whether you should use a const or a static in Rust.

branches/tmp/src/doc/trpl/ffi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,10 @@ Note that frameworks are only available on OSX targets.
342342
The different `kind` values are meant to differentiate how the native library
343343
participates in linkage. From a linkage perspective, the rust compiler creates
344344
two flavors of artifacts: partial (rlib/staticlib) and final (dylib/binary).
345-
Native dynamic libraries and frameworks are propagated to the final artifact
346-
boundary, while static libraries are not propagated at all.
345+
Native dynamic library and framework dependencies are propagated to the final
346+
artifact boundary, while static library dependencies are not propagated at
347+
all, because the static libraries are integrated directly into the subsequent
348+
artifact.
347349
348350
A few examples of how this model can be used are:
349351

branches/tmp/src/doc/trpl/patterns.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -154,31 +154,6 @@ match x {
154154

155155
This prints `Got an int!`.
156156

157-
If you’re using `if` with multiple patterns, the `if` applies to both sides:
158-
159-
```rust
160-
let x = 4;
161-
let y = false;
162-
163-
match x {
164-
4 | 5 if y => println!("yes"),
165-
_ => println!("no"),
166-
}
167-
```
168-
169-
This prints `no`, because the `if` applies to the whole of `4 | 5`, and not to
170-
just the `5`, In other words, the the precedence of `if` behaves like this:
171-
172-
```text
173-
(4 | 5) if y => ...
174-
```
175-
176-
not this:
177-
178-
```text
179-
4 | (5 if y) => ...
180-
```
181-
182157
# ref and ref mut
183158

184159
If you want to get a [reference][ref], use the `ref` keyword:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ As it turns out, there are rules.
151151

152152
Here’s the rules about borrowing in Rust:
153153

154-
First, any borrow must last for a scope no greater than that of the owner.
155-
Second, you may have one or the other of these two kinds of borrows, but not
156-
both at the same time:
154+
First, any borrow must last for a smaller scope than the owner. Second, you may
155+
have one or the other of these two kinds of borrows, but not both at the same
156+
time:
157157

158158
* one or more references (`&T`) to a resource.
159159
* exactly one mutable reference (`&mut T`)

branches/tmp/src/librustc/middle/traits/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ implement `Convert` like so:
120120

121121
```rust
122122
impl Convert<uint> for int { ... } // int -> uint
123-
impl Convert<int> for uint { ... } // uint -> int
123+
impl Convert<int> for uint { ... } // uint -> uint
124124
```
125125

126126
Now imagine there is some code like the following:

branches/tmp/src/libstd/sys/common/backtrace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub const HEX_WIDTH: usize = 10;
2727
// 2. For each element of the path, emit the length plus the element
2828
// 3. End the path with "E"
2929
//
30-
// For example, "_ZN4testE" => "test" and "_ZN3foo3barE" => "foo::bar".
30+
// For example, "_ZN4testE" => "test" and "_ZN3foo3bar" => "foo::bar".
3131
//
3232
// We're the ones printing our backtraces, so we can't rely on anything else to
3333
// demangle our symbols. It's *much* nicer to look at demangled symbols, so

0 commit comments

Comments
 (0)