Skip to content

Commit de3f248

Browse files
committed
---
yaml --- r: 149354 b: refs/heads/try2 c: f0cb0eb h: refs/heads/master v: v3
1 parent 87a912d commit de3f248

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 9f68f793d444285e5d7f00f57b5635ece43613b3
8+
refs/heads/try2: f0cb0ebc669ade875c05cdef7da341a220d1b522
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/Makefile.in

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,13 @@
1919
#
2020
# First, start with one of these build targets:
2121
#
22-
# * all - The default. Build a complete, bootstrapped compiler.
22+
# * all - The default. Builds a complete, bootstrapped compiler.
2323
# `rustc` will be in `${target-triple}/stage2/bin/`. Run it
2424
# directly from the build directory if you like. This also
2525
# comes with docs in `doc/`.
2626
#
2727
# * check - Run the complete test suite
2828
#
29-
# * clean - Clean the build repertory. It is advised to run this
30-
# command if you want to build Rust again, after an update
31-
# of the git repository.
32-
#
3329
# * install - Install Rust. Note that installation is not necessary
3430
# to use the compiler.
3531
#
@@ -107,7 +103,7 @@
107103
#
108104
# </tips>
109105
#
110-
# <nitty-gritty>
106+
# <nittygritty>
111107
#
112108
# # The Rust Build System
113109
#
@@ -156,12 +152,12 @@
156152
# libraries are managed and versioned without polluting the common
157153
# areas of the filesystem.
158154
#
159-
# General rust binaries may still live in the host bin directory; they
155+
# General rust binaries may stil live in the host bin directory; they
160156
# will just link against the libraries in the target lib directory.
161157
#
162158
# Admittedly this is a little convoluted.
163159
#
164-
# </nitty-gritty>
160+
# </nittygritty>
165161
#
166162

167163
######################################################################

branches/try2/mk/main.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,13 +446,13 @@ all: $(ALL_TARGET_RULES) $(GENERATED) docs
446446
# $(1) is the name of the doc <section> in Makefile.in
447447
# pick everything between tags | remove first line | remove last line
448448
# | remove extra (?) line | strip leading `#` from lines
449-
SHOW_DOCS = $(Q)awk '/<$(1)>/,/<\/$(1)>/' $(S)/Makefile.in | sed '1d' | sed '$$d' | sed 's/^\# \?//'
449+
SHOW_DOCS = $(Q)awk '/$(1)/,/<\/$(1)>/' $(S)/Makefile.in | sed '1d' | sed '$$d' | sed 's/^\# \?//'
450450

451451
help:
452452
$(call SHOW_DOCS,help)
453453

454-
tips:
455-
$(call SHOW_DOCS,tips)
454+
hot-tips:
455+
$(call SHOW_DOCS,hottips)
456456

457457
nitty-gritty:
458-
$(call SHOW_DOCS,nitty-gritty)
458+
$(call SHOW_DOCS,nittygritty)

branches/try2/src/librustdoc/html/render.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,16 @@ impl DocFolder for Cache {
565565
clean::StructItem(..) | clean::EnumItem(..) |
566566
clean::TypedefItem(..) | clean::TraitItem(..) |
567567
clean::FunctionItem(..) | clean::ModuleItem(..) |
568-
clean::ForeignFunctionItem(..) | clean::VariantItem(..) => {
568+
clean::ForeignFunctionItem(..) => {
569569
self.paths.insert(item.id, (self.stack.clone(), shortty(&item)));
570570
}
571+
// link variants to their parent enum because pages aren't emitted
572+
// for each variant
573+
clean::VariantItem(..) => {
574+
let mut stack = self.stack.clone();
575+
stack.pop();
576+
self.paths.insert(item.id, (stack, "enum"));
577+
}
571578
_ => {}
572579
}
573580

0 commit comments

Comments
 (0)