Skip to content

Commit 2dd974e

Browse files
committed
---
yaml --- r: 187063 b: refs/heads/try c: d99af37 h: refs/heads/master i: 187061: 05834f7 187059: 4c7d492 187055: 0a9811b v: v3
1 parent db44a22 commit 2dd974e

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

+195
-876
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: b4c965ee803a4521d8b4575f634e036f93e408f3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5-
refs/heads/try: e1c2f77754e107f5b95fa794a412680695b8bce3
5+
refs/heads/try: d99af375d302fe47c5f02125634995e0d930f4ff
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ links to the major sections:
1414
If you have questions, please make a post on [internals.rust-lang.org][internals] or
1515
hop on [#rust-internals][pound-rust-internals].
1616

17-
As a reminder, all contributors are expected to follow our [Code of Conduct][coc].
17+
As a reminder, all contributors are expected to follow our [Code of Conduct](coc).
1818

1919
[pound-rust-internals]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
2020
[internals]: http://internals.rust-lang.org

branches/try/configure

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -374,12 +374,8 @@ case $CFG_OSTYPE in
374374
CFG_OSTYPE=unknown-dragonfly
375375
;;
376376

377-
Bitrig)
378-
CFG_OSTYPE=unknown-bitrig
379-
;;
380-
381377
OpenBSD)
382-
CFG_OSTYPE=unknown-openbsd
378+
CFG_OSTYPE=unknown-openbsd
383379
;;
384380

385381
Darwin)
@@ -751,13 +747,6 @@ then
751747
CFG_ENABLE_CLANG=1
752748
fi
753749

754-
# Force bitrig to build with clang; gcc doesn't like us there
755-
if [ $CFG_OSTYPE = unknown-bitrig ]
756-
then
757-
step_msg "on Bitrig, forcing use of clang"
758-
CFG_ENABLE_CLANG=1
759-
fi
760-
761750
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
762751
then
763752
err "either clang or gcc is required"

branches/try/mk/cfg/x86_64-unknown-bitrig.mk

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

branches/try/mk/platform.mk

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ FIND_COMPILER = $(word 1,$(1:ccache=))
144144
define CFG_MAKE_TOOLCHAIN
145145
# Prepend the tools with their prefix if cross compiling
146146
ifneq ($(CFG_BUILD),$(1))
147-
CC_$(1)=$(CROSS_PREFIX_$(1))$(CC_$(1))
148-
CXX_$(1)=$(CROSS_PREFIX_$(1))$(CXX_$(1))
149-
CPP_$(1)=$(CROSS_PREFIX_$(1))$(CPP_$(1))
150-
AR_$(1)=$(CROSS_PREFIX_$(1))$(AR_$(1))
151-
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(call FIND_COMPILER,$$(CC_$(1))) \
152-
-C ar=$$(call FIND_COMPILER,$$(AR_$(1))) $(RUSTC_CROSS_FLAGS_$(1))
153-
154-
RUSTC_FLAGS_$(1)=$$(RUSTC_CROSS_FLAGS_$(1)) $(RUSTC_FLAGS_$(1))
147+
CC_$(1)=$(CROSS_PREFIX_$(1))$(CC_$(1))
148+
CXX_$(1)=$(CROSS_PREFIX_$(1))$(CXX_$(1))
149+
CPP_$(1)=$(CROSS_PREFIX_$(1))$(CPP_$(1))
150+
AR_$(1)=$(CROSS_PREFIX_$(1))$(AR_$(1))
151+
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(call FIND_COMPILER,$$(CC_$(1))) \
152+
-C ar=$$(call FIND_COMPILER,$$(AR_$(1))) $(RUSTC_CROSS_FLAGS_$(1))
153+
154+
RUSTC_FLAGS_$(1)=$$(RUSTC_CROSS_FLAGS_$(1)) $(RUSTC_FLAGS_$(1))
155155
endif
156156

157157
CFG_COMPILE_C_$(1) = $$(CC_$(1)) \
@@ -179,19 +179,11 @@ define CFG_MAKE_TOOLCHAIN
179179

180180
ifeq ($$(findstring $(HOST_$(1)),arm aarch64 mips mipsel powerpc),)
181181

182-
# On Bitrig, we need the relocation model to be PIC for everthing
183-
ifeq (,$(filter $(OSTYPE_$(1)),bitrig))
184-
LLVM_MC_RELOCATION_MODEL="pic"
185-
else
186-
LLVM_MC_RELOCATION_MODEL="default"
187-
endif
188-
189182
# We're using llvm-mc as our assembler because it supports
190183
# .cfi pseudo-ops on mac
191184
CFG_ASSEMBLE_$(1)=$$(CPP_$(1)) -E $$(CFG_DEPEND_FLAGS) $$(2) | \
192185
$$(LLVM_MC_$$(CFG_BUILD)) \
193186
-assemble \
194-
-relocation-model=$$(LLVM_MC_RELOCATION_MODEL) \
195187
-filetype=obj \
196188
-triple=$(1) \
197189
-o=$$(1)
@@ -200,7 +192,7 @@ define CFG_MAKE_TOOLCHAIN
200192
# For the ARM, AARCH64, MIPS and POWER crosses, use the toolchain assembler
201193
# FIXME: We should be able to use the LLVM assembler
202194
CFG_ASSEMBLE_$(1)=$$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
203-
$$(CFG_DEPEND_FLAGS) $$(2) -c -o $$(1)
195+
$$(CFG_DEPEND_FLAGS) $$(2) -c -o $$(1)
204196

205197
endif
206198

branches/try/src/compiletest/util.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ static OS_TABLE: &'static [(&'static str, &'static str)] = &[
2323
("linux", "linux"),
2424
("freebsd", "freebsd"),
2525
("dragonfly", "dragonfly"),
26-
("bitrig", "bitrig"),
2726
("openbsd", "openbsd"),
2827
];
2928

branches/try/src/doc/reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,8 +2188,8 @@ The following configurations must be defined by the implementation:
21882188
`"unix"` or `"windows"`. The value of this configuration option is defined
21892189
as a configuration itself, like `unix` or `windows`.
21902190
* `target_os = "..."`. Operating system of the target, examples include
2191-
`"win32"`, `"macos"`, `"linux"`, `"android"`, `"freebsd"`, `"dragonfly"`,
2192-
`"bitrig"` or `"openbsd"`.
2191+
`"win32"`, `"macos"`, `"linux"`, `"android"`, `"freebsd"`, `"dragonfly"` or
2192+
`"openbsd"`.
21932193
* `target_word_size = "..."`. Target word size in bits. This is set to `"32"`
21942194
for targets with 32-bit pointers, and likewise set to `"64"` for 64-bit
21952195
pointers.

branches/try/src/doc/trpl/guessing-game.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fn main() {
9191
```
9292

9393
You've seen this code before, when we talked about standard input. We
94-
import the `std::old_io` module with `use`, and then our `main` function contains
94+
import the `std::io` module with `use`, and then our `main` function contains
9595
our program's logic. We print a little message announcing the game, ask the
9696
user to input a guess, get their input, and then print it out.
9797

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,6 @@ if x == 5 {
3434
}
3535
```
3636

37-
If there is more than one case, use an `else if`:
38-
39-
```rust
40-
let x = 5;
41-
42-
if x == 5 {
43-
println!("x is five!");
44-
} else if x == 6 {
45-
println!("x is six!");
46-
} else {
47-
println!("x is not five or six :(");
48-
}
49-
```
50-
5137
This is all pretty standard. However, you can also do this:
5238

5339

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -687,9 +687,7 @@ than the hundred `int`s that make up the `BigStruct`.
687687

688688
This is an antipattern in Rust. Instead, write this:
689689

690-
```rust
691-
#![feature(box_syntax)]
692-
690+
```{rust}
693691
struct BigStruct {
694692
one: i32,
695693
two: i32,
@@ -708,13 +706,10 @@ fn main() {
708706
one_hundred: 100,
709707
});
710708
711-
let y = box foo(x);
709+
let y = Box::new(foo(x));
712710
}
713711
```
714712

715-
Note that this uses the `box_syntax` feature gate, so this syntax may change in
716-
the future.
717-
718713
This gives you flexibility without sacrificing performance.
719714

720715
You may think that this gives us terrible performance: return a value and then

branches/try/src/etc/local_stage0.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ LIB_PREFIX=lib
1818

1919
OS=`uname -s`
2020
case $OS in
21-
("Linux"|"FreeBSD"|"DragonFly"|"Bitrig"|"OpenBSD")
21+
("Linux"|"FreeBSD"|"DragonFly"|"OpenBSD")
2222
BIN_SUF=
2323
LIB_SUF=.so
2424
;;

branches/try/src/etc/mklldeps.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,7 @@ def run(args):
5757
args.extend(components)
5858
out = run(args)
5959
for lib in out.strip().replace("\n", ' ').split(' '):
60-
if len(lib) == 0:
61-
continue
62-
# in some cases we get extra spaces in between libs so ignore those
63-
if len(lib) == 1 and lib == ' ':
64-
continue
65-
# not all libs strictly follow -lfoo, on Bitrig, there is -pthread
66-
if lib[0:2] == '-l':
67-
lib = lib.strip()[2:]
68-
elif lib[0] == '-':
69-
lib = lib.strip()[1:]
60+
lib = lib.strip()[2:] # chop of the leading '-l'
7061
f.write("#[link(name = \"" + lib + "\"")
7162
# LLVM libraries are all static libraries
7263
if 'LLVM' in lib:

branches/try/src/etc/snapshot.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ def scrub(b):
4646
"winnt": ["bin/rustc.exe"],
4747
"freebsd": ["bin/rustc"],
4848
"dragonfly": ["bin/rustc"],
49-
"bitrig": ["bin/rustc"],
5049
"openbsd": ["bin/rustc"],
5150
}
5251

5352
winnt_runtime_deps_32 = ["libgcc_s_dw2-1.dll", "libstdc++-6.dll"]
5453
winnt_runtime_deps_64 = ["libgcc_s_seh-1.dll", "libstdc++-6.dll"]
5554

55+
5656
def parse_line(n, line):
5757
global snapshotfile
5858

@@ -101,8 +101,6 @@ def get_kernel(triple):
101101
return "freebsd"
102102
if os_name == "dragonfly":
103103
return "dragonfly"
104-
if os_name == "bitrig":
105-
return "bitrig"
106104
if os_name == "openbsd":
107105
return "openbsd"
108106
return "linux"

branches/try/src/libbacktrace/configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5650,7 +5650,7 @@ else
56505650
lt_cv_sys_max_cmd_len=8192;
56515651
;;
56525652
5653-
netbsd* | freebsd* | openbsd* | darwin* | dragonfly* | bitrig*)
5653+
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
56545654
# This has been around since 386BSD, at least. Likely further.
56555655
if test -x /sbin/sysctl; then
56565656
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
@@ -9332,7 +9332,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
93329332
;;
93339333
93349334
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9335-
freebsd* | dragonfly* | bitrig* | openbsd*)
9335+
freebsd* | dragonfly* | openbsd*)
93369336
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
93379337
hardcode_libdir_flag_spec='-R$libdir'
93389338
hardcode_direct=yes

branches/try/src/libbacktrace/ltmain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4741,7 +4741,7 @@ func_mode_link ()
47414741
# These systems don't actually have a C library (as such)
47424742
test "X$arg" = "X-lc" && continue
47434743
;;
4744-
*-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
4744+
*-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
47454745
# Do not include libc due to us having libc/libc_r.
47464746
test "X$arg" = "X-lc" && continue
47474747
;;

branches/try/src/libcoretest/iter.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn test_iterator_chain() {
8282
let xs = [0, 1, 2, 3, 4, 5];
8383
let ys = [30, 40, 50, 60];
8484
let expected = [0, 1, 2, 3, 4, 5, 30, 40, 50, 60];
85-
let it = xs.iter().chain(ys.iter());
85+
let mut it = xs.iter().chain(ys.iter());
8686
let mut i = 0;
8787
for &x in it {
8888
assert_eq!(x, expected[i]);
@@ -91,7 +91,7 @@ fn test_iterator_chain() {
9191
assert_eq!(i, expected.len());
9292

9393
let ys = count(30, 10).take(4);
94-
let it = xs.iter().cloned().chain(ys);
94+
let mut it = xs.iter().cloned().chain(ys);
9595
let mut i = 0;
9696
for x in it {
9797
assert_eq!(x, expected[i]);
@@ -110,7 +110,7 @@ fn test_filter_map() {
110110
#[test]
111111
fn test_iterator_enumerate() {
112112
let xs = [0, 1, 2, 3, 4, 5];
113-
let it = xs.iter().enumerate();
113+
let mut it = xs.iter().enumerate();
114114
for (i, &x) in it {
115115
assert_eq!(i, x);
116116
}
@@ -152,7 +152,7 @@ fn test_iterator_peekable() {
152152
fn test_iterator_take_while() {
153153
let xs = [0, 1, 2, 3, 5, 13, 15, 16, 17, 19];
154154
let ys = [0, 1, 2, 3, 5, 13];
155-
let it = xs.iter().take_while(|&x| *x < 15);
155+
let mut it = xs.iter().take_while(|&x| *x < 15);
156156
let mut i = 0;
157157
for x in it {
158158
assert_eq!(*x, ys[i]);
@@ -165,7 +165,7 @@ fn test_iterator_take_while() {
165165
fn test_iterator_skip_while() {
166166
let xs = [0, 1, 2, 3, 5, 13, 15, 16, 17, 19];
167167
let ys = [15, 16, 17, 19];
168-
let it = xs.iter().skip_while(|&x| *x < 15);
168+
let mut it = xs.iter().skip_while(|&x| *x < 15);
169169
let mut i = 0;
170170
for x in it {
171171
assert_eq!(*x, ys[i]);
@@ -231,7 +231,7 @@ fn test_iterator_scan() {
231231
let xs = [0, 1, 2, 3, 4];
232232
let ys = [0f64, 1.0, 3.0, 6.0, 10.0];
233233

234-
let it = xs.iter().scan(0, add);
234+
let mut it = xs.iter().scan(0, add);
235235
let mut i = 0;
236236
for x in it {
237237
assert_eq!(x, ys[i]);
@@ -244,7 +244,7 @@ fn test_iterator_scan() {
244244
fn test_iterator_flat_map() {
245245
let xs = [0, 3, 6];
246246
let ys = [0, 1, 2, 3, 4, 5, 6, 7, 8];
247-
let it = xs.iter().flat_map(|&x| count(x, 1).take(3));
247+
let mut it = xs.iter().flat_map(|&x| count(x, 1).take(3));
248248
let mut i = 0;
249249
for x in it {
250250
assert_eq!(x, ys[i]);
@@ -279,7 +279,7 @@ fn test_unfoldr() {
279279
}
280280
}
281281

282-
let it = Unfold::new(0, count);
282+
let mut it = Unfold::new(0, count);
283283
let mut i = 0;
284284
for counted in it {
285285
assert_eq!(counted, i);

0 commit comments

Comments
 (0)