Skip to content

Commit

Permalink
Remove resources from a few places I missed
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Jun 25, 2012
1 parent 25b8b35 commit e9f1928
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 23 deletions.
12 changes: 0 additions & 12 deletions src/rustdoc/markdown_pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -639,18 +639,6 @@ fn should_write_variant_list_with_signatures() {
\n* `c(int)` - a\n\n");
}

#[test]
fn should_write_resource_header() {
let markdown = test::render("resource r(a: bool) { }");
assert str::contains(markdown, "## Resource `r`");
}

#[test]
fn should_write_resource_signature() {
let markdown = test::render("resource r(a: bool) { }");
assert str::contains(markdown, "\n resource r(a: bool)\n");
}

fn write_iface(ctxt: ctxt, doc: doc::ifacedoc) {
write_common(ctxt, doc.desc(), doc.sections());
write_methods(ctxt, doc.methods);
Expand Down
20 changes: 10 additions & 10 deletions src/rustdoc/sort_item_type_pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ fn mk_pass() -> pass {
doc::consttag(_) { 0 }
doc::tytag(_) { 1 }
doc::enumtag(_) { 2 }
doc::ifacetag(_) { 4 }
doc::impltag(_) { 5 }
doc::fntag(_) { 6 }
doc::modtag(_) { 7 }
doc::nmodtag(_) { 8 }
doc::ifacetag(_) { 3 }
doc::impltag(_) { 4 }
doc::fntag(_) { 5 }
doc::modtag(_) { 6 }
doc::nmodtag(_) { 7 }
}
}

Expand All @@ -38,10 +38,10 @@ fn test() {
assert doc.cratemod().items[0].name() == "iconst";
assert doc.cratemod().items[1].name() == "itype";
assert doc.cratemod().items[2].name() == "ienum";
assert doc.cratemod().items[4].name() == "iiface";
assert doc.cratemod().items[5].name() == "iimpl";
assert doc.cratemod().items[6].name() == "ifn";
assert doc.cratemod().items[7].name() == "imod";
assert doc.cratemod().items[8].name() == "inmod";
assert doc.cratemod().items[3].name() == "iiface";
assert doc.cratemod().items[4].name() == "iimpl";
assert doc.cratemod().items[5].name() == "ifn";
assert doc.cratemod().items[6].name() == "imod";
assert doc.cratemod().items[7].name() == "inmod";
}
}
2 changes: 1 addition & 1 deletion src/test/bench/task-perf-alloc-unwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn recurse_or_fail(depth: int, st: option<st>) {
tuple: (@cons((), first(st.tuple)),
~cons((), @*second(st.tuple))),
vec: st.vec + [@cons((), st.vec.last())],
res: r(@cons((), *(st.res)))
res: r(@cons((), st.res._l))
})
}
};
Expand Down

0 comments on commit e9f1928

Please sign in to comment.