about summary refs log tree commit diff
path: root/src/rustdoc/trim_pass.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-09 17:23:56 -0800
committerBrian Anderson <banderson@mozilla.com>2012-03-09 17:24:56 -0800
commit0905ad2bbe66d11e73a6bef723d14c0e022c0943 (patch)
tree3cd6ba12a9956daf3af6d47bd824aea231f47e22 /src/rustdoc/trim_pass.rs
parent9f4c0d71e521112e8113e552c06739440fb193d7 (diff)
downloadrust-0905ad2bbe66d11e73a6bef723d14c0e022c0943.tar.gz
rust-0905ad2bbe66d11e73a6bef723d14c0e022c0943.zip
rustdoc: Vastly simplify the document model
Don't attempt to impose any structure for documenting arguments, return
values, etc.
Diffstat (limited to 'src/rustdoc/trim_pass.rs')
-rw-r--r--src/rustdoc/trim_pass.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/rustdoc/trim_pass.rs b/src/rustdoc/trim_pass.rs
index ca0714ccc83..13382fb7d07 100644
--- a/src/rustdoc/trim_pass.rs
+++ b/src/rustdoc/trim_pass.rs
@@ -40,24 +40,6 @@ fn should_trim_fn() {
     assert doc.cratemod().fns()[0].desc() == some("desc");
 }
 
-#[test]
-fn should_trim_args() {
-    let doc = test::mk_doc("#[doc(args(a = \"\na\n\"))] fn a(a: int) { }");
-    assert doc.cratemod().fns()[0].args[0].desc == some("a");
-}
-
-#[test]
-fn should_trim_ret() {
-    let doc = test::mk_doc("#[doc(return = \"\na\n\")] fn a() -> int { }");
-    assert doc.cratemod().fns()[0].return.desc == some("a");
-}
-
-#[test]
-fn should_trim_failure_conditions() {
-    let doc = test::mk_doc("#[doc(failure = \"\na\n\")] fn a() -> int { }");
-    assert doc.cratemod().fns()[0].failure == some("a");
-}
-
 #[cfg(test)]
 mod test {
     fn mk_doc(source: str) -> doc::doc {