Skip to content

Commit 6a0a36b

Browse files
committed
---
yaml --- r: 232684 b: refs/heads/try c: a1b2deb h: refs/heads/master v: v3
1 parent f27baf6 commit 6a0a36b

File tree

142 files changed

+1903
-2203
lines changed

Some content is hidden

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

142 files changed

+1903
-2203
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: edeb4f1c86cbf6af8ef9874d4b3af50f721ea1b8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: fd7344c4fea081657fff75b9bd112adb22839890
4+
refs/heads/try: a1b2deb33b3d8f8e77567afbebdb4a3d27ee97ff
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/configure

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ 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"
605606
valopt arm-linux-androideabi-ndk "" "arm-linux-androideabi NDK standalone path"
606607
valopt aarch64-linux-android-ndk "" "aarch64-linux-android NDK standalone path"
607608
valopt release-channel "dev" "the name of the release channel to build"
@@ -1693,6 +1694,7 @@ putvar CFG_LIBDIR_RELATIVE
16931694
putvar CFG_DISABLE_MANAGE_SUBMODULES
16941695
putvar CFG_AARCH64_LINUX_ANDROID_NDK
16951696
putvar CFG_ARM_LINUX_ANDROIDEABI_NDK
1697+
putvar CFG_I686_LINUX_ANDROID_NDK
16961698
putvar CFG_MANDIR
16971699

16981700
# Avoid spurious warnings from clang by feeding it original source on
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# i686-linux-android configuration
2+
CC_i686-linux-android=$(CFG_I686_LINUX_ANDROID_NDK)/bin/i686-linux-android-gcc
3+
CXX_i686-linux-android=$(CFG_I686_LINUX_ANDROID_NDK)/bin/i686-linux-android-g++
4+
CPP_i686-linux-android=$(CFG_I686_LINUX_ANDROID_NDK)/bin/i686-linux-android-gcc -E
5+
AR_i686-linux-android=$(CFG_I686_LINUX_ANDROID_NDK)/bin/i686-linux-android-ar
6+
CFG_LIB_NAME_i686-linux-android=lib$(1).so
7+
CFG_STATIC_LIB_NAME_i686-linux-android=lib$(1).a
8+
CFG_LIB_GLOB_i686-linux-android=lib$(1)-*.so
9+
CFG_LIB_DSYM_GLOB_i686-linux-android=lib$(1)-*.dylib.dSYM
10+
CFG_JEMALLOC_CFLAGS_i686-linux-android := -D__i686__ -DANDROID -D__ANDROID__ $(CFLAGS)
11+
CFG_GCCISH_CFLAGS_i686-linux-android := -Wall -g -fPIC -D__i686__ -DANDROID -D__ANDROID__ $(CFLAGS)
12+
CFG_GCCISH_CXXFLAGS_i686-linux-android := -fno-rtti $(CXXFLAGS)
13+
CFG_GCCISH_LINK_FLAGS_i686-linux-android := -shared -fPIC -ldl -g -lm -lsupc++
14+
CFG_GCCISH_DEF_FLAG_i686-linux-android := -Wl,--export-dynamic,--dynamic-list=
15+
CFG_LLC_FLAGS_i686-linux-android :=
16+
CFG_INSTALL_NAME_i686-linux-android =
17+
CFG_EXE_SUFFIX_i686-linux-android :=
18+
CFG_WINDOWSY_i686-linux-android :=
19+
CFG_UNIXY_i686-linux-android := 1
20+
CFG_LDPATH_i686-linux-android :=
21+
CFG_RUN_i686-linux-android=
22+
CFG_RUN_TARG_i686-linux-android=
23+
RUSTC_FLAGS_i686-linux-android :=
24+
RUSTC_CROSS_FLAGS_i686-linux-android :=
25+
CFG_GNU_TRIPLE_i686-linux-android := i686-linux-android

branches/try/src/doc/trpl/glossary.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ let z = (8, 2, 6);
3838

3939
In the example above `x` and `y` have arity 2. `z` has arity 3.
4040

41-
### DST (Dynamically Sized Type)
42-
43-
A type without a statically known size or alignment. ([more info][link])
44-
45-
[link]: ../nomicon/exotic-sizes.html#dynamically-sized-types-(dsts)
46-
4741
### Expression
4842

4943
In computer programming, an expression is a combination of values, constants,

branches/try/src/liblibc/lib.rs

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,14 @@ pub mod types {
192192
/// C. Use the unit type `()` or omit the return type instead.
193193
///
194194
/// For LLVM to recognize the void pointer type and by extension
195-
/// functions like malloc(), we need to have it represented as i8*
196-
/// in LLVM bitcode. The enum used here ensures this. We need two
197-
/// variants, because the compiler complains about the `repr`
198-
/// attribute otherwise.
195+
/// functions like malloc(), we need to have it represented as i8* in
196+
/// LLVM bitcode. The enum used here ensures this and prevents misuse
197+
/// of the "raw" type by only having private variants.. We need two
198+
/// variants, because the compiler complains about the repr attribute
199+
/// otherwise.
199200
#[repr(u8)]
200201
pub enum c_void {
201-
#[doc(hidden)]
202202
__variant1,
203-
#[doc(hidden)]
204203
__variant2,
205204
}
206205

@@ -466,18 +465,19 @@ pub mod types {
466465
pub type off_t = i32;
467466
pub type dev_t = u32;
468467
pub type ino_t = u32;
468+
469469
pub type pid_t = i32;
470470
pub type uid_t = u32;
471471
pub type gid_t = u32;
472472
pub type useconds_t = u32;
473+
473474
pub type mode_t = u16;
474475
pub type ssize_t = i32;
475476
}
476-
#[cfg(any(target_arch = "x86",
477+
#[cfg(any(all(any(target_arch = "arm", target_arch = "x86"),
478+
not(target_os = "android")),
477479
target_arch = "le32",
478-
target_arch = "powerpc",
479-
all(any(target_arch = "arm", target_arch = "x86"),
480-
not(target_os = "android"))))]
480+
target_arch = "powerpc"))]
481481
pub mod posix01 {
482482
use types::os::arch::c95::{c_short, c_long, time_t};
483483
use types::os::arch::posix88::{dev_t, gid_t, ino_t};
@@ -523,12 +523,13 @@ pub mod types {
523523
pub __size: [u32; 9]
524524
}
525525
}
526+
526527
#[cfg(all(any(target_arch = "arm", target_arch = "x86"),
527-
target_os = "android"))]
528+
target_os = "android"))]
528529
pub mod posix01 {
529-
use types::os::arch::c95::{c_uchar, c_uint, c_ulong, time_t};
530+
use types::os::arch::c95::{c_uchar, c_uint, c_ulong, c_long, time_t};
530531
use types::os::arch::c99::{c_longlong, c_ulonglong};
531-
use types::os::arch::posix88::{uid_t, gid_t, ino_t};
532+
use types::os::arch::posix88::{uid_t, gid_t};
532533

533534
pub type nlink_t = u16;
534535
pub type blksize_t = u32;
@@ -538,15 +539,15 @@ pub mod types {
538539
#[derive(Copy, Clone)] pub struct stat {
539540
pub st_dev: c_ulonglong,
540541
pub __pad0: [c_uchar; 4],
541-
pub __st_ino: ino_t,
542+
pub __st_ino: c_long,
542543
pub st_mode: c_uint,
543544
pub st_nlink: c_uint,
544545
pub st_uid: uid_t,
545546
pub st_gid: gid_t,
546547
pub st_rdev: c_ulonglong,
547548
pub __pad3: [c_uchar; 4],
548549
pub st_size: c_longlong,
549-
pub st_blksize: blksize_t,
550+
pub st_blksize: c_ulong,
550551
pub st_blocks: c_ulonglong,
551552
pub st_atime: time_t,
552553
pub st_atime_nsec: c_ulong,
@@ -568,6 +569,7 @@ pub mod types {
568569
pub __size: [u32; 9]
569570
}
570571
}
572+
571573
#[cfg(any(target_arch = "mips",
572574
target_arch = "mipsel"))]
573575
pub mod posix01 {
@@ -994,7 +996,12 @@ pub mod types {
994996
pub mod posix88 {
995997
pub type off_t = i64;
996998
pub type dev_t = u32;
999+
1000+
#[cfg(target_os = "android")]
1001+
pub type ino_t = u64;
1002+
#[cfg(not(target_os = "android"))]
9971003
pub type ino_t = u32;
1004+
9981005
pub type pid_t = i32;
9991006
pub type uid_t = u32;
10001007
pub type gid_t = u32;

branches/try/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/try/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/try/src/librustc/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,11 @@ pub mod middle {
112112
pub mod check_static_recursion;
113113
pub mod check_loop;
114114
pub mod check_match;
115-
pub mod check_no_asm;
116115
pub mod check_rvalues;
117116
pub mod const_eval;
118117
pub mod dataflow;
119118
pub mod dead;
120119
pub mod def;
121-
pub mod def_id;
122120
pub mod dependency_format;
123121
pub mod effect;
124122
pub mod entry;

0 commit comments

Comments
 (0)