Skip to content

Commit e730731

Browse files
ricky26alexcrichton
authored andcommitted
---
yaml --- r: 214526 b: refs/heads/beta c: 315750a h: refs/heads/master v: v3
1 parent 9d8c248 commit e730731

File tree

390 files changed

+6277
-10547
lines changed

Some content is hidden

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

390 files changed

+6277
-10547
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: c322dbbf8a518d00c6db689ca80b0047f2328890
26+
refs/heads/beta: 315750ac92a8114a96b35352ec88f82d21d5fbec
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 8c0aa6d64ebab528f7eb182812007155d6044972
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/AUTHORS.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Aaron Raimist <[email protected]>
88
Aaron Todd <[email protected]>
99
Aaron Turon <[email protected]>
1010
Aaron Weiss <[email protected]>
11-
Abhishek Chanda <abhishek.becs@gmail.com>
11+
Abhishek Chanda <abhishek@cloudscaling.com>
1212
Adam Bozanich <[email protected]>
1313
Adam Jacob <[email protected]>
1414
Adam Roben <[email protected]>
@@ -736,7 +736,6 @@ Rob Hoelz <[email protected]>
736736
Robert Buonpastore <[email protected]>
737737
Robert Clipsham <[email protected]>
738738
Robert Gawdzik <[email protected]>
739-
Robert Foss <[email protected]>
740739
Robert Irelan <[email protected]>
741740
Robert Knight <[email protected]>
742741
Robert Millar <[email protected]>

branches/beta/README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# The Rust Programming Language
22

3-
Rust is a systems programming language that is fast, memory safe and
4-
multithreaded, but does not employ a garbage collector or otherwise
5-
impose significant runtime overhead.
6-
7-
This repo contains the code for `rustc`, the Rust compiler, as well
8-
as standard libraries, tools and documentation for Rust.
3+
This is a compiler for Rust, including standard libraries, tools and
4+
documentation. Rust is a systems programming language that is fast,
5+
memory safe and multithreaded, but does not employ a garbage collector
6+
or otherwise impose significant runtime overhead.
97

108
## Quick Start
119

@@ -89,11 +87,9 @@ fetch snapshots, and an OS that can execute the available snapshot binaries.
8987

9088
Snapshot binaries are currently built and tested on several platforms:
9189

92-
| Platform \ Architecture | x86 | x86_64 |
93-
|--------------------------------|-----|--------|
94-
| Windows (7, 8, Server 2008 R2) |||
95-
| Linux (2.6.18 or later) |||
96-
| OSX (10.7 Lion or later) |||
90+
* Windows (7, 8, Server 2008 R2), x86 and x86-64 (64-bit support added in Rust 0.12.0)
91+
* Linux (2.6.18 or later, various distributions), x86 and x86-64
92+
* OSX 10.7 (Lion) or greater, x86 and x86-64
9793

9894
You may find that other platforms work, but these are our officially
9995
supported build environments that are most likely to work.

branches/beta/RELEASES.md

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Language
2323
* Digits of binary and octal literals are [lexed more eagerly][lex] to
2424
improve error messages and macro behavior. For example, `0b1234` is
2525
now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
26-
* Trait bounds [are always invariant][inv], eliminating the need for
26+
* Trait bounds [are always invariant][inv], eleminating the need for
2727
the `PhantomFn` and `MarkerTrait` lang items, which have been
2828
removed.
2929
* ["-" is no longer a valid character in crate names][cr], the `extern crate
@@ -162,7 +162,7 @@ Misc
162162

163163

164164
Version 1.0.0-alpha.2 (February 2015)
165-
=====================================
165+
-------------------------------------
166166

167167
* ~1300 changes, numerous bugfixes
168168

@@ -260,9 +260,8 @@ Version 1.0.0-alpha.2 (February 2015)
260260
[ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
261261
[un]: https://github.com/rust-lang/rust/pull/22256
262262

263-
264263
Version 1.0.0-alpha (January 2015)
265-
==================================
264+
----------------------------------
266265

267266
* ~2400 changes, numerous bugfixes
268267

@@ -447,9 +446,8 @@ Version 1.0.0-alpha (January 2015)
447446
[trpl]: http://doc.rust-lang.org/book/index.html
448447
[rbe]: http://rustbyexample.com/
449448

450-
451449
Version 0.12.0 (October 2014)
452-
=============================
450+
-----------------------------
453451

454452
* ~1900 changes, numerous bugfixes
455453

@@ -570,9 +568,8 @@ Version 0.12.0 (October 2014)
570568
* Official Rust binaries on Linux are more compatible with older
571569
kernels and distributions, built on CentOS 5.10.
572570

573-
574571
Version 0.11.0 (July 2014)
575-
==========================
572+
-------------------------
576573

577574
* ~1700 changes, numerous bugfixes
578575

@@ -703,9 +700,8 @@ Version 0.11.0 (July 2014)
703700
* Error message related to non-exhaustive match expressions have been
704701
greatly improved.
705702

706-
707703
Version 0.10 (April 2014)
708-
=========================
704+
-------------------------
709705

710706
* ~1500 changes, numerous bugfixes
711707

@@ -870,9 +866,8 @@ Version 0.10 (April 2014)
870866
* search works across crates that have been rendered to the same output
871867
directory.
872868

873-
874869
Version 0.9 (January 2014)
875-
==========================
870+
--------------------------
876871

877872
* ~1800 changes, numerous bugfixes
878873

@@ -1036,9 +1031,8 @@ Version 0.9 (January 2014)
10361031
* `rustc` adds a `--dep-info` flag for communicating dependencies to
10371032
build tools.
10381033

1039-
10401034
Version 0.8 (September 2013)
1041-
============================
1035+
--------------------------
10421036

10431037
* ~2200 changes, numerous bugfixes
10441038

@@ -1192,9 +1186,8 @@ Version 0.8 (September 2013)
11921186
* A new documentation backend, rustdoc_ng, is available for use. It is
11931187
still invoked through the normal `rustdoc` command.
11941188

1195-
11961189
Version 0.7 (July 2013)
1197-
=======================
1190+
-----------------------
11981191

11991192
* ~2000 changes, numerous bugfixes
12001193

@@ -1309,9 +1302,8 @@ Version 0.7 (July 2013)
13091302
* Various improvements to rustdoc.
13101303
* Improvements to rustpkg (see the detailed release notes).
13111304

1312-
13131305
Version 0.6 (April 2013)
1314-
========================
1306+
------------------------
13151307

13161308
* ~2100 changes, numerous bugfixes
13171309

@@ -1412,9 +1404,8 @@ Version 0.6 (April 2013)
14121404
* Rust code may be embedded in foreign code under limited circumstances
14131405
* Inline assembler supported by new asm!() syntax extension.
14141406

1415-
14161407
Version 0.5 (December 2012)
1417-
===========================
1408+
---------------------------
14181409

14191410
* ~900 changes, numerous bugfixes
14201411

@@ -1469,9 +1460,8 @@ Version 0.5 (December 2012)
14691460
* Added a preliminary REPL, `rusti`
14701461
* License changed from MIT to dual MIT/APL2
14711462

1472-
14731463
Version 0.4 (October 2012)
1474-
==========================
1464+
--------------------------
14751465

14761466
* ~2000 changes, numerous bugfixes
14771467

@@ -1525,9 +1515,8 @@ Version 0.4 (October 2012)
15251515
Rust-based (visitor) code
15261516
* All hash functions and tables converted to secure, randomized SipHash
15271517

1528-
15291518
Version 0.3 (July 2012)
1530-
========================
1519+
------------------------
15311520

15321521
* ~1900 changes, numerous bugfixes
15331522

@@ -1584,9 +1573,8 @@ Version 0.3 (July 2012)
15841573
* Tool improvements
15851574
* Cargo automatically resolves dependencies
15861575

1587-
15881576
Version 0.2 (March 2012)
1589-
=========================
1577+
-------------------------
15901578

15911579
* >1500 changes, numerous bugfixes
15921580
@@ -1625,9 +1613,8 @@ Version 0.2 (March 2012)
16251613
* Merged per-platform std::{os*, fs*} to core::{libc, os}
16261614
* Extensive cleanup, regularization in libstd, libcore
16271615

1628-
16291616
Version 0.1 (January 20, 2012)
1630-
===============================
1617+
-------------------------------
16311618

16321619
* Most language features work, including:
16331620
* Unique pointers, unique closures, move semantics

branches/beta/configure

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ probe() {
106106
T=$(command -v $P 2>&1)
107107
if [ $? -eq 0 ]
108108
then
109-
VER0=$($P --version 2>/dev/null \
110-
| grep -o '[vV]\?[0-9][0-9.][a-z0-9.-]*' | head -1 )
109+
VER0=$($P --version 2>/dev/null | head -1 \
110+
| sed -e 's/[^0-9]*\([vV]\?[0-9.]\+[^ ]*\).*/\1/' )
111111
if [ $? -eq 0 -a "x${VER0}" != "x" ]
112112
then
113113
VER="($VER0)"
@@ -610,7 +610,7 @@ CFG_TARGET=$(to_llvm_triple $CFG_TARGET)
610610
# there's no rpath. This is where the build system itself puts libraries;
611611
# --libdir is used to configure the installation directory.
612612
# FIXME: This needs to parameterized over target triples. Do it in platform.mk
613-
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ]
613+
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ] || [ "$CFG_OSTYPE" = "pc-windows-msvc" ]
614614
then
615615
CFG_LIBDIR_RELATIVE=bin
616616
else
@@ -628,7 +628,8 @@ esac
628628

629629
CFG_LIBDIR_RELATIVE=`echo ${CFG_LIBDIR} | cut -c$((${#CFG_PREFIX}+${CAT_INC}))-`
630630

631-
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ] && [ "$CFG_LIBDIR_RELATIVE" != "bin" ]; then
631+
if ( [ "$CFG_OSTYPE" = "pc-windows-gnu" ] || [ "$CFG_OSTYPE" = "pc-windows-msvc" ] ) \
632+
&& [ "$CFG_LIBDIR_RELATIVE" != "bin" ]; then
632633
err "libdir on windows should be set to 'bin'"
633634
fi
634635

@@ -711,20 +712,6 @@ else
711712
probe_need CFG_GIT git
712713
fi
713714

714-
# Use `md5sum` on GNU platforms, or `md5 -q` on BSD
715-
probe CFG_MD5 md5
716-
probe CFG_MD5SUM md5sum
717-
if [ -n "$CFG_MD5" ]
718-
then
719-
CFG_HASH_COMMAND="$CFG_MD5 -q | head -c 8"
720-
elif [ -n "$CFG_MD5SUM" ]
721-
then
722-
CFG_HASH_COMMAND="$CFG_MD5SUM | head -c 8"
723-
else
724-
err 'could not find one of: md5 md5sum'
725-
fi
726-
putvar CFG_HASH_COMMAND
727-
728715
probe CFG_CLANG clang++
729716
probe CFG_CCACHE ccache
730717
probe CFG_GCC gcc
@@ -817,7 +804,7 @@ then
817804
fi
818805

819806
BIN_SUF=
820-
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ]
807+
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ] || [ "$CFG_OSTYPE" = "pc-windows-msvc" ]
821808
then
822809
BIN_SUF=.exe
823810
fi
@@ -1325,7 +1312,7 @@ do
13251312
# (llvm's configure tries to find pthread first, so we have to disable it explicitly.)
13261313
# Also note that pthreads works badly on mingw-w64 systems: #8996
13271314
case "$CFG_BUILD" in
1328-
(*-windows-*)
1315+
(*-windows-gnu)
13291316
LLVM_OPTS="$LLVM_OPTS --disable-pthreads"
13301317
;;
13311318
esac

branches/beta/mk/cfg/aarch64-apple-ios.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ifneq ($(findstring darwin,$(CFG_OSTYPE)),)
55
CFG_IOS_SDK_aarch64-apple-ios := $(shell xcrun --show-sdk-path -sdk iphoneos 2>/dev/null)
66
CFG_IOS_SDK_FLAGS_aarch64-apple-ios := -target aarch64-apple-darwin -isysroot $(CFG_IOS_SDK_aarch64-apple-ios) -mios-version-min=7.0 -arch arm64
77
CC_aarch64-apple-ios = $(shell xcrun -find -sdk iphoneos clang)
8+
LINK_aarch64-apple-ios = $(shell xcrun -find -sdk iphoneos clang)
89
CXX_aarch64-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
910
CPP_aarch64-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
1011
AR_aarch64-apple-ios = $(shell xcrun -find -sdk iphoneos ar)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# aarch64-linux-android configuration
22
# CROSS_PREFIX_aarch64-linux-android-
33
CC_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-gcc
4+
LINK_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-gcc
45
CXX_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-g++
56
CPP_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-gcc -E
67
AR_aarch64-linux-android=$(CFG_ANDROID_CROSS_PATH)/bin/aarch64-linux-android-ar

branches/beta/mk/cfg/aarch64-unknown-linux-gnu.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# aarch64-unknown-linux-gnu configuration
22
CROSS_PREFIX_aarch64-unknown-linux-gnu=aarch64-linux-gnu-
33
CC_aarch64-unknown-linux-gnu=gcc
4+
LINK_aarch64-unknown-linux-gnu=gcc
45
CXX_aarch64-unknown-linux-gnu=g++
56
CPP_aarch64-unknown-linux-gnu=gcc -E
67
AR_aarch64-unknown-linux-gnu=ar

branches/beta/mk/cfg/arm-linux-androideabi.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# arm-linux-androideabi configuration
2+
LINK_arm-linux-androideabi=$(CFG_ANDROID_CROSS_PATH)/bin/arm-linux-androideabi-gcc
23
CC_arm-linux-androideabi=$(CFG_ANDROID_CROSS_PATH)/bin/arm-linux-androideabi-gcc
34
CXX_arm-linux-androideabi=$(CFG_ANDROID_CROSS_PATH)/bin/arm-linux-androideabi-g++
45
CPP_arm-linux-androideabi=$(CFG_ANDROID_CROSS_PATH)/bin/arm-linux-androideabi-gcc -E

branches/beta/mk/cfg/x86_64-pc-windows-gnu.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# x86_64-pc-windows-gnu configuration
22
CROSS_PREFIX_x86_64-pc-windows-gnu=x86_64-w64-mingw32-
33
CC_x86_64-pc-windows-gnu=gcc
4+
LINK_x86_64-pc-windows-gnu=gcc
45
CXX_x86_64-pc-windows-gnu=g++
56
CPP_x86_64-pc-windows-gnu=gcc -E
67
AR_x86_64-pc-windows-gnu=ar
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# x86_64-pc-windows-msvc configuration
2+
CROSS_PREFIX_x86_64-pc-windows-msvc=
3+
CC_x86_64-pc-windows-msvc=cl
4+
LINK_x86_64-pc-windows-msvc=link
5+
CXX_x86_64-pc-windows-msvc=g++
6+
CPP_x86_64-pc-windows-msvc=gcc -E
7+
AR_x86_64-pc-windows-msvc=llvm-ar
8+
CFG_LIB_NAME_x86_64-pc-windows-msvc=$(1).dll
9+
CFG_STATIC_LIB_NAME_x86_64-pc-windows-msvc=$(1).lib
10+
CFG_LIB_GLOB_x86_64-pc-windows-msvc=$(1)-*.dll
11+
CFG_LIB_DSYM_GLOB_x86_64-pc-windows-msvc=$(1)-*.dylib.dSYM
12+
CFG_JEMALLOC_CFLAGS_x86_64-pc-windows-msvc := $(CFLAGS)
13+
CFG_GCCISH_CFLAGS_x86_64-pc-windows-msvc := $(CFLAGS)
14+
CFG_GCCISH_CXXFLAGS_x86_64-pc-windows-msvc := -fno-rtti $(CXXFLAGS)
15+
CFG_GCCISH_LINK_FLAGS_x86_64-pc-windows-msvc := -shared -g -m64
16+
CFG_GCCISH_DEF_FLAG_x86_64-pc-windows-msvc :=
17+
CFG_GCCISH_PRE_LIB_FLAGS_x86_64-pc-windows-msvc :=
18+
CFG_GCCISH_POST_LIB_FLAGS_x86_64-pc-windows-msvc :=
19+
CFG_DEF_SUFFIX_x86_64-pc-windows-msvc := .windows.def
20+
CFG_LLC_FLAGS_x86_64-pc-windows-msvc :=
21+
CFG_INSTALL_NAME_x86_64-pc-windows-msvc =
22+
CFG_EXE_SUFFIX_x86_64-pc-windows-msvc := .exe
23+
CFG_WINDOWSY_x86_64-pc-windows-msvc := 1
24+
CFG_UNIXY_x86_64-pc-windows-msvc :=
25+
CFG_PATH_MUNGE_x86_64-pc-windows-msvc :=
26+
CFG_LDPATH_x86_64-pc-windows-msvc :=
27+
CFG_RUN_x86_64-pc-windows-msvc=$(2)
28+
CFG_RUN_TARG_x86_64-pc-windows-msvc=$(call CFG_RUN_x86_64-pc-windows-msvc,,$(2))
29+
CFG_GNU_TRIPLE_x86_64-pc-windows-msvc := x86_64-w64-mingw32

branches/beta/mk/main.mk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
######################################################################
1414

1515
# The version number
16-
CFG_RELEASE_NUM=1.2.0
16+
CFG_RELEASE_NUM=1.1.0
1717

1818
# An optional number to put after the label, e.g. '.2' -> '-beta.2'
1919
# NB Make sure it starts with a dot to conform to semver pre-release
2020
# versions (section 9)
2121
CFG_PRERELEASE_VERSION=.1
2222

23-
# Append a version-dependent hash to each library, so we can install different
24-
# versions in the same place
25-
CFG_FILENAME_EXTRA=$(shell printf '%s' $(CFG_RELEASE) | $(CFG_HASH_COMMAND))
23+
CFG_FILENAME_EXTRA=4e7c5e5c
2624

2725
ifeq ($(CFG_RELEASE_CHANNEL),stable)
2826
# This is the normal semver version string, e.g. "0.12.0", "0.12.0-nightly"

branches/beta/mk/platform.mk

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

158159
CFG_COMPILE_C_$(1) = $$(CC_$(1)) \

0 commit comments

Comments
 (0)