Skip to content

Commit f854417

Browse files
committed
---
yaml --- r: 229176 b: refs/heads/try c: c980aba h: refs/heads/master v: v3
1 parent 43f2f83 commit f854417

File tree

111 files changed

+1298
-501
lines changed

Some content is hidden

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

111 files changed

+1298
-501
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: f53ba18f432b2187eeb487fbddd3e223d8d1e669
4+
refs/heads/try: c980aba9a88704717229da3c1ec02685333c0db2
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/RELEASES.md

Lines changed: 1 addition & 1 deletion

branches/try/mk/docs.mk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ERR_IDX_GEN = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(ERR_IDX_GEN_EXE)
7777

7878
D := $(S)src/doc
7979

80-
DOC_TARGETS := trpl tarpl style error-index
80+
DOC_TARGETS := trpl nomicon style error-index
8181
COMPILER_DOC_TARGETS :=
8282
DOC_L10N_TARGETS :=
8383

@@ -287,12 +287,12 @@ doc/book/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/trpl/*.md) | doc/
287287
$(Q)rm -rf doc/book
288288
$(Q)$(RUSTBOOK) build $(S)src/doc/trpl doc/book
289289

290-
tarpl: doc/adv-book/index.html
290+
nomicon: doc/nomicon/index.html
291291

292-
doc/adv-book/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/tarpl/*.md) | doc/
292+
doc/nomicon/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/nomicon/*.md) | doc/
293293
@$(call E, rustbook: $@)
294-
$(Q)rm -rf doc/adv-book
295-
$(Q)$(RUSTBOOK) build $(S)src/doc/tarpl doc/adv-book
294+
$(Q)rm -rf doc/nomicon
295+
$(Q)$(RUSTBOOK) build $(S)src/doc/nomicon doc/nomicon
296296

297297
style: doc/style/index.html
298298

branches/try/mk/tests.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ $(foreach doc,$(DOCS), \
162162
$(eval $(call DOCTEST,md-$(doc),$(S)src/doc/$(doc).md)))
163163
$(foreach file,$(wildcard $(S)src/doc/trpl/*.md), \
164164
$(eval $(call DOCTEST,$(file:$(S)src/doc/trpl/%.md=trpl-%),$(file))))
165-
$(foreach file,$(wildcard $(S)src/doc/tarpl/*.md), \
166-
$(eval $(call DOCTEST,$(file:$(S)src/doc/tarpl/%.md=tarpl-%),$(file))))
165+
$(foreach file,$(wildcard $(S)src/doc/nomicon/*.md), \
166+
$(eval $(call DOCTEST,$(file:$(S)src/doc/nomicon/%.md=nomicon-%),$(file))))
167167
######################################################################
168168
# Main test targets
169169
######################################################################
Lines changed: 38 additions & 0 deletions

branches/try/src/doc/tarpl/README.md

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

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

Lines changed: 2 additions & 2 deletions

branches/try/src/doc/trpl/hello-cargo.md

Lines changed: 19 additions & 17 deletions

branches/try/src/doc/trpl/lang-items.md

Lines changed: 1 addition & 0 deletions

branches/try/src/doc/trpl/no-stdlib.md

Lines changed: 3 additions & 0 deletions

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

Lines changed: 38 additions & 41 deletions

branches/try/src/libcore/mem.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,20 +322,16 @@ pub unsafe fn dropped<T>() -> T {
322322
/// println!("{:?}", &data[0]);
323323
/// ```
324324
///
325-
/// Hopefully this example emphasizes to you exactly how delicate
326-
/// and dangerous doing this is. Note that the `vec!` macro
327-
/// *does* let you initialize every element with a value that
328-
/// is only `Clone`, so the following is equivalent and vastly
329-
/// less dangerous, as long as you can live with an extra heap
325+
/// This example emphasizes exactly how delicate and dangerous doing this is.
326+
/// Note that the `vec!` macro *does* let you initialize every element with a
327+
/// value that is only `Clone`, so the following is semantically equivalent and
328+
/// vastly less dangerous, as long as you can live with an extra heap
330329
/// allocation:
331330
///
332331
/// ```
333332
/// let data: Vec<Vec<u32>> = vec![Vec::new(); 1000];
334333
/// println!("{:?}", &data[0]);
335334
/// ```
336-
///
337-
/// For large arrays this is probably advisable
338-
/// anyway to avoid blowing the stack.
339335
#[inline]
340336
#[stable(feature = "rust1", since = "1.0.0")]
341337
pub unsafe fn uninitialized<T>() -> T {

0 commit comments

Comments
 (0)