Skip to content

Commit 872a55b

Browse files
committed
---
yaml --- r: 172286 b: refs/heads/master c: c163eff h: refs/heads/master v: v3
1 parent 35d37a2 commit 872a55b

File tree

1,093 files changed

+14963
-15386
lines changed

Some content is hidden

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

1,093 files changed

+14963
-15386
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: a09b139f9c4c6f4a2c3fb78e906e3ae0abf7f901
2+
refs/heads/master: c163effc2b4704e3ec9d0011c90a8bd0bab4cb6c
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
55
refs/heads/try: 705b92bdfe33d0d6febdf945340262514e1b3b5c

trunk/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ documentation.
66
## Quick Start
77

88
1. Download a [binary installer][installer] for your platform.
9-
2. Read [The Rust Programming Language][trpl].
9+
2. Read the [guide].
1010
3. Enjoy!
1111

1212
> ***Note:*** Windows users can read the detailed
1313
> [using Rust on Windows][win-wiki] notes on the wiki.
1414
1515
[installer]: http://www.rust-lang.org/install.html
16-
[trpl]: http://doc.rust-lang.org/book/index.html
16+
[guide]: http://doc.rust-lang.org/guide.html
1717
[win-wiki]: https://github.com/rust-lang/rust/wiki/Using-Rust-on-Windows
1818

1919
## Building from Source
@@ -53,7 +53,7 @@ documentation.
5353
When complete, `make install` will place several programs into
5454
`/usr/local/bin`: `rustc`, the Rust compiler, and `rustdoc`, the
5555
API-documentation tool.
56-
3. Read [The Rust Programming Language][trpl].
56+
3. Read the [guide].
5757
4. Enjoy!
5858

5959
### Building on Windows
@@ -75,7 +75,7 @@ To easily build on windows we can use [MSYS2](http://sourceforge.net/projects/ms
7575

7676
[repo]: https://github.com/rust-lang/rust
7777
[tarball]: https://static.rust-lang.org/dist/rust-nightly.tar.gz
78-
[trpl]: http://doc.rust-lang.org/book/index.html
78+
[guide]: http://doc.rust-lang.org/guide.html
7979

8080
## Notes
8181

trunk/RELEASES.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ Version 1.0.0-alpha (January 2015)
1919
distribution into the Cargo ecosystem so they can evolve
2020
separately and don't need to be stabilized as quickly, including
2121
'time', 'getopts', 'num', 'regex', and 'term'.
22-
* Documentation continues to be expanded with more API coverage, more
23-
examples, and more in-depth explanations. The guides have been
24-
consolidated into [The Rust Programming Language][trpl].
25-
* "[Rust By Example][rbe]" is now maintained by the Rust team.
22+
* Documentation continues to be expanded with more guides, more
23+
API coverage and more examples.
2624
* All official Rust binary installers now come with [Cargo], the
2725
Rust package manager.
2826

@@ -181,8 +179,6 @@ Version 1.0.0-alpha (January 2015)
181179
[objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
182180
[assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
183181
[ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
184-
[trpl]: http://doc.rust-lang.org/book/index.html
185-
[rbe]: http://rustbyexample.com/
186182

187183
Version 0.12.0 (October 2014)
188184
-----------------------------

trunk/configure

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,18 @@ do
10551055
make_dir $h/test/debuginfo-gdb
10561056
make_dir $h/test/debuginfo-lldb
10571057
make_dir $h/test/codegen
1058+
make_dir $h/test/doc-guide
1059+
make_dir $h/test/doc-guide-ffi
1060+
make_dir $h/test/doc-guide-runtime
1061+
make_dir $h/test/doc-guide-macros
1062+
make_dir $h/test/doc-guide-ownership
1063+
make_dir $h/test/doc-guide-pointers
1064+
make_dir $h/test/doc-guide-container
1065+
make_dir $h/test/doc-guide-tasks
1066+
make_dir $h/test/doc-guide-plugin
1067+
make_dir $h/test/doc-guide-crates
1068+
make_dir $h/test/doc-guide-error-handling
1069+
make_dir $h/test/doc-reference
10581070
done
10591071

10601072
# Configure submodules

trunk/mk/cfg/aarch64-apple-ios.mk

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

trunk/mk/cfg/arm-apple-ios.mk

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# arm-apple-ios configuration
2+
CFG_SDK_NAME_arm-apple-ios = iphoneos
3+
CFG_SDK_ARCHS_arm-apple-ios = armv7
4+
ifneq ($(findstring darwin,$(CFG_OSTYPE)),)
5+
CFG_IOS_SDK = $(shell xcrun --show-sdk-path -sdk iphoneos 2>/dev/null)
6+
CFG_IOS_FLAGS = -target armv7-apple-ios -isysroot $(CFG_IOS_SDK) -mios-version-min=7.0
7+
CC_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang)
8+
CXX_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
9+
CPP_arm-apple-ios = $(shell xcrun -find -sdk iphoneos clang++)
10+
AR_arm-apple-ios = $(shell xcrun -find -sdk iphoneos ar)
11+
endif
12+
CFG_LIB_NAME_arm-apple-ios = lib$(1).a
13+
CFG_LIB_GLOB_arm-apple-ios = lib$(1)-*.a
14+
CFG_STATIC_LIB_NAME_arm-apple-ios=lib$(1).a
15+
CFG_LIB_DSYM_GLOB_arm-apple-ios = lib$(1)-*.a.dSYM
16+
CFG_JEMALLOC_CFLAGS_arm-apple-ios := -arch armv7 -mfpu=vfp3 $(CFG_IOS_FLAGS)
17+
CFG_GCCISH_CFLAGS_arm-apple-ios := -Wall -Werror -g -fPIC $(CFG_IOS_FLAGS) -mfpu=vfp3 -arch armv7
18+
CFG_GCCISH_CXXFLAGS_arm-apple-ios := -fno-rtti $(CFG_IOS_FLAGS) -I$(CFG_IOS_SDK)/usr/include/c++/4.2.1
19+
CFG_GCCISH_LINK_FLAGS_arm-apple-ios := -lpthread -syslibroot $(CFG_IOS_SDK) -Wl,-no_compact_unwind
20+
CFG_GCCISH_DEF_FLAG_arm-apple-ios := -Wl,-exported_symbols_list,
21+
CFG_GCCISH_PRE_LIB_FLAGS_arm-apple-ios :=
22+
CFG_GCCISH_POST_LIB_FLAGS_arm-apple-ios :=
23+
CFG_DEF_SUFFIX_arm-apple-ios := .darwin.def
24+
CFG_LLC_FLAGS_arm-apple-ios := -mattr=+vfp3,+v7,+thumb2,+neon -march=arm
25+
CFG_INSTALL_NAME_arm-apple-ios = -Wl,-install_name,@rpath/$(1)
26+
CFG_EXE_SUFFIX_arm-apple-ios :=
27+
CFG_WINDOWSY_arm-apple-ios :=
28+
CFG_UNIXY_arm-apple-ios := 1
29+
CFG_PATH_MUNGE_arm-apple-ios := true
30+
CFG_LDPATH_arm-apple-ios :=
31+
CFG_RUN_arm-apple-ios = $(2)
32+
CFG_RUN_TARG_arm-apple-ios = $(call CFG_RUN_arm-apple-ios,,$(2))
33+
RUSTC_FLAGS_arm-apple-ios := -C relocation_model=pic
34+
RUSTC_CROSS_FLAGS_arm-apple-ios :=-C relocation_model=pic
35+
CFG_GNU_TRIPLE_arm-apple-ios := arm-apple-ios

trunk/mk/cfg/armv7-apple-ios.mk

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

trunk/mk/cfg/armv7s-apple-ios.mk

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

trunk/mk/cfg/i386-apple-ios.mk

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# i386-apple-ios configuration
2-
CFG_SDK_NAME_i386-apple-ios := iphonesimulator
3-
CFG_SDK_ARCHS_i386-apple-ios := i386
2+
CFG_SDK_NAME_i386-apple-ios = iphonesimulator
3+
CFG_SDK_ARCHS_i386-apple-ios = i386
44
ifneq ($(findstring darwin,$(CFG_OSTYPE)),)
5-
CFG_IOSSIM_SDK_i386-apple-ios := $(shell xcrun --show-sdk-path -sdk iphonesimulator 2>/dev/null)
6-
CFG_IOSSIM_FLAGS_i386-apple-ios := -m32 -target i386-apple-ios -isysroot $(CFG_IOSSIM_SDK_i386-apple-ios) -mios-simulator-version-min=7.0
5+
CFG_IOSSIM_SDK = $(shell xcrun --show-sdk-path -sdk iphonesimulator 2>/dev/null)
6+
CFG_IOSSIM_FLAGS = -target i386-apple-ios -isysroot $(CFG_IOSSIM_SDK) -mios-simulator-version-min=7.0
77
CC_i386-apple-ios = $(shell xcrun -find -sdk iphonesimulator clang)
88
CXX_i386-apple-ios = $(shell xcrun -find -sdk iphonesimulator clang++)
99
CPP_i386-apple-ios = $(shell xcrun -find -sdk iphonesimulator clang++)
@@ -13,21 +13,21 @@ CFG_LIB_NAME_i386-apple-ios = lib$(1).a
1313
CFG_LIB_GLOB_i386-apple-ios = lib$(1)-*.dylib
1414
CFG_STATIC_LIB_NAME_i386-apple-ios=lib$(1).a
1515
CFG_LIB_DSYM_GLOB_i386-apple-ios = lib$(1)-*.dylib.dSYM
16-
CFG_GCCISH_CFLAGS_i386-apple-ios := -Wall -Werror -g -fPIC -m32 $(CFG_IOSSIM_FLAGS_i386-apple-ios)
17-
CFG_GCCISH_CXXFLAGS_i386-apple-ios := -fno-rtti $(CFG_IOSSIM_FLAGS_i386-apple-ios) -I$(CFG_IOSSIM_SDK_i386-apple-ios)/usr/include/c++/4.2.1
18-
CFG_GCCISH_LINK_FLAGS_i386-apple-ios := -lpthread -m32 -Wl,-no_compact_unwind -m32 -Wl,-syslibroot $(CFG_IOSSIM_SDK_i386-apple-ios)
19-
CFG_GCCISH_DEF_FLAG_i386-apple-ios := -Wl,-exported_symbols_list,
20-
CFG_GCCISH_PRE_LIB_FLAGS_i386-apple-ios :=
21-
CFG_GCCISH_POST_LIB_FLAGS_i386-apple-ios :=
22-
CFG_DEF_SUFFIX_i386-apple-ios := .darwin.def
16+
CFG_GCCISH_CFLAGS_i386-apple-ios = -Wall -Werror -g -fPIC -m32 $(CFG_IOSSIM_FLAGS)
17+
CFG_GCCISH_CXXFLAGS_i386-apple-ios = -fno-rtti $(CFG_IOSSIM_FLAGS) -I$(CFG_IOSSIM_SDK)/usr/include/c++/4.2.1
18+
CFG_GCCISH_LINK_FLAGS_i386-apple-ios = -lpthread -Wl,-no_compact_unwind -m32 -Wl,-syslibroot $(CFG_IOSSIM_SDK)
19+
CFG_GCCISH_DEF_FLAG_i386-apple-ios = -Wl,-exported_symbols_list,
20+
CFG_GCCISH_PRE_LIB_FLAGS_i386-apple-ios =
21+
CFG_GCCISH_POST_LIB_FLAGS_i386-apple-ios =
22+
CFG_DEF_SUFFIX_i386-apple-ios = .darwin.def
2323
CFG_LLC_FLAGS_i386-apple-ios =
2424
CFG_INSTALL_NAME_i386-apple-ios = -Wl,-install_name,@rpath/$(1)
25-
CFG_EXE_SUFFIX_i386-apple-ios :=
26-
CFG_WINDOWSY_i386-apple-ios :=
27-
CFG_UNIXY_i386-apple-ios := 1
28-
CFG_PATH_MUNGE_i386-apple-ios = :true
25+
CFG_EXE_SUFFIX_i386-apple-ios =
26+
CFG_WINDOWSY_i386-apple-ios =
27+
CFG_UNIXY_i386-apple-ios = 1
28+
CFG_PATH_MUNGE_i386-apple-ios = true
2929
CFG_LDPATH_i386-apple-ios =
3030
CFG_RUN_i386-apple-ios = $(2)
3131
CFG_RUN_TARG_i386-apple-ios = $(call CFG_RUN_i386-apple-ios,,$(2))
32-
CFG_JEMALLOC_CFLAGS_i386-apple-ios = $(CFG_IOSSIM_FLAGS_i386-apple-ios) -target i386-apple-ios #-Wl,-syslibroot $(CFG_IOSSIM_SDK_i386-apple-ios) -Wl,-no_compact_unwind
32+
CFG_JEMALLOC_CFLAGS_i386-apple-ios = $(CFG_IOSSIM_FLAGS) -target i386-apple-ios -Wl,-syslibroot $(CFG_IOSSIM_SDK) -Wl,-no_compact_unwind
3333
CFG_GNU_TRIPLE_i386-apple-ios := i386-apple-ios

trunk/mk/cfg/x86_64-apple-ios.mk

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

trunk/mk/crates.mk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
5757
rustc_trans rustc_back rustc_llvm
5858
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
5959
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
60-
TOOLS := compiletest rustdoc rustc rustbook
60+
TOOLS := compiletest rustdoc rustc
6161

6262
DEPS_core :=
6363
DEPS_libc := core
@@ -99,11 +99,9 @@ DEPS_fmt_macros = std
9999
TOOL_DEPS_compiletest := test getopts
100100
TOOL_DEPS_rustdoc := rustdoc
101101
TOOL_DEPS_rustc := rustc_driver
102-
TOOL_DEPS_rustbook := std regex rustdoc
103102
TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs
104103
TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
105104
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
106-
TOOL_SOURCE_rustbook := $(S)src/rustbook/main.rs
107105

108106
ONLY_RLIB_core := 1
109107
ONLY_RLIB_libc := 1

trunk/mk/dist.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ PKG_FILES := \
5959
rustllvm \
6060
snapshots.txt \
6161
rust-installer \
62-
rustbook \
6362
test) \
6463
$(PKG_GITMODULES) \
6564
$(filter-out config.stamp, \

trunk/mk/docs.mk

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# except according to those terms.
1010

1111
######################################################################
12-
# The various pieces of standalone documentation.
12+
# The various pieces of standalone documentation: guides, manual, etc
1313
#
1414
# The DOCS variable is their names (with no file extension).
1515
#
@@ -25,17 +25,13 @@
2525
# L10N_LANGS are the languages for which the docs have been
2626
# translated.
2727
######################################################################
28-
DOCS := index intro tutorial complement-bugreport \
29-
complement-lang-faq complement-design-faq complement-project-faq \
30-
rustdoc reference
28+
DOCS := index intro tutorial guide guide-ffi guide-macros guide-ownership \
29+
guide-tasks guide-container guide-pointers guide-testing \
30+
guide-plugin guide-crates complement-bugreport guide-error-handling \
31+
complement-lang-faq complement-design-faq complement-project-faq \
32+
rustdoc guide-unsafe guide-strings reference
3133

32-
# Legacy guides, preserved for a while to reduce the number of 404s
33-
DOCS += guide-crates guide-error-handling guide-ffi guide-macros guide \
34-
guide-ownership guide-plugins guide-pointers guide-strings guide-tasks \
35-
guide-testing
36-
37-
38-
PDF_DOCS := reference
34+
PDF_DOCS := guide reference
3935

4036
RUSTDOC_DEPS_reference := doc/full-toc.inc
4137
RUSTDOC_FLAGS_reference := --html-in-header=doc/full-toc.inc
@@ -65,15 +61,9 @@ RUSTDOC_EXE = $(HBIN2_H_$(CFG_BUILD))/rustdoc$(X_$(CFG_BUILD))
6561
# ./configure
6662
RUSTDOC = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(RUSTDOC_EXE)
6763

68-
# The rustbook executable...
69-
RUSTBOOK_EXE = $(HBIN2_H_$(CFG_BUILD))/rustbook$(X_$(CFG_BUILD))
70-
# ...with rpath included in case --disable-rpath was provided to
71-
# ./configure
72-
RUSTBOOK = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(RUSTBOOK_EXE)
73-
7464
D := $(S)src/doc
7565

76-
DOC_TARGETS := trpl
66+
DOC_TARGETS :=
7767
COMPILER_DOC_TARGETS :=
7868
DOC_L10N_TARGETS :=
7969

@@ -280,9 +270,3 @@ endif
280270

281271
docs: $(DOC_TARGETS)
282272
compiler-docs: $(COMPILER_DOC_TARGETS)
283-
284-
trpl: doc/book/index.html
285-
286-
doc/book/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/trpl/*.md) | doc/
287-
$(Q)rm -rf doc/book
288-
$(Q)$(RUSTBOOK) build $(S)src/doc/trpl doc/book

0 commit comments

Comments
 (0)