Skip to content

Commit 60a97fc

Browse files
committed
---
yaml --- r: 274747 b: refs/heads/stable c: ca7f550 h: refs/heads/master i: 274745: 9f8b6c6 274743: a7156f6
1 parent 586d4cb commit 60a97fc

File tree

329 files changed

+3974
-7175
lines changed

Some content is hidden

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

329 files changed

+3974
-7175
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 1de70d33f7baf12978cfb3de861e61b2a5d6fca7
32+
refs/heads/stable: ca7f550a6ecac44418f769e758955265da3e18fa
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/CONTRIBUTING.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,8 @@ Some common make targets are:
131131
& everything builds in the correct manner.
132132
- `make check-stage1-std NO_REBUILD=1` - test the standard library without
133133
rebuilding the entire compiler
134-
- `make check TESTNAME=<substring-of-test-name>` - Run a matching set of tests.
135-
- `TESTNAME` should be a substring of the tests to match against e.g. it could
136-
be the fully qualified test name, or just a part of it.
137-
`TESTNAME=collections::hash::map::test_map::test_capacity_not_less_than_len`
138-
or `TESTNAME=test_capacity_not_less_than_len`.
139-
- `make check-stage1-rpass TESTNAME=<substring-of-test-name>` - Run a single
134+
- `make check TESTNAME=<path-to-test-file>.rs` - Run a single test file
135+
- `make check-stage1-rpass TESTNAME=<path-to-test-file>.rs` - Run a single
140136
rpass test with the stage1 compiler (this will be quicker than running the
141137
command above as we only build the stage1 compiler, not the entire thing).
142138
You can also leave off the `-rpass` to run all stage1 test types.

branches/stable/COPYRIGHT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terms.
66

77
Longer version:
88

9-
The Rust Project is copyright 2010, The Rust Project
9+
The Rust Project is copyright 2016, The Rust Project
1010
Developers.
1111

1212
Licensed under the Apache License, Version 2.0

branches/stable/LICENSE-MIT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2010 The Rust Project Developers
1+
Copyright (c) 2016 The Rust Project Developers
22

33
Permission is hereby granted, free of charge, to any
44
person obtaining a copy of this software and associated

branches/stable/configure

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
#!/bin/sh
22

3-
# /bin/sh on Solaris is not a POSIX compatible shell, but /usr/bin/bash is.
4-
if [ `uname -s` = 'SunOS' -a "${POSIX_SHELL}" != "true" ]; then
5-
POSIX_SHELL="true"
6-
export POSIX_SHELL
7-
exec /usr/bin/env bash $0 "$@"
8-
fi
9-
unset POSIX_SHELL # clear it so if we invoke other scripts, they run as bash as well
10-
113
msg() {
124
echo "configure: $*"
135
}
@@ -424,11 +416,6 @@ case $CFG_OSTYPE in
424416
CFG_OSTYPE=apple-darwin
425417
;;
426418

427-
SunOS)
428-
CFG_OSTYPE=sun-solaris
429-
CFG_CPUTYPE=$(isainfo -n)
430-
;;
431-
432419
MINGW*)
433420
# msys' `uname` does not print gcc configuration, but prints msys
434421
# configuration. so we cannot believe `uname -m`:
@@ -1305,12 +1292,6 @@ $ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
13051292
putvar CFG_DISABLE_JEMALLOC
13061293
;;
13071294

1308-
*-emscripten)
1309-
step_msg "targeting emscripten, disabling jemalloc"
1310-
CFG_DISABLE_JEMALLOC=1
1311-
putvar CFG_DISABLE_JEMALLOC
1312-
;;
1313-
13141295
*)
13151296
;;
13161297
esac

branches/stable/man/rustc.1

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ rustc \- The Rust compiler
66
[\fIOPTIONS\fR] \fIINPUT\fR
77

88
.SH DESCRIPTION
9-
This program is a compiler for the Rust language, available at https://www.rust\-lang.org.
9+
This program is a compiler for the Rust language, available at
10+
.UR https://www.rust\-lang.org
11+
.UE .
1012

1113
.SH OPTIONS
1214

@@ -51,9 +53,10 @@ Comma separated list of types of crates for the compiler to emit.
5153
Specify the name of the crate being built.
5254
.TP
5355
\fB\-\-emit\fR [asm|llvm\-bc|llvm\-ir|obj|link|dep\-info][=\fIPATH\fR]
54-
Configure the output that \fBrustc\fR will produce. Each emission may also have
55-
an optional explicit output \fIPATH\fR specified for that particular emission
56-
kind. This path takes precedence over the \fB-o\fR option.
56+
Configure the output that \fBrustc\fR will produce.
57+
58+
Each emission may also have an optional explicit output \fIPATH\fR specified for that particular
59+
emission kind. This path takes precedence over the \fB-o\fR option.
5760
.TP
5861
\fB\-\-print\fR [crate\-name|file\-names|sysroot]
5962
Comma separated list of compiler information to print on stdout.
@@ -65,11 +68,13 @@ Equivalent to \fI\-C\ debuginfo=2\fR.
6568
Equivalent to \fI\-C\ opt\-level=2\fR.
6669
.TP
6770
\fB\-o\fR \fIFILENAME\fR
68-
Write output to \fIFILENAME\fR. Ignored if multiple \fI\-\-emit\fR outputs are specified which
69-
don't have an explicit path otherwise.
71+
Write output to \fIFILENAME\fR.
72+
Ignored if multiple \fI\-\-emit\fR outputs are specified which don't have an
73+
explicit path otherwise.
7074
.TP
7175
\fB\-\-out\-dir\fR \fIDIR\fR
72-
Write output to compiler\[hy]chosen filename in \fIDIR\fR. Ignored if \fI\-o\fR is specified.
76+
Write output to compiler\[hy]chosen filename in \fIDIR\fR.
77+
Ignored if \fI\-o\fR is specified.
7378
Defaults to the current directory.
7479
.TP
7580
\fB\-\-explain\fR \fIOPT\fR
@@ -78,26 +83,12 @@ Provide a detailed explanation of an error message.
7883
\fB\-\-test\fR
7984
Build a test harness.
8085
.TP
81-
\fB\-\-target\fR \fITARGET\fR
82-
Target triple for which the code is compiled. This option defaults to the host’s target
83-
triple. The target triple has the general format <arch><sub>\-<vendor>\-<sys>\-<abi>, where:
84-
.RS
85-
.TP
86-
.B <arch>
87-
x86, arm, thumb, mips, etc.
88-
.TP
89-
.B <sub>
90-
for example on ARM: v5, v6m, v7a, v7m, etc.
91-
.TP
92-
.B <vendor>
93-
pc, apple, nvidia, ibm, etc.
94-
.TP
95-
.B <sys>
96-
none, linux, win32, darwin, cuda, etc.
97-
.TP
98-
.B <abi>
99-
eabi, gnu, android, macho, elf, etc.
100-
.RE
86+
\fB\-\-target\fR \fITRIPLE\fR
87+
Target triple \fIcpu\fR\-\fImanufacturer\fR\-\fIkernel\fR[\-\fIos\fR]
88+
to compile for (see chapter 3.4 of
89+
.UR http://www.sourceware.org/autobook/
90+
.UE
91+
for details).
10192
.TP
10293
\fB\-W help\fR
10394
Print 'lint' options and default settings.
@@ -296,7 +287,10 @@ To build an executable with debug info:
296287
.BR rustdoc (1)
297288

298289
.SH "BUGS"
299-
See https://github.com/rust\-lang/rust/issues for issues.
290+
See
291+
.UR https://github.com/rust\-lang/rust/issues
292+
.UE
293+
for issues.
300294

301295
.SH "AUTHOR"
302296
See \fIAUTHORS.txt\fR in the Rust source distribution.

branches/stable/man/rustdoc.1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ rustdoc \- generate documentation from Rust source code
88
.SH DESCRIPTION
99
This tool generates API reference documentation by extracting comments from
1010
source code written in the Rust language, available at
11-
<\fBhttps://www.rust-lang.org\fR>. It accepts several input formats and
12-
provides several output formats for the generated documentation.
11+
.UR https://www.rust\-lang.org
12+
.UE .
13+
It accepts several input formats and provides several output formats
14+
for the generated documentation.
1315

1416
.SH OPTIONS
1517

@@ -129,7 +131,9 @@ The generated HTML can be viewed with any standard web browser.
129131
.BR rustc (1)
130132

131133
.SH "BUGS"
132-
See <\fBhttps://github.com/rust\-lang/rust/issues\fR>
134+
See
135+
.UR https://github.com/rust\-lang/rust/issues
136+
.UE
133137
for issues.
134138

135139
.SH "AUTHOR"

branches/stable/mk/cfg/aarch64-linux-android.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# aarch64-linux-android configuration
2-
# CROSS_PREFIX_aarch64-linux-android-
32
CC_aarch64-linux-android=$(CFG_AARCH64_LINUX_ANDROID_NDK)/bin/aarch64-linux-android-gcc
43
CXX_aarch64-linux-android=$(CFG_AARCH64_LINUX_ANDROID_NDK)/bin/aarch64-linux-android-g++
54
CPP_aarch64-linux-android=$(CFG_AARCH64_LINUX_ANDROID_NDK)/bin/aarch64-linux-android-gcc -E

branches/stable/mk/cfg/asmjs-unknown-emscripten.mk

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

branches/stable/mk/cfg/i686-unknown-linux-musl.mk

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

branches/stable/mk/cfg/x86_64-apple-ios.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ CFG_UNIXY_x86_64-apple-ios := 1
2929
CFG_LDPATH_x86_64-apple-ios :=
3030
CFG_RUN_x86_64-apple-ios = $(2)
3131
CFG_RUN_TARG_x86_64-apple-ios = $(call CFG_RUN_x86_64-apple-ios,,$(2))
32-
CFG_GNU_TRIPLE_i386-apple-ios := x86_64-apple-ios
32+
CFG_GNU_TRIPLE_x86_64-apple-ios := x86_64-apple-ios

branches/stable/mk/cfg/x86_64-sun-solaris.mk

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CFG_LIB_GLOB_x86_64-unknown-bitrig=lib$(1)-*.so
99
CFG_LIB_DSYM_GLOB_x86_64-unknown-bitrig=$(1)-*.dylib.dSYM
1010
CFG_JEMALLOC_CFLAGS_x86_64-unknown-bitrig := -m64 -I/usr/include $(CFLAGS)
1111
CFG_GCCISH_CFLAGS_x86_64-unknown-bitrig := -Wall -Werror -fPIE -fPIC -m64 -I/usr/include $(CFLAGS)
12-
CFG_GCCISH_LINK_FLAGS_x86_64-unknown-bitrig := -shared -pic -pthread -m64 $(LDFLAGS)
12+
CFG_GCCISH_LINK_FLAGS_x86_64-unknown-bitrig := -shared -pic -pthread -m64
1313
CFG_GCCISH_DEF_FLAG_x86_64-unknown-bitrig := -Wl,--export-dynamic,--dynamic-list=
1414
CFG_LLC_FLAGS_x86_64-unknown-bitrig :=
1515
CFG_INSTALL_NAME_x86_64-unknown-bitrig =

branches/stable/mk/crates.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ DEPS_rustc_passes := syntax rustc core rustc_front
106106
DEPS_rustc_mir := rustc rustc_front syntax
107107
DEPS_rustc_resolve := arena rustc rustc_front log syntax
108108
DEPS_rustc_platform_intrinsics := rustc rustc_llvm
109-
DEPS_rustc_plugin := rustc rustc_metadata syntax rustc_mir
109+
DEPS_rustc_plugin := rustc rustc_metadata syntax
110110
DEPS_rustc_privacy := rustc rustc_front log syntax
111111
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back rustc_mir \
112112
log syntax serialize rustc_llvm rustc_front rustc_platform_intrinsics
@@ -139,13 +139,13 @@ ONLY_RLIB_alloc_system := 1
139139
# Documented-by-default crates
140140
DOC_CRATES := std alloc collections core libc rustc_unicode
141141

142-
ifeq ($(CFG_DISABLE_JEMALLOC),)
142+
ifdef CFG_DISABLE_JEMALLOC
143+
RUSTFLAGS_rustc_back := --cfg disable_jemalloc
144+
else
143145
TARGET_CRATES += alloc_jemalloc
144146
DEPS_std += alloc_jemalloc
145147
DEPS_alloc_jemalloc := core libc native:jemalloc
146148
ONLY_RLIB_alloc_jemalloc := 1
147-
else
148-
RUSTFLAGS_rustc_back := --cfg disable_jemalloc
149149
endif
150150

151151
################################################################################

branches/stable/mk/docs.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ DOC_L10N_TARGETS :=
7171

7272
# If NO_REBUILD is set then break the dependencies on rustdoc so we
7373
# build the documentation without having to rebuild rustdoc.
74-
ifeq ($(NO_REBUILD),)
74+
ifndef NO_REBUILD
7575
HTML_DEPS := $(RUSTDOC_EXE)
7676
else
7777
HTML_DEPS :=
@@ -152,7 +152,7 @@ define DEF_LIB_DOC
152152

153153
# If NO_REBUILD is set then break the dependencies on rustdoc so we
154154
# build crate documentation without having to rebuild rustdoc.
155-
ifeq ($(NO_REBUILD),)
155+
ifndef NO_REBUILD
156156
LIB_DOC_DEP_$(1) = \
157157
$$(CRATEFILE_$(1)) \
158158
$$(RSINPUTS_$(1)) \

branches/stable/mk/grammar.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ $(BG)RustLexer.class: $(BG) $(SG)RustLexer.g4
4141

4242
check-build-lexer-verifier: $(BG)verify
4343

44-
ifeq ($(NO_REBUILD),)
45-
VERIFY_DEPS := rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.rustc
44+
ifndef NO_REBUILD
45+
VERIFY_DEPS := rustc-stage2-H-$(CFG_BUILD) $(LD)stamp.rustc
4646
else
4747
VERIFY_DEPS :=
4848
endif

branches/stable/mk/host.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# $(5) - the name of the crate being processed
1919
define CP_HOST_STAGE_N_CRATE
2020

21-
ifeq ($$(ONLY_RLIB_$(5)),)
21+
ifndef ONLY_RLIB_$(5)
2222
$$(HLIB$(2)_H_$(4))/stamp.$(5): \
2323
$$(TLIB$(1)_T_$(3)_H_$(4))/stamp.$(5) \
2424
$$(RUST_DEPS_$(5):%=$$(HLIB$(2)_H_$(4))/stamp.%) \

branches/stable/mk/install.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ install-runtime-target-$(1)-cleanup:
121121
endef
122122

123123
$(foreach target,$(CFG_TARGET), \
124-
$(if $(findstring $(CFG_ADB_DEVICE_STATUS),"true"), \
124+
$(if $(findstring $(CFG_ADB_DEVICE_STATUS),true), \
125125
$(eval $(call INSTALL_RUNTIME_TARGET_N,$(taget),$(CFG_BUILD))) \
126126
$(eval $(call INSTALL_RUNTIME_TARGET_CLEANUP_N,$(target))) \
127127
))

branches/stable/mk/llvm.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ $$(LLVM_STAMP_$(1)): $$(S)src/rustllvm/llvm-auto-clean-trigger
7171
@$$(call E, make: done cleaning llvm)
7272
touch -r $$@.start_time $$@ && rm $$@.start_time
7373

74-
ifeq ($$(CFG_ENABLE_LLVM_STATIC_STDCPP),1)
74+
ifdef CFG_ENABLE_LLVM_STATIC_STDCPP
7575
LLVM_STDCPP_RUSTFLAGS_$(1) = -L "$$(dir $$(shell $$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
7676
-print-file-name=lib$(CFG_STDCPP_NAME).a))"
7777
else
@@ -95,9 +95,6 @@ endef
9595
$(foreach host,$(CFG_HOST), \
9696
$(eval $(call DEF_LLVM_RULES,$(host))))
9797

98-
$(foreach host,$(CFG_HOST), \
99-
$(eval LLVM_CONFIGS := $(LLVM_CONFIGS) $(LLVM_CONFIG_$(host))))
100-
10198
# This can't be done in target.mk because it's included before this file.
10299
define LLVM_LINKAGE_DEPS
103100
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.rustc_llvm: $$(LLVM_LINKAGE_PATH_$(2))

0 commit comments

Comments
 (0)