Skip to content

Rollup of 8 pull requests #61025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 22 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
a7e1431
Update boxed::Box docs on memory layout
blkerby May 19, 2019
178b753
Remove trailing whitespaces to satisfy tidy
blkerby May 19, 2019
d320c7c
Do not fail on child without DefId
estebank May 20, 2019
419ca9d
LocalDecl push returns Local len
spastorino May 20, 2019
4e37785
Create and reference Memory Layout section of boxed docs
blkerby May 21, 2019
e186d3f
Add stream_to_parser_with_base_dir
topecongiro May 21, 2019
5ea5fe3
static_assert: make use of anonymous constants
RalfJung May 21, 2019
b557567
Remove impls for `InternedString`/string equality.
nnethercote May 14, 2019
61735ab
adjust deprecation date of mem::uninitialized
RalfJung May 21, 2019
b07dbe1
Add doc comment
topecongiro May 21, 2019
1f1a917
Fix tidy: remove a trailing whitespace
topecongiro May 21, 2019
a2168b0
update doc comment
RalfJung May 21, 2019
a1f2dce
Move `edition` outside the hygiene lock and avoid accessing it
Zoxc Apr 5, 2019
0b37900
Specify the edition for the rustdoc thread-pool
Zoxc May 20, 2019
0efaeb2
Rollup merge of #59742 - Zoxc:edition-cleanup, r=petrochenkov
Centril May 22, 2019
3e23201
Rollup merge of #60963 - blkerby:boxed_docs, r=alexcrichton
Centril May 22, 2019
8041c3c
Rollup merge of #60982 - estebank:fix-60976, r=petrochenkov
Centril May 22, 2019
643db3a
Rollup merge of #60991 - spastorino:local-decls-push, r=oli-obk
Centril May 22, 2019
03712a8
Rollup merge of #60995 - topecongiro:parser-from-stream-and-base-dir,…
Centril May 22, 2019
9c784b3
Rollup merge of #60998 - RalfJung:static_assert, r=Centril
Centril May 22, 2019
4ab7a0e
Rollup merge of #61003 - nnethercote:rm-InternedString-PartialEq-impl…
Centril May 22, 2019
166542c
Rollup merge of #61006 - RalfJung:maybe-uninit, r=Centril
Centril May 22, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/librustc_interface/interface.rs
Original file line number Diff line number Diff line change
@@ -143,10 +143,10 @@ where
)
}

pub fn default_thread_pool<F, R>(f: F) -> R
pub fn default_thread_pool<F, R>(edition: edition::Edition, f: F) -> R
where
F: FnOnce() -> R + Send,
R: Send,
{
util::spawn_thread_pool(edition::DEFAULT_EDITION, None, &None, f)
util::spawn_thread_pool(edition, None, &None, f)
}
9 changes: 6 additions & 3 deletions src/librustdoc/lib.rs
Original file line number Diff line number Diff line change
@@ -94,9 +94,7 @@ pub fn main() {
rustc_driver::set_sigpipe_handler();
env_logger::init();
let res = std::thread::Builder::new().stack_size(thread_stack_size).spawn(move || {
rustc_interface::interface::default_thread_pool(move || {
get_args().map(|args| main_args(&args)).unwrap_or(1)
})
get_args().map(|args| main_args(&args)).unwrap_or(1)
}).unwrap().join().unwrap_or(rustc_driver::EXIT_FAILURE);
process::exit(res);
}
@@ -382,7 +380,12 @@ fn main_args(args: &[String]) -> i32 {
Ok(opts) => opts,
Err(code) => return code,
};
rustc_interface::interface::default_thread_pool(options.edition, move || {
main_options(options)
})
}

fn main_options(options: config::Options) -> i32 {
let diag = core::new_handler(options.error_format,
None,
options.debugging_options.treat_err_as_bug,