Skip to content

Commit ec395be

Browse files
author
bcoopers
committed
---
yaml --- r: 195542 b: refs/heads/master c: 45c10db h: refs/heads/master v: v3
1 parent b1f13d4 commit ec395be

File tree

390 files changed

+7429
-6476
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

+7429
-6476
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: 1d17e6eb1e181ef37cbb2d2df05bc84db7e4be8f
2+
refs/heads/master: 45c10db41f2af5919621ff69f5dc090cc917c1d3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b3317d68910900f135f9f38e43a7a699bc736b4a
55
refs/heads/try: 961e0358e1a5c0faaef606e31e9965742c1643bf

trunk/configure

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ case $CFG_OSTYPE in
404404
CFG_OSTYPE=pc-windows-gnu
405405
;;
406406

407-
# Thad's Cygwin identifiers below
407+
# Thad's Cygwin identifers below
408408

409409
# Vista 32 bit
410410
CYGWIN_NT-6.0)
@@ -526,8 +526,7 @@ VAL_OPTIONS=""
526526
opt valgrind 0 "run tests with valgrind (memcheck by default)"
527527
opt helgrind 0 "run tests with helgrind instead of memcheck"
528528
opt valgrind-rpass 1 "run rpass-valgrind tests with valgrind"
529-
opt docs 1 "build standard library documentation"
530-
opt compiler-docs 0 "build compiler documentation"
529+
opt docs 1 "build documentation"
531530
opt optimize 1 "build optimized rust code"
532531
opt optimize-cxx 1 "build optimized C++ code"
533532
opt optimize-llvm 1 "build optimized LLVM"

trunk/mk/crates.mk

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -122,34 +122,17 @@ ONLY_RLIB_rustc_bitflags := 1
122122
# You should not need to edit below this line
123123
################################################################################
124124

125-
# On channels where the only usable crate is std, only build documentation for
126-
# std. This keeps distributions small and doesn't clutter up the API docs with
127-
# confusing internal details from the crates behind the facade.
128-
#
129-
# (Disabled while cmr figures out how to change rustdoc to make reexports work
130-
# slightly nicer. Otherwise, all cross-crate links to Vec will go to
131-
# libcollections, breaking them, and [src] links for anything reexported will
132-
# not work.)
133-
134-
#ifeq ($(CFG_RELEASE_CHANNEL),stable)
135-
#DOC_CRATES := std
136-
#else
137-
#ifeq ($(CFG_RELEASE_CHANNEL),beta)
138-
#DOC_CRATES := std
139-
#else
140125
DOC_CRATES := $(filter-out rustc, \
141-
$(filter-out rustc_trans, \
142-
$(filter-out rustc_typeck, \
143-
$(filter-out rustc_borrowck, \
144-
$(filter-out rustc_resolve, \
145-
$(filter-out rustc_driver, \
146-
$(filter-out rustc_privacy, \
147-
$(filter-out rustc_lint, \
148-
$(filter-out log, \
149-
$(filter-out getopts, \
150-
$(filter-out syntax, $(CRATES))))))))))))
151-
#endif
152-
#endif
126+
$(filter-out rustc_trans, \
127+
$(filter-out rustc_typeck, \
128+
$(filter-out rustc_borrowck, \
129+
$(filter-out rustc_resolve, \
130+
$(filter-out rustc_driver, \
131+
$(filter-out rustc_privacy, \
132+
$(filter-out rustc_lint, \
133+
$(filter-out log, \
134+
$(filter-out getopts, \
135+
$(filter-out syntax, $(CRATES))))))))))))
153136
COMPILER_DOC_CRATES := rustc rustc_trans rustc_borrowck rustc_resolve \
154137
rustc_typeck rustc_driver syntax rustc_privacy \
155138
rustc_lint

trunk/mk/docs.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,7 @@ doc/$(1)/index.html: $$(LIB_DOC_DEP_$(1)) doc/$(1)/
259259
endef
260260

261261
$(foreach crate,$(DOC_CRATES),$(eval $(call DEF_LIB_DOC,$(crate),DOC_TARGETS)))
262-
263-
ifdef CFG_COMPILER_DOCS
264-
$(foreach crate,$(COMPILER_DOC_CRATES),$(eval $(call DEF_LIB_DOC,$(crate),COMPILER_DOC_TARGETS)))
265-
endif
262+
$(foreach crate,$(COMPILER_DOC_CRATES),$(eval $(call DEF_LIB_DOC,$(crate),COMPILER_DOC_TARGETS)))
266263

267264
ifdef CFG_DISABLE_DOCS
268265
$(info cfg: disabling doc build (CFG_DISABLE_DOCS))

trunk/mk/platform.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ 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 everything
182+
# On Bitrig, we need the relocation model to be PIC for everthing
183183
ifeq (,$(filter $(OSTYPE_$(1)),bitrig))
184184
LLVM_MC_RELOCATION_MODEL="pic"
185185
else

trunk/mk/target.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ endef
132132
# on $$(TSREQ$(1)_T_$(2)_H_$(3)), to ensure that no products will be
133133
# put into the target area until after the get-snapshot.py script has
134134
# had its chance to clean it out; otherwise the other products will be
135-
# inadvertently included in the clean out.
135+
# inadvertantly included in the clean out.
136136
SNAPSHOT_RUSTC_POST_CLEANUP=$(HBIN0_H_$(CFG_BUILD))/rustc$(X_$(CFG_BUILD))
137137

138138
define TARGET_HOST_RULES

trunk/mk/tests.mk

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ $(foreach file,$(wildcard $(S)src/doc/trpl/*.md), \
166166
######################################################################
167167

168168
# The main testing target. Tests lots of stuff.
169-
check: check-sanitycheck cleantmptestlogs cleantestlibs all check-stage2 tidy
169+
check: cleantmptestlogs cleantestlibs all check-stage2 tidy
170170
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
171171

172172
# As above but don't bother running tidy.
@@ -193,11 +193,6 @@ check-docs: cleantestlibs cleantmptestlogs check-stage2-docs
193193
# Not run as part of the normal test suite, but tested by bors on checkin.
194194
check-secondary: check-build-compiletest check-build-lexer-verifier check-lexer check-pretty
195195

196-
.PHONY: check-sanitycheck
197-
198-
check-sanitycheck:
199-
$(Q)$(CFG_PYTHON) $(S)src/etc/check-sanitycheck.py
200-
201196
# check + check-secondary.
202197
#
203198
# Issue #17883: build check-secondary first so hidden dependencies in

trunk/src/compiletest/compiletest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#![feature(std_misc)]
1919
#![feature(test)]
2020
#![feature(path_ext)]
21+
#![feature(convert)]
2122
#![feature(str_char)]
2223

2324
#![deny(warnings)]

trunk/src/doc/reference.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -977,13 +977,17 @@ An example of `use` declarations:
977977

978978
```
979979
# #![feature(core)]
980+
use std::iter::range_step;
980981
use std::option::Option::{Some, None};
981982
use std::collections::hash_map::{self, HashMap};
982983
983984
fn foo<T>(_: T){}
984985
fn bar(map1: HashMap<String, usize>, map2: hash_map::HashMap<String, usize>){}
985986
986987
fn main() {
988+
// Equivalent to 'std::iter::range_step(0, 10, 2);'
989+
range_step(0, 10, 2);
990+
987991
// Equivalent to 'foo(vec![std::option::Option::Some(1.0f64),
988992
// std::option::Option::None]);'
989993
foo(vec![Some(1.0f64), None]);
@@ -1184,15 +1188,12 @@ the guarantee that these issues are never caused by safe code.
11841188

11851189
* Data races
11861190
* Dereferencing a null/dangling raw pointer
1191+
* Mutating an immutable value/reference without `UnsafeCell`
11871192
* Reads of [undef](http://llvm.org/docs/LangRef.html#undefined-values)
11881193
(uninitialized) memory
11891194
* Breaking the [pointer aliasing
11901195
rules](http://llvm.org/docs/LangRef.html#pointer-aliasing-rules)
11911196
with raw pointers (a subset of the rules used by C)
1192-
* `&mut` and `&` follow LLVM’s scoped [noalias] model, except if the `&T`
1193-
contains an `UnsafeCell<U>`. Unsafe code must not violate these aliasing
1194-
guarantees.
1195-
* Mutating an immutable value/reference without `UnsafeCell<U>`
11961197
* Invoking undefined behavior via compiler intrinsics:
11971198
* Indexing outside of the bounds of an object with `std::ptr::offset`
11981199
(`offset` intrinsic), with
@@ -1209,8 +1210,6 @@ the guarantee that these issues are never caused by safe code.
12091210
code. Rust's failure system is not compatible with exception handling in
12101211
other languages. Unwinding must be caught and handled at FFI boundaries.
12111212

1212-
[noalias]: http://llvm.org/docs/LangRef.html#noalias
1213-
12141213
##### Behaviour not considered unsafe
12151214

12161215
This is a list of behaviour not considered *unsafe* in Rust terms, but that may

trunk/src/doc/trpl/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,5 @@
4242
* [Intrinsics](intrinsics.md)
4343
* [Lang items](lang-items.md)
4444
* [Link args](link-args.md)
45-
* [Benchmark Tests](benchmark-tests.md)
4645
* [Conclusion](conclusion.md)
4746
* [Glossary](glossary.md)

trunk/src/doc/trpl/arrays-vectors-and-slices.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,5 @@ You can also take a slice of a vector, `String`, or `&str`, because they are
9999
backed by arrays. Slices have type `&[T]`, which we'll talk about when we cover
100100
generics.
101101

102-
We have now learned all of the most basic Rust concepts.
102+
We have now learned all of the most basic Rust concepts. Next, we learn how to
103+
get input from the keyboard.

trunk/src/doc/trpl/associated-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ let obj = Box::new(graph) as Box<Graph>;
170170
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
171171
```
172172

173-
We can’t create a trait object like this, because we don’t know the associated
173+
We can’t create a trait object like this, becuase we don’t know the associated
174174
types. Instead, we can write this:
175175

176176
```rust

trunk/src/doc/trpl/benchmark-tests.md

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

trunk/src/doc/trpl/concurrency.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -280,15 +280,13 @@ it returns an `Result<T, E>`, and because this is just an example, we `unwrap()`
280280
it to get a reference to the data. Real code would have more robust error handling
281281
here. We're then free to mutate it, since we have the lock.
282282

283-
Lastly, while the threads are running, we wait on a short timer. But
284-
this is not ideal: we may have picked a reasonable amount of time to
285-
wait but it's more likely we'll either be waiting longer than
286-
necessary or not long enough, depending on just how much time the
287-
threads actually take to finish computing when the program runs.
288-
289-
A more precise alternative to the timer would be to use one of the
290-
mechanisms provided by the Rust standard library for synchronizing
291-
threads with each other. Let's talk about one of them: channels.
283+
This timer bit is a bit awkward, however. We have picked a reasonable amount of
284+
time to wait, but it's entirely possible that we've picked too high, and that
285+
we could be taking less time. It's also possible that we've picked too low,
286+
and that we aren't actually finishing this computation.
287+
288+
Rust's standard library provides a few more mechanisms for two threads to
289+
synchronize with each other. Let's talk about one: channels.
292290

293291
## Channels
294292

trunk/src/doc/trpl/documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ This will create documentation for bar both inside the documentation for the
529529
crate `foo`, as well as the documentation for your crate. It will use the same
530530
documentation in both places.
531531

532-
This behavior can be suppressed with `no_inline`:
532+
This behavior can be supressed with `no_inline`:
533533

534534
```ignore
535535
extern crate foo;

0 commit comments

Comments
 (0)