Skip to content

Commit 0ef6111

Browse files
committed
---
yaml --- r: 132643 b: refs/heads/dist-snap c: d4d608f h: refs/heads/master i: 132641: fd15609 132639: 6bd35c5 v: v3
1 parent 3c9a1e0 commit 0ef6111

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: e7db11c90b1a7f1f5ebae00785931dbfb4f35fbf
9+
refs/heads/dist-snap: d4d608fabda8f39f319ebefd9aebf4ceb7c1bbf4
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ please do two things:
1616

1717
2. Run the full Rust test suite with the `make check` command. You're
1818
not off the hook even if you just stick to documentation; code
19-
examples in the docs are tested as well!
19+
examples in the docs are tested as well! Although for simple
20+
wording or grammar fixes, this is probably unnecessary.
2021

2122
Pull requests will be treated as "review requests", and we will give
2223
feedback we expect to see corrected on

branches/dist-snap/mk/main.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ endif
139139
RUSTFLAGS_STAGE0 += -C prefer-dynamic
140140
RUSTFLAGS_STAGE1 += -C prefer-dynamic
141141

142+
# Landing pads require a lot of codegen. We can get through bootstrapping faster
143+
# by not emitting them.
144+
RUSTFLAGS_STAGE0 += -Z no-landing-pads
145+
142146
# platform-specific auto-configuration
143147
include $(CFG_SRC_DIR)mk/platform.mk
144148

branches/dist-snap/src/librustdoc/html/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ r##"<!DOCTYPE html>
106106
</p>
107107
<p>
108108
Accepted types are: <code>fn</code>, <code>mod</code>,
109-
<code>struct</code> (or <code>str</code>), <code>enum</code>,
109+
<code>struct</code>, <code>enum</code>,
110110
<code>trait</code>, <code>typedef</code> (or
111111
<code>tdef</code>).
112112
</p>

branches/dist-snap/src/librustdoc/html/static/main.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,18 +368,19 @@
368368
}
369369

370370
function getQuery() {
371-
var matches, type, query = $('.search-input').val();
371+
var matches, type, query, raw = $('.search-input').val();
372+
query = raw;
372373

373-
matches = query.match(/^(fn|mod|str(uct)?|enum|trait|t(ype)?d(ef)?)\s*:\s*/i);
374+
matches = query.match(/^(fn|mod|struct|enum|trait|t(ype)?d(ef)?)\s*:\s*/i);
374375
if (matches) {
375376
type = matches[1].replace(/^td$/, 'typedef')
376-
.replace(/^str$/, 'struct')
377377
.replace(/^tdef$/, 'typedef')
378378
.replace(/^typed$/, 'typedef');
379379
query = query.substring(matches[0].length);
380380
}
381381

382382
return {
383+
raw: raw,
383384
query: query,
384385
type: type,
385386
id: query + type,
@@ -535,10 +536,10 @@
535536
if (browserSupportsHistoryApi()) {
536537
if (!history.state && !params.search) {
537538
history.pushState(query, "", "?search=" +
538-
encodeURIComponent(query.query));
539+
encodeURIComponent(query.raw));
539540
} else {
540541
history.replaceState(query, "", "?search=" +
541-
encodeURIComponent(query.query));
542+
encodeURIComponent(query.raw));
542543
}
543544
}
544545

0 commit comments

Comments
 (0)