diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-06-25 12:20:51 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-06-25 12:20:51 -0700 |
| commit | e9f19283b3e52db2f591b8c2d5c80e50d2a988a3 (patch) | |
| tree | e21d55320735efc6e2e33d6cddd8cd22d8ee3d1f | |
| parent | 25b8b35c57206a70360aca9d9432bb62105da505 (diff) | |
| download | rust-e9f19283b3e52db2f591b8c2d5c80e50d2a988a3.tar.gz rust-e9f19283b3e52db2f591b8c2d5c80e50d2a988a3.zip | |
Remove resources from a few places I missed
| -rw-r--r-- | src/rustdoc/markdown_pass.rs | 12 | ||||
| -rw-r--r-- | src/rustdoc/sort_item_type_pass.rs | 20 | ||||
| -rw-r--r-- | 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 ec700b755e7..3e7a9325bd6 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 96c438a0678..736d7c01bb3 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 681abed4780..aee9b148cca 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<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)) }) } }; |
