rustdoc: "import" -> "use"
This commit is contained in:
parent
9b88b5fe38
commit
fa2fb0f868
|
@ -7,19 +7,19 @@
|
|||
Rustdoc from its non-sendableness."
|
||||
)];
|
||||
|
||||
import std::map::hashmap;
|
||||
import rustc::driver::session;
|
||||
import session::{basic_options, options};
|
||||
import session::session;
|
||||
import rustc::driver::driver;
|
||||
import syntax::diagnostic;
|
||||
import syntax::diagnostic::handler;
|
||||
import syntax::ast;
|
||||
import syntax::codemap;
|
||||
import syntax::ast_map;
|
||||
import rustc::back::link;
|
||||
import rustc::metadata::filesearch;
|
||||
import rustc::front;
|
||||
use std::map::hashmap;
|
||||
use rustc::driver::session;
|
||||
use session::{basic_options, options};
|
||||
use session::session;
|
||||
use rustc::driver::driver;
|
||||
use syntax::diagnostic;
|
||||
use syntax::diagnostic::handler;
|
||||
use syntax::ast;
|
||||
use syntax::codemap;
|
||||
use syntax::ast_map;
|
||||
use rustc::back::link;
|
||||
use rustc::metadata::filesearch;
|
||||
use rustc::front;
|
||||
|
||||
export ctxt;
|
||||
export ctxt_handler;
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
an AST's attributes."
|
||||
)];
|
||||
|
||||
import syntax::ast;
|
||||
import syntax::attr;
|
||||
import core::tuple;
|
||||
use syntax::ast;
|
||||
use syntax::attr;
|
||||
use core::tuple;
|
||||
|
||||
export crate_attrs;
|
||||
export parse_crate, parse_desc;
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
of the natural-language documentation for a crate."
|
||||
)];
|
||||
|
||||
import doc::item_utils;
|
||||
import extract::to_str;
|
||||
import syntax::ast;
|
||||
import syntax::ast_map;
|
||||
import std::map::hashmap;
|
||||
use doc::item_utils;
|
||||
use extract::to_str;
|
||||
use syntax::ast;
|
||||
use syntax::ast_map;
|
||||
use std::map::hashmap;
|
||||
|
||||
export mk_pass;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import result::Result;
|
||||
import std::getopts;
|
||||
use result::Result;
|
||||
use std::getopts;
|
||||
|
||||
export output_format;
|
||||
export output_style;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* is interpreted as the brief description.
|
||||
*/
|
||||
|
||||
import doc::item_utils;
|
||||
use doc::item_utils;
|
||||
|
||||
export mk_pass;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//! Converts the Rust AST to the rustdoc document model
|
||||
|
||||
import syntax::ast;
|
||||
import doc::item_utils;
|
||||
use syntax::ast;
|
||||
use doc::item_utils;
|
||||
|
||||
export from_srv, extract, to_str, interner;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! Build indexes as appropriate for the markdown pass
|
||||
|
||||
import doc::item_utils;
|
||||
use doc::item_utils;
|
||||
|
||||
export mk_pass;
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
//! Generate markdown from a document tree
|
||||
|
||||
import doc::item_utils;
|
||||
import markdown_writer::writer;
|
||||
import markdown_writer::writer_utils;
|
||||
import markdown_writer::writer_factory;
|
||||
use doc::item_utils;
|
||||
use markdown_writer::writer;
|
||||
use markdown_writer::writer_utils;
|
||||
use markdown_writer::writer_factory;
|
||||
|
||||
export mk_pass;
|
||||
export header_kind, header_name, header_text;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import doc::item_utils;
|
||||
import io::ReaderUtil;
|
||||
use doc::item_utils;
|
||||
use io::ReaderUtil;
|
||||
|
||||
export writeinstr;
|
||||
export writer;
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
* individual modules, pages for the crate, indexes, etc.
|
||||
*/
|
||||
|
||||
import doc::{item_utils, page_utils};
|
||||
import syntax::ast;
|
||||
use doc::{item_utils, page_utils};
|
||||
use syntax::ast;
|
||||
|
||||
export mk_pass;
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
//! AST-parsing helpers
|
||||
|
||||
import rustc::driver::driver;
|
||||
import driver::{file_input, str_input};
|
||||
import rustc::driver::session;
|
||||
import syntax::diagnostic;
|
||||
import syntax::ast;
|
||||
import syntax::codemap;
|
||||
import syntax::parse;
|
||||
use rustc::driver::driver;
|
||||
use driver::{file_input, str_input};
|
||||
use rustc::driver::session;
|
||||
use syntax::diagnostic;
|
||||
use syntax::ast;
|
||||
use syntax::codemap;
|
||||
use syntax::parse;
|
||||
|
||||
export from_file, from_str, from_file_sess, from_str_sess;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//! Records the full path to items
|
||||
|
||||
import doc::item_utils;
|
||||
import syntax::ast;
|
||||
use doc::item_utils;
|
||||
use syntax::ast;
|
||||
|
||||
export mk_pass;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//! Prunes things with the #[doc(hidden)] attribute
|
||||
|
||||
import doc::item_utils;
|
||||
import std::map::hashmap;
|
||||
use doc::item_utils;
|
||||
use std::map::hashmap;
|
||||
export mk_pass;
|
||||
|
||||
fn mk_pass() -> pass {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Some utility interfaces
|
||||
import doc::item_utils;
|
||||
import doc::item;
|
||||
import doc::util;
|
||||
use doc::item_utils;
|
||||
use doc::item;
|
||||
use doc::util;
|
||||
|
||||
/// A single operation on the document model
|
||||
type pass = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! Breaks rustdocs into sections according to their headers
|
||||
|
||||
import doc::item_utils;
|
||||
use doc::item_utils;
|
||||
|
||||
export mk_pass;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! Sorts items by name
|
||||
|
||||
import doc::item_utils;
|
||||
use doc::item_utils;
|
||||
export mk_pass;
|
||||
|
||||
fn mk_pass() -> pass {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! Sorts items by type
|
||||
|
||||
import doc::item_utils;
|
||||
use doc::item_utils;
|
||||
|
||||
export mk_pass;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//! A general sorting pass
|
||||
|
||||
import doc::item_utils;
|
||||
import std::sort;
|
||||
use doc::item_utils;
|
||||
use std::sort;
|
||||
|
||||
export item_lteq, mk_pass;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! Generic pass for performing an operation on all descriptions
|
||||
|
||||
import doc::item_utils;
|
||||
use doc::item_utils;
|
||||
|
||||
export mk_pass;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* is interpreted as the brief description.
|
||||
*/
|
||||
|
||||
import doc::item_utils;
|
||||
use doc::item_utils;
|
||||
|
||||
export mk_pass;
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
//! Pulls type information out of the AST and attaches it to the document
|
||||
|
||||
import doc::item_utils;
|
||||
import syntax::ast;
|
||||
import syntax::print::pprust;
|
||||
import syntax::ast_map;
|
||||
import std::map::hashmap;
|
||||
import extract::to_str;
|
||||
use doc::item_utils;
|
||||
use syntax::ast;
|
||||
use syntax::print::pprust;
|
||||
use syntax::ast_map;
|
||||
use std::map::hashmap;
|
||||
use extract::to_str;
|
||||
|
||||
export mk_pass;
|
||||
|
||||
|
|
Loading…
Reference in New Issue