Skip to content

Commit 40291dd

Browse files
committed
---
yaml --- r: 33789 b: refs/heads/snap-stage3 c: 809bd3e h: refs/heads/master i: 33787: 35f432f v: v3
1 parent 4fd1a36 commit 40291dd

File tree

8 files changed

+110
-110
lines changed

8 files changed

+110
-110
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: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 451463ab39083e6aba5fc215a6f349236dff9872
4+
refs/heads/snap-stage3: 809bd3e5efa00a7a3f924bc3999568d67574e4e7
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustdoc/fold.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type Fold_<T> = {
3434
// This exists because fn types don't infer correctly as record
3535
// initializers, but they do as function arguments
3636
fn mk_fold<T:Copy>(
37-
ctxt: T,
37+
+ctxt: T,
3838
+fold_doc: FoldDoc<T>,
3939
+fold_crate: FoldCrate<T>,
4040
+fold_item: FoldItem<T>,
@@ -65,7 +65,7 @@ fn mk_fold<T:Copy>(
6565
})
6666
}
6767

68-
pub fn default_any_fold<T:Send Copy>(ctxt: T) -> Fold<T> {
68+
pub fn default_any_fold<T:Send Copy>(+ctxt: T) -> Fold<T> {
6969
mk_fold(
7070
ctxt,
7171
|f, d| default_seq_fold_doc(f, d),
@@ -83,7 +83,7 @@ pub fn default_any_fold<T:Send Copy>(ctxt: T) -> Fold<T> {
8383
)
8484
}
8585

86-
pub fn default_seq_fold<T:Copy>(ctxt: T) -> Fold<T> {
86+
pub fn default_seq_fold<T:Copy>(+ctxt: T) -> Fold<T> {
8787
mk_fold(
8888
ctxt,
8989
|f, d| default_seq_fold_doc(f, d),
@@ -101,7 +101,7 @@ pub fn default_seq_fold<T:Copy>(ctxt: T) -> Fold<T> {
101101
)
102102
}
103103

104-
pub fn default_par_fold<T:Send Copy>(ctxt: T) -> Fold<T> {
104+
pub fn default_par_fold<T:Send Copy>(+ctxt: T) -> Fold<T> {
105105
mk_fold(
106106
ctxt,
107107
|f, d| default_seq_fold_doc(f, d),

branches/snap-stage3/src/librustdoc/markdown_index_pass.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ fn fold_nmod(
5151
}
5252

5353
fn build_mod_index(
54-
doc: doc::ModDoc,
55-
config: config::Config
54+
+doc: doc::ModDoc,
55+
+config: config::Config
5656
) -> doc::Index {
5757
{
5858
entries: par::map(doc.items, |doc| {
@@ -62,8 +62,8 @@ fn build_mod_index(
6262
}
6363

6464
fn build_nmod_index(
65-
doc: doc::NmodDoc,
66-
config: config::Config
65+
+doc: doc::NmodDoc,
66+
+config: config::Config
6767
) -> doc::Index {
6868
{
6969
entries: par::map(doc.fns, |doc| {
@@ -73,8 +73,8 @@ fn build_nmod_index(
7373
}
7474

7575
fn item_to_entry(
76-
doc: doc::ItemTag,
77-
config: config::Config
76+
+doc: doc::ItemTag,
77+
+config: config::Config
7878
) -> doc::IndexEntry {
7979
let link = match doc {
8080
doc::ModTag(_) | doc::NmodTag(_)
@@ -94,7 +94,7 @@ fn item_to_entry(
9494
}
9595
}
9696
97-
fn pandoc_header_id(header: ~str) -> ~str {
97+
fn pandoc_header_id(header: &str) -> ~str {
9898
9999
// http://johnmacfarlane.net/pandoc/README.html#headers
100100
@@ -106,10 +106,10 @@ fn pandoc_header_id(header: ~str) -> ~str {
106106
let header = maybe_use_section_id(header);
107107
return header;
108108
109-
fn remove_formatting(s: ~str) -> ~str {
109+
fn remove_formatting(s: &str) -> ~str {
110110
str::replace(s, ~"`", ~"")
111111
}
112-
fn remove_punctuation(s: ~str) -> ~str {
112+
fn remove_punctuation(s: &str) -> ~str {
113113
let s = str::replace(s, ~"<", ~"");
114114
let s = str::replace(s, ~">", ~"");
115115
let s = str::replace(s, ~"[", ~"");
@@ -124,17 +124,17 @@ fn pandoc_header_id(header: ~str) -> ~str {
124124
let s = str::replace(s, ~"^", ~"");
125125
return s;
126126
}
127-
fn replace_with_hyphens(s: ~str) -> ~str {
127+
fn replace_with_hyphens(s: &str) -> ~str {
128128
// Collapse sequences of whitespace to a single dash
129129
// XXX: Hacky implementation here that only covers
130130
// one or two spaces.
131131
let s = str::replace(s, ~" ", ~"-");
132132
let s = str::replace(s, ~" ", ~"-");
133133
return s;
134134
}
135-
fn convert_to_lowercase(s: ~str) -> ~str { str::to_lower(s) }
136-
fn remove_up_to_first_letter(s: ~str) -> ~str { s }
137-
fn maybe_use_section_id(s: ~str) -> ~str { s }
135+
fn convert_to_lowercase(s: &str) -> ~str { str::to_lower(s) }
136+
fn remove_up_to_first_letter(s: &str) -> ~str { s.to_str() }
137+
fn maybe_use_section_id(s: &str) -> ~str { s.to_str() }
138138
}
139139

140140
#[test]
@@ -232,7 +232,7 @@ fn should_index_foreign_mod_contents() {
232232
#[cfg(test)]
233233
mod test {
234234
#[legacy_exports];
235-
fn mk_doc(output_style: config::OutputStyle, source: ~str) -> doc::Doc {
235+
fn mk_doc(output_style: config::OutputStyle, +source: ~str) -> doc::Doc {
236236
do astsrv::from_str(source) |srv| {
237237
let config = {
238238
output_style: output_style,

0 commit comments

Comments
 (0)