rustdoc: Cleanup

This commit is contained in:
Brian Anderson 2012-01-17 17:22:03 -08:00
parent dbd3d6ac09
commit 5fbadd24ec
3 changed files with 6 additions and 11 deletions

View File

@ -1,3 +1,5 @@
#[doc = "Rustdoc - The Rust documentation generator"];
#[link(name = "rustdoc",
vers = "0.1",
uuid = "f8abd014-b281-484d-a0c3-26e3de8e2412",
@ -7,6 +9,9 @@
#[license = "MIT"];
#[crate_type = "bin"];
use std;
use rustc;
mod parse;
mod extract;
mod attr_parser;
@ -17,4 +22,3 @@ mod attr_pass;
mod tystr_pass;
mod prune_undoc_pass;
mod astsrv;
mod util;

View File

@ -2,9 +2,6 @@
* Copyright 2011 Google Inc.
*/
use std;
use rustc;
type pass = fn~(srv: astsrv::srv, doc: doc::cratedoc) -> doc::cratedoc;
fn run_passes(
@ -51,13 +48,6 @@ fn test_run_passes() {
assert doc.topmod.name == "onetwothree";
}
#[doc(
brief = "Main function.",
desc = "Command-line arguments:
* argv[1]: crate file name",
args(argv = "Command-line arguments.")
)]
fn main(argv: [str]) {
if vec::len(argv) != 2u {
@ -69,6 +59,7 @@ fn main(argv: [str]) {
run(source_file);
}
#[doc = "Runs rustdoc over the given file"]
fn run(source_file: str) {
let default_name = source_file;

View File