Skip to content

Commit ecce6ec

Browse files
committed
---
yaml --- r: 233690 b: refs/heads/beta c: 6de7f60 h: refs/heads/master v: v3
1 parent 6e35de5 commit ecce6ec

File tree

138 files changed

+1808
-2005
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+1808
-2005
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 656c3acdebb6334b82e3e11251dca6d43406e269
26+
refs/heads/beta: 6de7f609ddc6027b4148b7a458f9f766b44cd09f
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 370fe2786109360f7c35b8ba552b83b773dd71d6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/configure

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,6 @@ valopt python "" "set path to python"
602602
valopt jemalloc-root "" "set directory where libjemalloc_pic.a is located"
603603
valopt build "${DEFAULT_BUILD}" "GNUs ./configure syntax LLVM build triple"
604604
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path (deprecated)"
605-
valopt i686-linux-android-ndk "" "i686-linux-android NDK standalone path"
606605
valopt arm-linux-androideabi-ndk "" "arm-linux-androideabi NDK standalone path"
607606
valopt aarch64-linux-android-ndk "" "aarch64-linux-android NDK standalone path"
608607
valopt release-channel "dev" "the name of the release channel to build"
@@ -1694,7 +1693,6 @@ putvar CFG_LIBDIR_RELATIVE
16941693
putvar CFG_DISABLE_MANAGE_SUBMODULES
16951694
putvar CFG_AARCH64_LINUX_ANDROID_NDK
16961695
putvar CFG_ARM_LINUX_ANDROIDEABI_NDK
1697-
putvar CFG_I686_LINUX_ANDROID_NDK
16981696
putvar CFG_MANDIR
16991697

17001698
# Avoid spurious warnings from clang by feeding it original source on

branches/beta/mk/cfg/i686-linux-android.mk

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

branches/beta/src/liblibc/lib.rs

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ pub use types::os::arch::extra::*;
102102
pub use consts::os::c95::*;
103103
pub use consts::os::posix88::*;
104104
pub use consts::os::posix01::*;
105+
pub use consts::os::posix08::*;
105106
pub use consts::os::bsd44::*;
106107
pub use consts::os::extra::*;
107108

@@ -466,19 +467,18 @@ pub mod types {
466467
pub type off_t = i32;
467468
pub type dev_t = u32;
468469
pub type ino_t = u32;
469-
470470
pub type pid_t = i32;
471471
pub type uid_t = u32;
472472
pub type gid_t = u32;
473473
pub type useconds_t = u32;
474-
475474
pub type mode_t = u16;
476475
pub type ssize_t = i32;
477476
}
478-
#[cfg(any(all(any(target_arch = "arm", target_arch = "x86"),
479-
not(target_os = "android")),
477+
#[cfg(any(target_arch = "x86",
480478
target_arch = "le32",
481-
target_arch = "powerpc"))]
479+
target_arch = "powerpc",
480+
all(any(target_arch = "arm", target_arch = "x86"),
481+
not(target_os = "android"))))]
482482
pub mod posix01 {
483483
use types::os::arch::c95::{c_short, c_long, time_t};
484484
use types::os::arch::posix88::{dev_t, gid_t, ino_t};
@@ -524,13 +524,12 @@ pub mod types {
524524
pub __size: [u32; 9]
525525
}
526526
}
527-
528527
#[cfg(all(any(target_arch = "arm", target_arch = "x86"),
529-
target_os = "android"))]
528+
target_os = "android"))]
530529
pub mod posix01 {
531-
use types::os::arch::c95::{c_uchar, c_uint, c_ulong, c_long, time_t};
530+
use types::os::arch::c95::{c_uchar, c_uint, c_ulong, time_t};
532531
use types::os::arch::c99::{c_longlong, c_ulonglong};
533-
use types::os::arch::posix88::{uid_t, gid_t};
532+
use types::os::arch::posix88::{uid_t, gid_t, ino_t};
534533

535534
pub type nlink_t = u16;
536535
pub type blksize_t = u32;
@@ -540,15 +539,15 @@ pub mod types {
540539
#[derive(Copy, Clone)] pub struct stat {
541540
pub st_dev: c_ulonglong,
542541
pub __pad0: [c_uchar; 4],
543-
pub __st_ino: c_long,
542+
pub __st_ino: ino_t,
544543
pub st_mode: c_uint,
545544
pub st_nlink: c_uint,
546545
pub st_uid: uid_t,
547546
pub st_gid: gid_t,
548547
pub st_rdev: c_ulonglong,
549548
pub __pad3: [c_uchar; 4],
550549
pub st_size: c_longlong,
551-
pub st_blksize: c_ulong,
550+
pub st_blksize: blksize_t,
552551
pub st_blocks: c_ulonglong,
553552
pub st_atime: time_t,
554553
pub st_atime_nsec: c_ulong,
@@ -570,7 +569,6 @@ pub mod types {
570569
pub __size: [u32; 9]
571570
}
572571
}
573-
574572
#[cfg(any(target_arch = "mips",
575573
target_arch = "mipsel"))]
576574
pub mod posix01 {
@@ -3611,6 +3609,8 @@ pub mod consts {
36113609
pub const RUSAGE_THREAD: c_int = 1;
36123610
}
36133611
pub mod posix08 {
3612+
use types::os::arch::c95::c_int;
3613+
pub const O_CLOEXEC: c_int = 0x80000;
36143614
}
36153615
#[cfg(any(target_arch = "arm",
36163616
target_arch = "aarch64",
@@ -4270,7 +4270,15 @@ pub mod consts {
42704270
pub const RUSAGE_CHILDREN: c_int = -1;
42714271
pub const RUSAGE_THREAD: c_int = 1;
42724272
}
4273+
#[cfg(target_os = "freebsd")]
42734274
pub mod posix08 {
4275+
use types::os::arch::c95::c_int;
4276+
pub const O_CLOEXEC: c_int = 0x100000;
4277+
}
4278+
#[cfg(target_os = "dragonfly")]
4279+
pub mod posix08 {
4280+
use types::os::arch::c95::c_int;
4281+
pub const O_CLOEXEC: c_int = 0x20000;
42744282
}
42754283
pub mod bsd44 {
42764284
use types::os::arch::c95::c_int;
@@ -4713,7 +4721,15 @@ pub mod consts {
47134721
pub const RUSAGE_CHILDREN: c_int = -1;
47144722
pub const RUSAGE_THREAD: c_int = 1;
47154723
}
4724+
#[cfg(any(target_os = "bitrig", target_os = "openbsd"))]
47164725
pub mod posix08 {
4726+
use types::os::arch::c95::c_int;
4727+
pub const O_CLOEXEC: c_int = 0x10000;
4728+
}
4729+
#[cfg(target_os = "netbsd")]
4730+
pub mod posix08 {
4731+
use types::os::arch::c95::c_int;
4732+
pub const O_CLOEXEC: c_int = 0x400000;
47174733
}
47184734
pub mod bsd44 {
47194735
use types::os::arch::c95::c_int;
@@ -5151,6 +5167,8 @@ pub mod consts {
51515167
pub const RUSAGE_THREAD: c_int = 1;
51525168
}
51535169
pub mod posix08 {
5170+
use types::os::arch::c95::c_int;
5171+
pub const O_CLOEXEC: c_int = 0x1000000;
51545172
}
51555173
pub mod bsd44 {
51565174
use types::os::arch::c95::c_int;

branches/beta/src/librustc/ast_map/blocks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl<'a> FnLikeNode<'a> {
191191
visit::FkItemFn(p.ident, p.generics, p.unsafety, p.constness, p.abi, p.vis)
192192
};
193193
let closure = |_: ClosureParts| {
194-
visit::FkClosure
194+
visit::FkFnBlock
195195
};
196196
let method = |_, ident, sig: &'a ast::MethodSig, vis, _, _| {
197197
visit::FkMethod(ident, sig, vis)

branches/beta/src/librustc/ast_map/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use self::MapEntry::*;
1414

1515
use metadata::inline::InlinedItem;
1616
use metadata::inline::InlinedItem as II;
17-
use middle::def_id::DefId;
1817
use syntax::abi;
1918
use syntax::ast::*;
2019
use syntax::ast_util;
@@ -379,7 +378,7 @@ impl<'ast> Map<'ast> {
379378
match self.find_entry(parent) {
380379
Some(RootInlinedParent(&InlinedParent {ii: II::TraitItem(did, _), ..})) => did,
381380
Some(RootInlinedParent(&InlinedParent {ii: II::ImplItem(did, _), ..})) => did,
382-
_ => DefId::local(parent)
381+
_ => ast_util::local_def(parent)
383382
}
384383
}
385384

@@ -592,7 +591,7 @@ impl<'ast> Map<'ast> {
592591
}
593592

594593
pub fn def_id_span(&self, def_id: DefId, fallback: Span) -> Span {
595-
if def_id.is_local() {
594+
if def_id.krate == LOCAL_CRATE {
596595
self.opt_span(def_id.node).unwrap_or(fallback)
597596
} else {
598597
fallback

branches/beta/src/librustc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ pub mod middle {
118118
pub mod dataflow;
119119
pub mod dead;
120120
pub mod def;
121-
pub mod def_id;
122121
pub mod dependency_format;
123122
pub mod effect;
124123
pub mod entry;

0 commit comments

Comments
 (0)