From 329eca6044fdf376a7a89ec7a96dba7a8b884cf7 Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Mon, 25 Jun 2012 20:00:46 -0700 Subject: Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725. --- src/rustdoc/attr_pass.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/rustdoc/attr_pass.rs') diff --git a/src/rustdoc/attr_pass.rs b/src/rustdoc/attr_pass.rs index 983576e5816..a88f3d7b07f 100644 --- a/src/rustdoc/attr_pass.rs +++ b/src/rustdoc/attr_pass.rs @@ -90,7 +90,7 @@ fn fold_item( fn parse_item_attrs( srv: astsrv::srv, id: doc::ast_id, - +parse_attrs: fn~([ast::attribute]) -> T) -> T { + +parse_attrs: fn~([ast::attribute]/~) -> T) -> T { astsrv::exec(srv) {|ctxt| let attrs = alt ctxt.ast_map.get(id) { ast_map::node_item(item, _) { item.attrs } @@ -197,11 +197,11 @@ fn fold_iface( fn merge_method_attrs( srv: astsrv::srv, item_id: doc::ast_id, - docs: [doc::methoddoc] -) -> [doc::methoddoc] { + docs: [doc::methoddoc]/~ +) -> [doc::methoddoc]/~ { // Create an assoc list from method name to attributes - let attrs: [(str, option)] = astsrv::exec(srv) {|ctxt| + let attrs: [(str, option)]/~ = astsrv::exec(srv) {|ctxt| alt ctxt.ast_map.get(item_id) { ast_map::node_item(@{ node: ast::item_iface(_, _, methods), _ -- cgit 1.4.1-3-g733a5