diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-07-02 12:47:32 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-07-17 14:57:51 -0700 |
| commit | 99b33f721954bc5290f9201c8f64003c294d0571 (patch) | |
| tree | 786c9bf75d54512d0a80f6975ad40516ab432c3a /src/librustdoc/rustdoc.rs | |
| parent | b4e674f6e662bc80f2e7a5a1a9834f2152f08d32 (diff) | |
| download | rust-99b33f721954bc5290f9201c8f64003c294d0571.tar.gz rust-99b33f721954bc5290f9201c8f64003c294d0571.zip | |
librustc: Remove all uses of "copy".
Diffstat (limited to 'src/librustdoc/rustdoc.rs')
| -rw-r--r-- | src/librustdoc/rustdoc.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/librustdoc/rustdoc.rs b/src/librustdoc/rustdoc.rs index d12f85dcc44..644f3d78cf4 100644 --- a/src/librustdoc/rustdoc.rs +++ b/src/librustdoc/rustdoc.rs @@ -59,7 +59,6 @@ pub mod page_pass; pub mod sectionalize_pass; pub mod escape_pass; pub mod prune_private_pass; -pub mod util; pub fn main() { let args = os::args(); @@ -83,7 +82,7 @@ pub fn main() { /// Runs rustdoc over the given file fn run(config: Config) { - let source_file = copy config.input_crate; + let source_file = config.input_crate.clone(); // Create an AST service from the source code do astsrv::from_file(source_file.to_str()) |srv| { @@ -96,7 +95,7 @@ fn run(config: Config) { // Extract the initial doc tree from the AST. This contains // just names and node ids. let doc = time(~"extract", || { - let default_name = copy source_file; + let default_name = source_file.clone(); extract::from_srv(srv.clone(), default_name.to_str()) }); @@ -127,13 +126,13 @@ fn run(config: Config) { // Sort items again by kind sort_item_type_pass::mk_pass(), // Create indexes appropriate for markdown - markdown_index_pass::mk_pass(copy config), + markdown_index_pass::mk_pass(config.clone()), // Break the document into pages if required by the // output format page_pass::mk_pass(config.output_style), // Render markdown_pass::mk_pass( - markdown_writer::make_writer_factory(copy config) + markdown_writer::make_writer_factory(config.clone()) ) ]); } |
