Removed @self and @Trait.
This commit is contained in:
parent
c13a929d58
commit
b2d30b72bf
122 changed files with 627 additions and 1694 deletions
|
|
@ -404,7 +404,6 @@ pub enum SelfTy {
|
|||
SelfStatic,
|
||||
SelfValue,
|
||||
SelfBorrowed(Option<Lifetime>, Mutability),
|
||||
SelfManaged,
|
||||
SelfOwned,
|
||||
}
|
||||
|
||||
|
|
@ -415,7 +414,6 @@ impl Clean<SelfTy> for ast::ExplicitSelf {
|
|||
ast::SelfValue => SelfValue,
|
||||
ast::SelfUniq => SelfOwned,
|
||||
ast::SelfRegion(lt, mt) => SelfBorrowed(lt.clean(), mt.clean()),
|
||||
ast::SelfBox => SelfManaged,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ use rustc::metadata::creader::Loader;
|
|||
use rustc::middle::privacy;
|
||||
|
||||
use syntax::ast;
|
||||
use syntax::diagnostic;
|
||||
use syntax::parse::token;
|
||||
use syntax::parse;
|
||||
use syntax;
|
||||
|
|
@ -48,7 +47,7 @@ fn get_ast_and_resolve(cpath: &Path,
|
|||
phase_2_configure_and_expand,
|
||||
phase_3_run_analysis_passes};
|
||||
|
||||
let parsesess = parse::new_parse_sess(None);
|
||||
let parsesess = parse::new_parse_sess();
|
||||
let input = FileInput(cpath.clone());
|
||||
|
||||
let sessopts = @driver::session::Options {
|
||||
|
|
@ -60,14 +59,13 @@ fn get_ast_and_resolve(cpath: &Path,
|
|||
};
|
||||
|
||||
|
||||
let diagnostic_handler = syntax::diagnostic::mk_handler(None);
|
||||
let diagnostic_handler = syntax::diagnostic::mk_handler();
|
||||
let span_diagnostic_handler =
|
||||
syntax::diagnostic::mk_span_handler(diagnostic_handler, parsesess.cm);
|
||||
|
||||
let sess = driver::driver::build_session_(sessopts,
|
||||
Some(cpath.clone()),
|
||||
parsesess.cm,
|
||||
@diagnostic::DefaultEmitter,
|
||||
span_diagnostic_handler);
|
||||
|
||||
let mut cfg = build_configuration(sess);
|
||||
|
|
|
|||
|
|
@ -435,7 +435,6 @@ impl<'a> fmt::Show for Method<'a> {
|
|||
clean::SelfStatic => {},
|
||||
clean::SelfValue => args.push_str("self"),
|
||||
clean::SelfOwned => args.push_str("~self"),
|
||||
clean::SelfManaged => args.push_str("@self"),
|
||||
clean::SelfBorrowed(Some(ref lt), clean::Immutable) => {
|
||||
args.push_str(format!("&{} self", *lt));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ use passes;
|
|||
use visit_ast::RustdocVisitor;
|
||||
|
||||
pub fn run(input: &str, matches: &getopts::Matches) -> int {
|
||||
let parsesess = parse::new_parse_sess(None);
|
||||
let parsesess = parse::new_parse_sess();
|
||||
let input_path = Path::new(input);
|
||||
let input = driver::FileInput(input_path.clone());
|
||||
let libs = matches.opt_strs("L").map(|s| Path::new(s.as_slice()));
|
||||
|
|
@ -49,14 +49,13 @@ pub fn run(input: &str, matches: &getopts::Matches) -> int {
|
|||
};
|
||||
|
||||
|
||||
let diagnostic_handler = diagnostic::mk_handler(None);
|
||||
let diagnostic_handler = diagnostic::mk_handler();
|
||||
let span_diagnostic_handler =
|
||||
diagnostic::mk_span_handler(diagnostic_handler, parsesess.cm);
|
||||
|
||||
let sess = driver::build_session_(sessopts,
|
||||
Some(input_path),
|
||||
parsesess.cm,
|
||||
@diagnostic::DefaultEmitter,
|
||||
span_diagnostic_handler);
|
||||
|
||||
let cfg = driver::build_configuration(sess);
|
||||
|
|
@ -98,7 +97,7 @@ pub fn run(input: &str, matches: &getopts::Matches) -> int {
|
|||
|
||||
fn runtest(test: &str, cratename: &str, libs: HashSet<Path>) {
|
||||
let test = maketest(test, cratename);
|
||||
let parsesess = parse::new_parse_sess(None);
|
||||
let parsesess = parse::new_parse_sess();
|
||||
let input = driver::StrInput(test);
|
||||
|
||||
let sessopts = @session::Options {
|
||||
|
|
@ -111,14 +110,13 @@ fn runtest(test: &str, cratename: &str, libs: HashSet<Path>) {
|
|||
.. (*session::basic_options()).clone()
|
||||
};
|
||||
|
||||
let diagnostic_handler = diagnostic::mk_handler(None);
|
||||
let diagnostic_handler = diagnostic::mk_handler();
|
||||
let span_diagnostic_handler =
|
||||
diagnostic::mk_span_handler(diagnostic_handler, parsesess.cm);
|
||||
|
||||
let sess = driver::build_session_(sessopts,
|
||||
None,
|
||||
parsesess.cm,
|
||||
@diagnostic::DefaultEmitter,
|
||||
span_diagnostic_handler);
|
||||
|
||||
let outdir = TempDir::new("rustdoctest").expect("rustdoc needs a tempdir");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue