diff options
| author | bors <bors@rust-lang.org> | 2018-11-04 01:43:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-11-04 01:43:40 +0000 |
| commit | 6d69fe7a2fa31108ee7d23515cec7dd151d08331 (patch) | |
| tree | 42306bbfe5108ed35ff0b7da27069e79012dd033 /src/tools | |
| parent | 4c5c05d7d93469e9b4069746bc8799ba9efd807a (diff) | |
| parent | 014c8c4c3872ff74169ffbbc3a69acd92be2a76c (diff) | |
Auto merge of #54861 - rep-nop:find_main_in_doctest, r=estebank
rustdoc: Replaces fn main search and extern crate search with proper parsing during doctests. Fixes #21299. Fixes #33731. Let me know if there's any additional changes you'd like made!
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/error_index_generator/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/error_index_generator/main.rs b/src/tools/error_index_generator/main.rs index 40917cc5db0..a5556e1d570 100644 --- a/src/tools/error_index_generator/main.rs +++ b/src/tools/error_index_generator/main.rs @@ -10,6 +10,7 @@ #![feature(rustc_private)] +extern crate env_logger; extern crate syntax; extern crate rustdoc; extern crate serialize as rustc_serialize; @@ -264,6 +265,7 @@ fn parse_args() -> (OutputFormat, PathBuf) { } fn main() { + env_logger::init(); PLAYGROUND.with(|slot| { *slot.borrow_mut() = Some((None, String::from("https://play.rust-lang.org/"))); }); |
