Skip to content

Commit 1e51c3c

Browse files
committed
---
yaml --- r: 227742 b: refs/heads/try c: 6f7b4ce h: refs/heads/master v: v3
1 parent 53008db commit 1e51c3c

File tree

9 files changed

+371
-349
lines changed

9 files changed

+371
-349
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 4e2a898afcd890d44a45bd229dee8b9db8d330cc
4+
refs/heads/try: 6f7b4ce65a286aa2a99d6028ce4b08889907a0c5
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc/middle/dead.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ impl<'a, 'tcx> MarkSymbolVisitor<'a, 'tcx> {
172172
};
173173
let fields = ty::lookup_struct_fields(self.tcx, id);
174174
for pat in pats {
175+
if let ast::PatWild(ast::PatWildSingle) = pat.node.pat.node {
176+
continue;
177+
}
175178
let field_id = fields.iter()
176179
.find(|field| field.name == pat.node.ident.name).unwrap().id;
177180
self.live_symbols.insert(field_id.node);

branches/try/src/libstd/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@
148148
#![feature(vec_push_all)]
149149
#![feature(wrapping)]
150150
#![feature(zero_one)]
151+
#![cfg_attr(all(unix, not(target_os = "macos"), not(target_os = "ios")),
152+
feature(num_bits_bytes))]
151153
#![cfg_attr(windows, feature(str_utf16))]
152154
#![cfg_attr(test, feature(float_from_str_radix, range_inclusive, float_extras))]
153155
#![cfg_attr(test, feature(test, rustc_private, float_consts))]

branches/try/src/libstd/process.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,24 @@ mod tests {
769769
}
770770
}
771771

772+
#[cfg(all(unix, not(target_os="android")))]
773+
pub fn pwd_cmd() -> Command {
774+
Command::new("pwd")
775+
}
776+
#[cfg(target_os="android")]
777+
pub fn pwd_cmd() -> Command {
778+
let mut cmd = Command::new("/system/bin/sh");
779+
cmd.arg("-c").arg("pwd");
780+
cmd
781+
}
782+
783+
#[cfg(windows)]
784+
pub fn pwd_cmd() -> Command {
785+
let mut cmd = Command::new("cmd");
786+
cmd.arg("/c").arg("cd");
787+
cmd
788+
}
789+
772790
#[cfg(all(unix, not(target_os="android")))]
773791
pub fn env_cmd() -> Command {
774792
Command::new("env")

0 commit comments

Comments
 (0)