Skip to content

Commit b43b0c5

Browse files
author
Dave Huseby
committed
---
yaml --- r: 236175 b: refs/heads/stable c: 6109d05 h: refs/heads/master i: 236173: e65da19 236171: f417168 236167: 0787869 236159: 61b581b v: v3
1 parent dce984e commit b43b0c5

File tree

10 files changed

+17
-60
lines changed

10 files changed

+17
-60
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: 111fa82f35b45f5ce97cfcae64a349ceac46f3e6
32+
refs/heads/stable: 6109d0567d5b72c70762e5bac00497ed30adf1b9
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/doc/tarpl/repr-rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ type's size is a multiple of its alignment. For instance:
3131
```rust
3232
struct A {
3333
a: u8,
34-
b: u32,
35-
c: u16,
34+
c: u32,
35+
b: u16,
3636
}
3737
```
3838

branches/stable/src/liblibc/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ pub mod types {
10021002
}
10031003
pub mod posix01 {
10041004
use types::common::c95::{c_void};
1005-
use types::common::c99::{uint32_t, int32_t};
1005+
use types::common::c99::{uint8_t, uint32_t, int32_t};
10061006
use types::os::arch::c95::{c_long, time_t};
10071007
use types::os::arch::posix88::{dev_t, gid_t, ino_t};
10081008
use types::os::arch::posix88::{mode_t, off_t};
@@ -1096,7 +1096,7 @@ pub mod types {
10961096
}
10971097
pub mod posix01 {
10981098
use types::common::c95::{c_void};
1099-
use types::common::c99::{uint32_t, int32_t};
1099+
use types::common::c99::{uint8_t, uint32_t, int32_t};
11001100
use types::os::arch::c95::{c_long, time_t};
11011101
use types::os::arch::posix88::{dev_t, gid_t, ino_t};
11021102
use types::os::arch::posix88::{mode_t, off_t};

branches/stable/src/librustc_trans/back/msvc/mod.rs

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ pub fn link_exe_cmd(sess: &Session) -> Command {
206206
return max_key
207207
}
208208

209-
fn get_windows_sdk_path() -> Option<(PathBuf, usize, Option<OsString>)> {
209+
fn get_windows_sdk_path() -> Option<(PathBuf, usize)> {
210210
let key = r"SOFTWARE\Microsoft\Microsoft SDKs\Windows";
211211
let key = LOCAL_MACHINE.open(key.as_ref());
212212
let (n, k) = match key.ok().as_ref().and_then(max_version) {
@@ -217,29 +217,28 @@ pub fn link_exe_cmd(sess: &Session) -> Command {
217217
let major = parts.next().unwrap().parse::<usize>().unwrap();
218218
let _minor = parts.next().unwrap().parse::<usize>().unwrap();
219219
k.query_str("InstallationFolder").ok().map(|folder| {
220-
let ver = k.query_str("ProductVersion");
221-
(PathBuf::from(folder), major, ver.ok())
220+
(PathBuf::from(folder), major)
222221
})
223222
}
224223

225224
fn get_windows_sdk_lib_path(sess: &Session) -> Option<PathBuf> {
226-
let (mut path, major, ver) = match get_windows_sdk_path() {
225+
let (mut path, major) = match get_windows_sdk_path() {
227226
Some(p) => p,
228227
None => return None,
229228
};
230229
path.push("Lib");
231230
if major <= 7 {
232231
// In Windows SDK 7.x, x86 libraries are directly in the Lib folder,
233-
// x64 libraries are inside, and it's not necessary to link against
232+
// x64 libraries are inside, and it's not necessary to link agains
234233
// the SDK 7.x when targeting ARM or other architectures.
235234
let x86 = match &sess.target.target.arch[..] {
236235
"x86" => true,
237236
"x86_64" => false,
238237
_ => return None,
239238
};
240239
Some(if x86 {path} else {path.join("x64")})
241-
} else if major <= 8 {
242-
// Windows SDK 8.x installs libraries in a folder whose names
240+
} else {
241+
// Windows SDK 8.x installes libraries in a folder whose names
243242
// depend on the version of the OS you're targeting. By default
244243
// choose the newest, which usually corresponds to the version of
245244
// the OS you've installed the SDK on.
@@ -252,42 +251,14 @@ pub fn link_exe_cmd(sess: &Session) -> Command {
252251
}).map(|path| {
253252
path.join("um").join(extra)
254253
})
255-
} else if let Some(mut ver) = ver {
256-
// Windows SDK 10 splits the libraries into architectures the same
257-
// as Windows SDK 8.x, except for the addition of arm64.
258-
// Additionally, the SDK 10 is split by Windows 10 build numbers
259-
// rather than the OS version like the SDK 8.x does.
260-
let extra = match windows_sdk_v10_subdir(sess) {
261-
Some(e) => e,
262-
None => return None,
263-
};
264-
// To get the correct directory we need to get the Windows SDK 10
265-
// version, and so far it looks like the "ProductVersion" of the SDK
266-
// corresponds to the folder name that the libraries are located in
267-
// except that the folder contains an extra ".0". For now just
268-
// append a ".0" to look for find the directory we're in. This logic
269-
// will likely want to be refactored one day.
270-
ver.push(".0");
271-
let p = path.join(ver).join("um").join(extra);
272-
fs::metadata(&p).ok().map(|_| p)
273-
} else { None }
274-
}
275-
276-
fn windows_sdk_v8_subdir(sess: &Session) -> Option<&'static str> {
277-
match &sess.target.target.arch[..] {
278-
"x86" => Some("x86"),
279-
"x86_64" => Some("x64"),
280-
"arm" => Some("arm"),
281-
_ => return None,
282254
}
283255
}
284256

285-
fn windows_sdk_v10_subdir(sess: &Session) -> Option<&'static str> {
257+
fn windows_sdk_v8_subdir(sess: &Session) -> Option<&'static str> {
286258
match &sess.target.target.arch[..] {
287259
"x86" => Some("x86"),
288260
"x86_64" => Some("x64"),
289261
"arm" => Some("arm"),
290-
"aarch64" => Some("arm64"), // FIXME - Check if aarch64 is correct
291262
_ => return None,
292263
}
293264
}

branches/stable/src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4610,7 +4610,7 @@ impl<'a> Parser<'a> {
46104610
None
46114611
};
46124612

4613-
if opt_trait.is_some() && try!(self.eat(&token::DotDot) ){
4613+
if try!(self.eat(&token::DotDot) ){
46144614
if generics.is_parameterized() {
46154615
self.span_err(impl_span, "default trait implementations are not \
46164616
allowed to have generics");

branches/stable/src/snapshots.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
S 2015-07-26 a5c12f4
22
bitrig-x86_64 8734eb41ffbe6ddc1120aa2910db4162ec9cf270
3+
freebsd-i386 2fee22adec101e2f952a5548fd1437ce1bd8d26f
34
freebsd-x86_64 bc50b0f8d7f6d62f4f5ffa136f5387f5bf6524fd
45
linux-i386 3459275cdf3896f678e225843fa56f0d9fdbabe8
56
linux-x86_64 e451e3bd6e5fcef71e41ae6f3da9fb1cf0e13a0c

branches/stable/src/test/parse-fail/empty-impl-semicolon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010

1111
// compile-flags: -Z parse-only
1212

13-
impl Foo; //~ ERROR expected one of `(`, `+`, `::`, `<`, `for`, `where`, or `{`, found `;`
13+
impl Foo; //~ ERROR expected one of `(`, `+`, `..`, `::`, `<`, `for`, `where`, or `{`, found `;`

branches/stable/src/test/parse-fail/issue-27255.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

branches/stable/src/test/parse-fail/multitrait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct S {
1515
}
1616

1717
impl Cmp, ToString for S {
18-
//~^ ERROR: expected one of `(`, `+`, `::`, `<`, `for`, `where`, or `{`, found `,`
18+
//~^ ERROR: expected one of `(`, `+`, `..`, `::`, `<`, `for`, `where`, or `{`, found `,`
1919
fn eq(&&other: S) { false }
2020
fn to_string(&self) -> String { "hi".to_string() }
2121
}

branches/stable/src/test/parse-fail/trait-bounds-not-on-impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct Bar;
1717

1818
impl Foo + Owned for Bar {
1919
//~^ ERROR not a trait
20-
//~^^ ERROR expected one of `where` or `{`, found `Bar`
20+
//~^^ ERROR expected one of `..`, `where`, or `{`, found `Bar`
2121
}
2222

2323
fn main() { }

0 commit comments

Comments
 (0)