Skip to content

Commit a8e4531

Browse files
committed
---
yaml --- r: 208186 b: refs/heads/snap-stage3 c: bf06163 h: refs/heads/master v: v3
1 parent d2c61f3 commit a8e4531

File tree

16 files changed

+25
-124
lines changed

16 files changed

+25
-124
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: 38a97becdf3e6a6157f6f7ec2d98ade8d8edc193
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 50aada70f4bcd507cc73a7eabe5206f85dd377a4
4+
refs/heads/snap-stage3: bf06163ea7f41a54e7ef96ac9c5dfcd626299926
55
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/configure

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ err() {
1919
exit 1
2020
}
2121

22-
run() {
23-
msg "$@"
24-
"$@"
25-
}
26-
2722
need_ok() {
2823
if [ $? -ne 0 ]
2924
then
@@ -41,7 +36,8 @@ need_cmd() {
4136
make_dir() {
4237
if [ ! -d $1 ]
4338
then
44-
run mkdir -p $1
39+
msg "mkdir -p $1"
40+
mkdir -p $1
4541
fi
4642
}
4743

@@ -50,7 +46,8 @@ copy_if_changed() {
5046
then
5147
msg "leaving $2 unchanged"
5248
else
53-
run cp -f $1 $2
49+
msg "cp $1 $2"
50+
cp -f $1 $2
5451
chmod u-w $2 # make copied artifact read-only
5552
fi
5653
}
@@ -60,7 +57,8 @@ move_if_changed() {
6057
then
6158
msg "leaving $2 unchanged"
6259
else
63-
run mv -f $1 $2
60+
msg "mv $1 $2"
61+
mv -f $1 $2
6462
chmod u-w $2 # make moved artifact read-only
6563
fi
6664
}
@@ -735,20 +733,6 @@ then
735733
probe CFG_JAVAC javac
736734
fi
737735

738-
# the valgrind rpass tests will fail if you don't have a valgrind, but they're
739-
# only disabled if you opt out.
740-
if [ -z "$CFG_VALGRIND" ]
741-
then
742-
# If the user has explicitly asked for valgrind tests, then fail
743-
if [ -n "$CFG_ENABLE_VALGRIND" ] && [ -n "$CFG_ENABLE_VALGRIND_PROVIDED" ]
744-
then
745-
err "No valgrind present, but valgrind tests explicitly requested"
746-
else
747-
CFG_DISABLE_VALGRIND_RPASS=1
748-
putvar CFG_DISABLE_VALGRIND_RPASS
749-
fi
750-
fi
751-
752736
if [ ! -z "$CFG_GDB" ]
753737
then
754738
# Store GDB's version

branches/snap-stage3/mk/dist.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ PKG_FILES := \
5252
doc \
5353
driver \
5454
etc \
55-
error-index-generator \
5655
$(foreach crate,$(CRATES),lib$(crate)) \
5756
libcollectionstest \
5857
libcoretest \

branches/snap-stage3/mk/main.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ ifndef CFG_DISABLE_VALGRIND_RPASS
195195
$(info cfg: valgrind-rpass command set to $(CFG_VALGRIND))
196196
CFG_VALGRIND_RPASS :=$(CFG_VALGRIND)
197197
else
198-
$(info cfg: disabling valgrind run-pass tests)
199198
CFG_VALGRIND_RPASS :=
200199
endif
201200

branches/snap-stage3/src/doc/grammar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ view_item : extern_crate_decl | use_decl ;
329329

330330
```antlr
331331
extern_crate_decl : "extern" "crate" crate_name
332-
crate_name: ident | ( string_lit as ident )
332+
crate_name: ident | ( ident "as" ident )
333333
```
334334

335335
##### Use declarations

branches/snap-stage3/src/doc/reference.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -752,11 +752,10 @@ provided in the `extern_crate_decl`.
752752
The external crate is resolved to a specific `soname` at compile time, and a
753753
runtime linkage requirement to that `soname` is passed to the linker for
754754
loading at runtime. The `soname` is resolved at compile time by scanning the
755-
compiler's library path and matching the optional `crateid` provided as a
756-
string literal against the `crateid` attributes that were declared on the
757-
external crate when it was compiled. If no `crateid` is provided, a default
758-
`name` attribute is assumed, equal to the `ident` given in the
759-
`extern_crate_decl`.
755+
compiler's library path and matching the optional `crateid` provided against
756+
the `crateid` attributes that were declared on the external crate when it was
757+
compiled. If no `crateid` is provided, a default `name` attribute is assumed,
758+
equal to the `ident` given in the `extern_crate_decl`.
760759

761760
Three examples of `extern crate` declarations:
762761

branches/snap-stage3/src/libcollections/slice.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
#![stable(feature = "rust1", since = "1.0.0")]
8181

8282
use alloc::boxed::Box;
83+
use core::convert::AsRef;
8384
use core::clone::Clone;
8485
use core::cmp::Ordering::{self, Greater, Less};
8586
use core::cmp::{self, Ord, PartialEq};
@@ -1023,25 +1024,25 @@ pub trait SliceConcatExt<T: ?Sized> {
10231024
fn connect(&self, sep: &T) -> Self::Output;
10241025
}
10251026

1026-
impl<T: Clone, V: Borrow<[T]>> SliceConcatExt<T> for [V] {
1027+
impl<T: Clone, V: AsRef<[T]>> SliceConcatExt<T> for [V] {
10271028
type Output = Vec<T>;
10281029

10291030
fn concat(&self) -> Vec<T> {
1030-
let size = self.iter().fold(0, |acc, v| acc + v.borrow().len());
1031+
let size = self.iter().fold(0, |acc, v| acc + v.as_ref().len());
10311032
let mut result = Vec::with_capacity(size);
10321033
for v in self {
1033-
result.push_all(v.borrow())
1034+
result.push_all(v.as_ref())
10341035
}
10351036
result
10361037
}
10371038

10381039
fn connect(&self, sep: &T) -> Vec<T> {
1039-
let size = self.iter().fold(0, |acc, v| acc + v.borrow().len());
1040+
let size = self.iter().fold(0, |acc, v| acc + v.as_ref().len());
10401041
let mut result = Vec::with_capacity(size + self.len());
10411042
let mut first = true;
10421043
for v in self {
10431044
if first { first = false } else { result.push(sep.clone()) }
1044-
result.push_all(v.borrow())
1045+
result.push_all(v.as_ref())
10451046
}
10461047
result
10471048
}

branches/snap-stage3/src/libcollections/str.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ use core::str::pattern::Pattern;
5959
use core::str::pattern::{Searcher, ReverseSearcher, DoubleEndedSearcher};
6060
use rustc_unicode::str::{UnicodeStr, Utf16Encoder};
6161

62+
use core::convert::AsRef;
6263
use vec_deque::VecDeque;
6364
use borrow::{Borrow, ToOwned};
6465
use string::String;
@@ -82,7 +83,7 @@ pub use core::str::pattern;
8283
Section: Creating a string
8384
*/
8485

85-
impl<S: Borrow<str>> SliceConcatExt<str> for [S] {
86+
impl<S: AsRef<str>> SliceConcatExt<str> for [S] {
8687
type Output = String;
8788

8889
fn concat(&self) -> String {
@@ -91,11 +92,11 @@ impl<S: Borrow<str>> SliceConcatExt<str> for [S] {
9192
}
9293

9394
// `len` calculation may overflow but push_str will check boundaries
94-
let len = self.iter().map(|s| s.borrow().len()).sum();
95+
let len = self.iter().map(|s| s.as_ref().len()).sum();
9596
let mut result = String::with_capacity(len);
9697

9798
for s in self {
98-
result.push_str(s.borrow())
99+
result.push_str(s.as_ref())
99100
}
100101

101102
result
@@ -114,7 +115,7 @@ impl<S: Borrow<str>> SliceConcatExt<str> for [S] {
114115
// this is wrong without the guarantee that `self` is non-empty
115116
// `len` calculation may overflow but push_str but will check boundaries
116117
let len = sep.len() * (self.len() - 1)
117-
+ self.iter().map(|s| s.borrow().len()).sum::<usize>();
118+
+ self.iter().map(|s| s.as_ref().len()).sum::<usize>();
118119
let mut result = String::with_capacity(len);
119120
let mut first = true;
120121

@@ -124,7 +125,7 @@ impl<S: Borrow<str>> SliceConcatExt<str> for [S] {
124125
} else {
125126
result.push_str(sep);
126127
}
127-
result.push_str(s.borrow());
128+
result.push_str(s.as_ref());
128129
}
129130
result
130131
}

branches/snap-stage3/src/libcollections/string.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,14 +1057,6 @@ impl AsRef<str> for String {
10571057
}
10581058
}
10591059

1060-
#[stable(feature = "rust1", since = "1.0.0")]
1061-
impl AsRef<[u8]> for String {
1062-
#[inline]
1063-
fn as_ref(&self) -> &[u8] {
1064-
self.as_bytes()
1065-
}
1066-
}
1067-
10681060
#[stable(feature = "rust1", since = "1.0.0")]
10691061
impl<'a> From<&'a str> for String {
10701062
#[cfg(not(test))]

branches/snap-stage3/src/libcore/num/wrapping.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ macro_rules! wrapping_impl {
123123
impl Not for Wrapping<$t> {
124124
type Output = Wrapping<$t>;
125125

126-
#[inline(always)]
127126
fn not(self) -> Wrapping<$t> {
128127
Wrapping(!self.0)
129128
}

branches/snap-stage3/src/libcore/str/mod.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use self::pattern::{Searcher, ReverseSearcher, DoubleEndedSearcher};
2121
use char::CharExt;
2222
use clone::Clone;
2323
use cmp::{self, Eq};
24-
use convert::AsRef;
2524
use default::Default;
2625
use fmt;
2726
use iter::ExactSizeIterator;
@@ -1843,14 +1842,6 @@ impl StrExt for str {
18431842
fn parse<T: FromStr>(&self) -> Result<T, T::Err> { FromStr::from_str(self) }
18441843
}
18451844

1846-
#[stable(feature = "rust1", since = "1.0.0")]
1847-
impl AsRef<[u8]> for str {
1848-
#[inline]
1849-
fn as_ref(&self) -> &[u8] {
1850-
self.as_bytes()
1851-
}
1852-
}
1853-
18541845
/// Pluck a code point out of a UTF-8-like byte slice and return the
18551846
/// index of the next code point.
18561847
#[inline]

branches/snap-stage3/src/librustdoc/html/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
16431643
clean::ExternCrateItem(ref name, ref src) => {
16441644
match *src {
16451645
Some(ref src) => {
1646-
try!(write!(w, "<tr><td><code>{}extern crate \"{}\" as {};",
1646+
try!(write!(w, "<tr><td><code>{}extern crate {} as {};",
16471647
VisSpace(myitem.visibility),
16481648
src,
16491649
name))

branches/snap-stage3/src/test/auxiliary/crateresolve4a-1.rs

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

branches/snap-stage3/src/test/auxiliary/crateresolve4a-2.rs

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

branches/snap-stage3/src/test/auxiliary/crateresolve4b-1.rs

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

branches/snap-stage3/src/test/auxiliary/crateresolve4b-2.rs

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

0 commit comments

Comments
 (0)