Skip to content

Commit

Permalink
librustdoc: Fix librustdoc for the Vec<T> change.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcwalton authored and pnkfelix committed Mar 8, 2014
1 parent 43c0724 commit 15d9acc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/librustdoc/clean.rs
Expand Up @@ -110,6 +110,8 @@ impl Clean<ExternalCrate> for cstore::crate_metadata {
ExternalCrate {
name: self.name.to_owned(),
attrs: decoder::get_crate_attributes(self.data()).clean()
.move_iter()
.collect(),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/core.rs
Expand Up @@ -53,7 +53,7 @@ fn get_ast_and_resolve(cpath: &Path,
let sessopts = @driver::session::Options {
maybe_sysroot: Some(@os::self_exe_path().unwrap().dir_path()),
addl_lib_search_paths: @RefCell::new(libs),
crate_types: ~[driver::session::CrateTypeDylib],
crate_types: vec!(driver::session::CrateTypeDylib),
.. (*rustc::driver::session::basic_options()).clone()
};

Expand Down
6 changes: 3 additions & 3 deletions src/librustdoc/test.rs
Expand Up @@ -44,7 +44,7 @@ pub fn run(input: &str, matches: &getopts::Matches) -> int {
let sessopts = @session::Options {
maybe_sysroot: Some(@os::self_exe_path().unwrap().dir_path()),
addl_lib_search_paths: libs,
crate_types: ~[session::CrateTypeDylib],
crate_types: vec!(session::CrateTypeDylib),
.. (*session::basic_options()).clone()
};

Expand Down Expand Up @@ -106,8 +106,8 @@ fn runtest(test: &str, cratename: &str, libs: HashSet<Path>, should_fail: bool)
let sessopts = @session::Options {
maybe_sysroot: Some(@os::self_exe_path().unwrap().dir_path()),
addl_lib_search_paths: @RefCell::new(libs),
crate_types: ~[session::CrateTypeExecutable],
output_types: ~[link::OutputTypeExe],
crate_types: vec!(session::CrateTypeExecutable),
output_types: vec!(link::OutputTypeExe),
cg: session::CodegenOptions {
prefer_dynamic: true,
.. session::basic_codegen_options()
Expand Down

0 comments on commit 15d9acc

Please sign in to comment.