Skip to content

Commit 2c2c950

Browse files
committed
---
yaml --- r: 228542 b: refs/heads/try c: ac33f15 h: refs/heads/master v: v3
1 parent ec13f9d commit 2c2c950

Some content is hidden

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

62 files changed

+278
-988
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: 238765e1eb9dc1bd6ba4cc064b37f57207426e84
4+
refs/heads/try: ac33f1572bc67c028034a6c39929a500bd8ca5a9
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: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,17 @@ envopt() {
323323
fi
324324
}
325325

326+
enable_if_not_disabled() {
327+
local OP=$1
328+
local UOP=$(echo $OP | tr '[:lower:]' '[:upper:]' | tr '\-' '\_')
329+
local ENAB_V="CFG_ENABLE_$UOP"
330+
local EXPLICITLY_DISABLED="CFG_DISABLE_${UOP}_PROVIDED"
331+
eval VV=\$$EXPLICITLY_DISABLED
332+
if [ -z "$VV" ]; then
333+
eval $ENAB_V=1
334+
fi
335+
}
336+
326337
to_llvm_triple() {
327338
case $1 in
328339
i686-w64-mingw32) echo i686-pc-windows-gnu ;;
@@ -671,10 +682,12 @@ if [ -n "$CFG_ENABLE_DEBUG" ]; then
671682
CFG_DISABLE_OPTIMIZE=1
672683
CFG_DISABLE_OPTIMIZE_CXX=1
673684
fi
674-
CFG_ENABLE_DEBUG_ASSERTIONS=1
675-
CFG_ENABLE_DEBUG_JEMALLOC=1
676-
CFG_ENABLE_DEBUGINFO=1
677-
CFG_ENABLE_LLVM_ASSERTIONS=1
685+
686+
# Set following variables to 1 unless setting already provided
687+
enable_if_not_disabled debug-assertions
688+
enable_if_not_disabled debug-jemalloc
689+
enable_if_not_disabled debuginfo
690+
enable_if_not_disabled llvm-assertions
678691
fi
679692

680693
# OK, now write the debugging options

branches/try/src/libcore/atomic.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ use intrinsics;
7878
use cell::UnsafeCell;
7979

8080
use default::Default;
81-
use fmt;
8281

8382
/// A boolean type which can be safely shared between threads.
8483
#[stable(feature = "rust1", since = "1.0.0")]
@@ -1090,23 +1089,3 @@ pub fn fence(order: Ordering) {
10901089
}
10911090
}
10921091
}
1093-
1094-
macro_rules! impl_Debug {
1095-
($($t:ident)*) => ($(
1096-
#[stable(feature = "atomic_debug", since = "1.3.0")]
1097-
impl fmt::Debug for $t {
1098-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1099-
f.debug_tuple(stringify!($t)).field(&self.load(Ordering::SeqCst)).finish()
1100-
}
1101-
}
1102-
)*);
1103-
}
1104-
1105-
impl_Debug!{ AtomicUsize AtomicIsize AtomicBool }
1106-
1107-
#[stable(feature = "atomic_debug", since = "1.3.0")]
1108-
impl<T> fmt::Debug for AtomicPtr<T> {
1109-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1110-
f.debug_tuple("AtomicPtr").field(&self.load(Ordering::SeqCst)).finish()
1111-
}
1112-
}

branches/try/src/libcore/fmt/num.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
1313
// FIXME: #6220 Implement floating point formatting
1414

15+
#![allow(unsigned_negation)]
16+
1517
use prelude::*;
1618

1719
use fmt;

branches/try/src/libcore/ops.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ pub trait Neg {
517517
macro_rules! neg_impl_core {
518518
($id:ident => $body:expr, $($t:ty)*) => ($(
519519
#[stable(feature = "rust1", since = "1.0.0")]
520+
#[allow(unsigned_negation)]
520521
impl Neg for $t {
521522
#[stable(feature = "rust1", since = "1.0.0")]
522523
type Output = $t;

branches/try/src/libcore/str/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -636,10 +636,10 @@ impl<'a, P: Pattern<'a>> SplitInternal<'a, P> {
636636

637637
generate_pattern_iterators! {
638638
forward:
639-
/// Created with the method `.split()`.
639+
#[doc="Created with the method `.split()`."]
640640
struct Split;
641641
reverse:
642-
/// Created with the method `.rsplit()`.
642+
#[doc="Created with the method `.rsplit()`."]
643643
struct RSplit;
644644
stability:
645645
#[stable(feature = "rust1", since = "1.0.0")]
@@ -650,10 +650,10 @@ generate_pattern_iterators! {
650650

651651
generate_pattern_iterators! {
652652
forward:
653-
/// Created with the method `.split_terminator()`.
653+
#[doc="Created with the method `.split_terminator()`."]
654654
struct SplitTerminator;
655655
reverse:
656-
/// Created with the method `.rsplit_terminator()`.
656+
#[doc="Created with the method `.rsplit_terminator()`."]
657657
struct RSplitTerminator;
658658
stability:
659659
#[stable(feature = "rust1", since = "1.0.0")]
@@ -696,10 +696,10 @@ impl<'a, P: Pattern<'a>> SplitNInternal<'a, P> {
696696

697697
generate_pattern_iterators! {
698698
forward:
699-
/// Created with the method `.splitn()`.
699+
#[doc="Created with the method `.splitn()`."]
700700
struct SplitN;
701701
reverse:
702-
/// Created with the method `.rsplitn()`.
702+
#[doc="Created with the method `.rsplitn()`."]
703703
struct RSplitN;
704704
stability:
705705
#[stable(feature = "rust1", since = "1.0.0")]
@@ -730,10 +730,10 @@ impl<'a, P: Pattern<'a>> MatchIndicesInternal<'a, P> {
730730

731731
generate_pattern_iterators! {
732732
forward:
733-
/// Created with the method `.match_indices()`.
733+
#[doc="Created with the method `.match_indices()`."]
734734
struct MatchIndices;
735735
reverse:
736-
/// Created with the method `.rmatch_indices()`.
736+
#[doc="Created with the method `.rmatch_indices()`."]
737737
struct RMatchIndices;
738738
stability:
739739
#[unstable(feature = "str_match_indices",
@@ -771,10 +771,10 @@ impl<'a, P: Pattern<'a>> MatchesInternal<'a, P> {
771771

772772
generate_pattern_iterators! {
773773
forward:
774-
/// Created with the method `.matches()`.
774+
#[doc="Created with the method `.matches()`."]
775775
struct Matches;
776776
reverse:
777-
/// Created with the method `.rmatches()`.
777+
#[doc="Created with the method `.rmatches()`."]
778778
struct RMatches;
779779
stability:
780780
#[stable(feature = "str_matches", since = "1.2.0")]

branches/try/src/libcoretest/fmt/num.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10+
#![allow(unsigned_negation)]
11+
1012
use core::fmt::radix;
1113

1214
#[test]

0 commit comments

Comments
 (0)