From e9f19283b3e52db2f591b8c2d5c80e50d2a988a3 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Mon, 25 Jun 2012 12:20:51 -0700 Subject: [PATCH] Remove resources from a few places I missed --- src/rustdoc/markdown_pass.rs | 12 ------------ src/rustdoc/sort_item_type_pass.rs | 20 ++++++++++---------- src/test/bench/task-perf-alloc-unwind.rs | 2 +- 3 files changed, 11 insertions(+), 23 deletions(-) diff --git a/src/rustdoc/markdown_pass.rs b/src/rustdoc/markdown_pass.rs index ec700b755e794..3e7a9325bd6c2 100644 --- a/src/rustdoc/markdown_pass.rs +++ b/src/rustdoc/markdown_pass.rs @@ -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); diff --git a/src/rustdoc/sort_item_type_pass.rs b/src/rustdoc/sort_item_type_pass.rs index 96c438a0678a3..736d7c01bb32a 100644 --- a/src/rustdoc/sort_item_type_pass.rs +++ b/src/rustdoc/sort_item_type_pass.rs @@ -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 } } } @@ -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"; } } diff --git a/src/test/bench/task-perf-alloc-unwind.rs b/src/test/bench/task-perf-alloc-unwind.rs index 681abed478046..aee9b148cca34 100644 --- a/src/test/bench/task-perf-alloc-unwind.rs +++ b/src/test/bench/task-perf-alloc-unwind.rs @@ -78,7 +78,7 @@ fn recurse_or_fail(depth: int, st: option) { 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)) }) } };