Skip to content

Commit 53b3a24

Browse files
committed
---
yaml --- r: 152305 b: refs/heads/try2 c: 5cdc365 h: refs/heads/master i: 152303: 2688048 v: v3
1 parent 22977d7 commit 53b3a24

Some content is hidden

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

74 files changed

+113
-205
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 124e997f364fb9e281516962d14af9c3415d3433
8+
refs/heads/try2: 5cdc36517ed9939ef9f10736c269e5988062e479
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ script: |
4040
if [[ $LLVM_VERSION != '3.4' ]]; then exit 0; fi
4141
fi &&
4242
make tidy &&
43-
travis_wait make -j4 rustc-stage1 &&
43+
make -j4 rustc-stage1 &&
4444
make check-stage1-std check-stage1-rpass check-stage1-cfail check-stage1-rfail check-stage1-doc
4545
4646
env:

branches/try2/AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Rust was written by these fine people:
33
Aaron Laursen <[email protected]>
44
Aaron Todd <[email protected]>
55
Adam Bozanich <[email protected]>
6-
Adolfo Ochagavía <[email protected]>
76
Adrien Tétar <[email protected]>
87
Alan Andrade <[email protected]>
98
Aleksander Balicki <[email protected]>
@@ -26,6 +25,7 @@ Andrew Chin <[email protected]>
2625
Andrew Dunham <[email protected]>
2726
Andrew Paseltiner <[email protected]>
2827
Anthony Juckel <[email protected]>
28+
aochagavia <[email protected]>
2929
3030
Arkaitz Jimenez <[email protected]>
3131
Armin Ronacher <[email protected]>

branches/try2/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ do
11361136
CXXFLAGS=$LLVM_CXXFLAGS
11371137
LDFLAGS=$LLVM_LDFLAGS
11381138

1139-
if [ -z "$CFG_DISABLE_LIBCPP" ] && [ -n "$CFG_USING_CLANG" ]; then
1139+
if [ "$CFG_DISABLE_LIBCPP" != 1 ] && [ "$CFG_USING_CLANG" == 1 ]; then
11401140
LLVM_OPTS="$LLVM_OPTS --enable-libcpp"
11411141
fi
11421142

branches/try2/mk/crates.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ DEPS_collections := core alloc
8484
DEPS_fourcc := syntax std
8585
DEPS_hexfloat := syntax std
8686
DEPS_num := std
87-
DEPS_test := std getopts serialize term time regex
87+
DEPS_test := std getopts serialize term time regex native:rust_test_helpers
8888
DEPS_time := std serialize sync
8989
DEPS_rand := core
9090
DEPS_url := std

branches/try2/mk/rt.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
# that's per-target so you're allowed to conditionally add files based on the
3636
# target.
3737
################################################################################
38-
NATIVE_LIBS := rustrt hoedown uv_support morestack miniz context_switch
38+
NATIVE_LIBS := rustrt hoedown uv_support morestack miniz context_switch \
39+
rust_test_helpers
3940

4041
# $(1) is the target triple
4142
define NATIVE_LIBRARIES
@@ -53,9 +54,9 @@ NATIVE_DEPS_uv_support_$(1) := rust_uv.c
5354
NATIVE_DEPS_miniz_$(1) = miniz.c
5455
NATIVE_DEPS_rustrt_$(1) := rust_builtin.c \
5556
rust_android_dummy.c \
56-
rust_test_helpers.c \
5757
rust_try.ll \
5858
arch/$$(HOST_$(1))/record_sp.S
59+
NATIVE_DEPS_rust_test_helpers_$(1) := rust_test_helpers.c
5960
NATIVE_DEPS_morestack_$(1) := arch/$$(HOST_$(1))/morestack.S
6061
NATIVE_DEPS_context_switch_$(1) := \
6162
arch/$$(HOST_$(1))/_context.S

branches/try2/src/compiletest/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn load_errors(re: &Regex, testfile: &Path) -> Vec<ExpectedError> {
3131
fn parse_expected(line_num: uint, line: &str, re: &Regex) -> Option<ExpectedError> {
3232
re.captures(line).and_then(|caps| {
3333
let adjusts = caps.name("adjusts").len();
34-
let kind = caps.name("kind").to_ascii().to_lower().into_str();
34+
let kind = caps.name("kind").to_ascii().to_lower().into_str().to_string();
3535
let msg = caps.name("msg").trim().to_string();
3636

3737
debug!("line={} kind={} msg={}", line_num, kind, msg);

branches/try2/src/compiletest/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub fn make_new_path(path: &str) -> String {
4141
Some(curr) => {
4242
format!("{}{}{}", path, path_div(), curr)
4343
}
44-
None => path.to_str()
44+
None => path.to_str().to_string()
4545
}
4646
}
4747

branches/try2/src/doc/complement-cheatsheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Use [`ToStr`](std/to_str/trait.ToStr.html).
88

99
~~~
1010
let x: int = 42;
11-
let y: String = x.to_str();
11+
let y: String = x.to_str().to_string();
1212
~~~
1313

1414
**String to int**

branches/try2/src/doc/guide-lifetimes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Despite their complete safety, a reference's representation at runtime
1414
is the same as that of an ordinary pointer in a C program. They introduce zero
1515
overhead. The compiler does all safety checks at compile time.
1616

17-
Although references have rather elaborate theoretical underpinnings
18-
(e.g. region pointers), the core concepts will be familiar to anyone
19-
who has worked with C or C++. The best way to explain how they are
17+
Although references have rather elaborate theoretical underpinnings usually
18+
introduced as (e.g. region pointers), the core concepts will be familiar to
19+
anyone who has worked with C or C++. The best way to explain how they are
2020
used—and their limitations—is probably just to work through several examples.
2121

2222
# By example

branches/try2/src/doc/guide-tasks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ fn stringifier(channel: &sync::DuplexStream<String, uint>) {
467467
let mut value: uint;
468468
loop {
469469
value = channel.recv();
470-
channel.send(value.to_str());
470+
channel.send(value.to_str().to_string());
471471
if value == 0 { break; }
472472
}
473473
}
@@ -492,7 +492,7 @@ extern crate sync;
492492
# let mut value: uint;
493493
# loop {
494494
# value = channel.recv();
495-
# channel.send(value.to_str());
495+
# channel.send(value.to_str().to_string());
496496
# if value == 0u { break; }
497497
# }
498498
# }

branches/try2/src/doc/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3579,7 +3579,7 @@ trait Printable {
35793579
}
35803580
35813581
impl Printable for int {
3582-
fn to_string(&self) -> String { self.to_str() }
3582+
fn to_string(&self) -> String { self.to_str().to_string() }
35833583
}
35843584
35853585
fn print(a: Box<Printable>) {

branches/try2/src/etc/licenseck.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"libstd/sync/spsc_queue.rs", # BSD
4343
"libstd/sync/mpmc_bounded_queue.rs", # BSD
4444
"libsync/mpsc_intrusive.rs", # BSD
45-
"test/bench/shootout-meteor.rs", # BSD
4645
]
4746

4847
def check_license(name, contents):

branches/try2/src/libcollections/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,11 +782,11 @@ impl<T> Vec<T> {
782782
self.as_mut_slice().sort_by(compare)
783783
}
784784

785-
/// Returns a slice of self spanning the interval [`start`, `end`).
785+
/// Returns a slice of `self` between `start` and `end`.
786786
///
787787
/// # Failure
788788
///
789-
/// Fails when the slice (or part of it) is outside the bounds of self, or when
789+
/// Fails when `start` or `end` point outside the bounds of `self`, or when
790790
/// `start` > `end`.
791791
///
792792
/// # Example

branches/try2/src/libcore/slice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,9 @@ impl<T> Container for ~[T] {
366366
/// Extension methods for vectors
367367
pub trait ImmutableVector<'a, T> {
368368
/**
369-
* Returns a slice of self spanning the interval [`start`, `end`).
369+
* Returns a slice of self between `start` and `end`.
370370
*
371-
* Fails when the slice (or part of it) is outside the bounds of self,
371+
* Fails when `start` or `end` point outside the bounds of self,
372372
* or when `start` > `end`.
373373
*/
374374
fn slice(&self, start: uint, end: uint) -> &'a [T];

branches/try2/src/libgetopts/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ impl Name {
222222

223223
fn to_str(&self) -> String {
224224
match *self {
225-
Short(ch) => ch.to_str(),
225+
Short(ch) => ch.to_str().to_string(),
226226
Long(ref s) => s.to_string()
227227
}
228228
}

branches/try2/src/libnum/bigint.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,6 @@ impl FromStrRadix for BigUint {
653653

654654
impl BigUint {
655655
/// Creates and initializes a `BigUint`.
656-
///
657-
/// The digits are be in base 2^32.
658656
#[inline]
659657
pub fn new(v: Vec<BigDigit>) -> BigUint {
660658
// omit trailing zeros
@@ -667,8 +665,6 @@ impl BigUint {
667665
}
668666

669667
/// Creates and initializes a `BigUint`.
670-
///
671-
/// The digits are be in base 2^32.
672668
#[inline]
673669
pub fn from_slice(slice: &[BigDigit]) -> BigUint {
674670
return BigUint::new(Vec::from_slice(slice));
@@ -1319,16 +1315,12 @@ impl<R: Rng> RandBigInt for R {
13191315

13201316
impl BigInt {
13211317
/// Creates and initializes a BigInt.
1322-
///
1323-
/// The digits are be in base 2^32.
13241318
#[inline]
13251319
pub fn new(sign: Sign, v: Vec<BigDigit>) -> BigInt {
13261320
BigInt::from_biguint(sign, BigUint::new(v))
13271321
}
13281322

13291323
/// Creates and initializes a `BigInt`.
1330-
///
1331-
/// The digits are be in base 2^32.
13321324
#[inline]
13331325
pub fn from_biguint(sign: Sign, data: BigUint) -> BigInt {
13341326
if sign == Zero || data.is_zero() {

branches/try2/src/libnum/complex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ mod test {
349349
#[test]
350350
fn test_to_str() {
351351
fn test(c : Complex64, s: String) {
352-
assert_eq!(c.to_str(), s);
352+
assert_eq!(c.to_str().to_string(), s);
353353
}
354354
test(_0_0i, "0+0i".to_string());
355355
test(_1_0i, "1+0i".to_string());

branches/try2/src/libnum/rational.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ mod test {
559559
fn test_to_from_str() {
560560
fn test(r: Rational, s: String) {
561561
assert_eq!(FromStr::from_str(s.as_slice()), Some(r));
562-
assert_eq!(r.to_str(), s);
562+
assert_eq!(r.to_str().to_string(), s);
563563
}
564564
test(_1, "1/1".to_string());
565565
test(_0, "0/1".to_string());

branches/try2/src/libregex_macros/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ fn parse(cx: &mut ExtCtxt, tts: &[ast::TokenTree]) -> Option<String> {
620620
let regex = match entry.node {
621621
ast::ExprLit(lit) => {
622622
match lit.node {
623-
ast::LitStr(ref s, _) => s.to_str(),
623+
ast::LitStr(ref s, _) => s.to_str().to_string(),
624624
_ => {
625625
cx.span_err(entry.span, format!(
626626
"expected string literal but got `{}`",

branches/try2/src/librustc/driver/driver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,15 +533,15 @@ impl pprust::PpAnn for IdentifiedAnnotation {
533533
match node {
534534
pprust::NodeItem(item) => {
535535
try!(pp::space(&mut s.s));
536-
s.synth_comment(item.id.to_str())
536+
s.synth_comment(item.id.to_str().to_string())
537537
}
538538
pprust::NodeBlock(blk) => {
539539
try!(pp::space(&mut s.s));
540540
s.synth_comment((format!("block {}", blk.id)).to_string())
541541
}
542542
pprust::NodeExpr(expr) => {
543543
try!(pp::space(&mut s.s));
544-
try!(s.synth_comment(expr.id.to_str()));
544+
try!(s.synth_comment(expr.id.to_str().to_string()));
545545
s.pclose()
546546
}
547547
pprust::NodePat(pat) => {

branches/try2/src/librustc/middle/liveness.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ impl<'a> IrMaps<'a> {
324324
fn variable_name(&self, var: Variable) -> String {
325325
match self.var_kinds.get(var.get()) {
326326
&Local(LocalInfo { ident: nm, .. }) | &Arg(_, nm) => {
327-
token::get_ident(nm).get().to_str()
327+
token::get_ident(nm).get().to_str().to_string()
328328
},
329329
&ImplicitRet => "<implicit-ret>".to_string()
330330
}

branches/try2/src/librustc/middle/mem_categorization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ impl Repr for InteriorKind {
13031303
fn repr(&self, _tcx: &ty::ctxt) -> String {
13041304
match *self {
13051305
InteriorField(NamedField(fld)) => {
1306-
token::get_name(fld).get().to_str()
1306+
token::get_name(fld).get().to_str().to_string()
13071307
}
13081308
InteriorField(PositionalField(i)) => format!("\\#{:?}", i),
13091309
InteriorElement(_) => "[]".to_string(),

branches/try2/src/librustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ fn exported_name(ccx: &CrateContext, id: ast::NodeId,
19271927
_ => ccx.tcx.map.with_path(id, |mut path| {
19281928
if attr::contains_name(attrs, "no_mangle") {
19291929
// Don't mangle
1930-
path.last().unwrap().to_str()
1930+
path.last().unwrap().to_str().to_string()
19311931
} else {
19321932
match weak_lang_items::link_name(attrs) {
19331933
Some(name) => name.get().to_string(),

branches/try2/src/librustc/middle/typeck/infer/to_str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ impl<V:Vid + ToStr,T:InferStr> InferStr for VarValue<V, T> {
7979

8080
impl InferStr for IntVarValue {
8181
fn inf_str(&self, _cx: &InferCtxt) -> String {
82-
self.to_str()
82+
self.to_str().to_string()
8383
}
8484
}
8585

8686
impl InferStr for ast::FloatTy {
8787
fn inf_str(&self, _cx: &InferCtxt) -> String {
88-
self.to_str()
88+
self.to_str().to_string()
8989
}
9090
}
9191

branches/try2/src/librustc/util/ppaux.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ pub fn ty_to_str(cx: &ctxt, typ: t) -> String {
366366
ty_bare_fn(ref f) => {
367367
bare_fn_to_str(cx, f.fn_style, f.abi, None, &f.sig)
368368
}
369-
ty_infer(infer_ty) => infer_ty.to_str(),
369+
ty_infer(infer_ty) => infer_ty.to_str().to_string(),
370370
ty_err => "[type error]".to_string(),
371371
ty_param(param_ty {idx: id, def_id: did}) => {
372372
let ident = match cx.ty_param_defs.borrow().find(&did.node) {
@@ -753,10 +753,7 @@ impl Repr for ty::ItemVariances {
753753

754754
impl Repr for ty::Variance {
755755
fn repr(&self, _: &ctxt) -> String {
756-
// The first `.to_str()` returns a &'static str (it is not an implementation
757-
// of the ToStr trait). Because of that, we need to call `.to_str()` again
758-
// if we want to have a `String`.
759-
self.to_str().to_str()
756+
self.to_str().to_string()
760757
}
761758
}
762759

@@ -953,13 +950,13 @@ impl UserString for ast::Ident {
953950

954951
impl Repr for abi::Abi {
955952
fn repr(&self, _tcx: &ctxt) -> String {
956-
self.to_str()
953+
self.to_str().to_string()
957954
}
958955
}
959956

960957
impl UserString for abi::Abi {
961958
fn user_string(&self, _tcx: &ctxt) -> String {
962-
self.to_str()
959+
self.to_str().to_string()
963960
}
964961
}
965962

branches/try2/src/librustdoc/clean/inline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fn try_inline_def(cx: &core::DocContext,
9393
cx.inlined.borrow_mut().get_mut_ref().insert(did);
9494
ret.push(clean::Item {
9595
source: clean::Span::empty(),
96-
name: Some(fqn.last().unwrap().to_str()),
96+
name: Some(fqn.last().unwrap().to_str().to_string()),
9797
attrs: load_attrs(tcx, did),
9898
inner: inner,
9999
visibility: Some(ast::Public),

0 commit comments

Comments
 (0)