blob: 15fd67a50383072910b53562fe0298c4a5459f18 [file]
// We need this feature as it changes `dylib` linking behavior and allows us to link to `rustc_driver`.
#![feature(rustc_private)]
extern crate rustc_driver;
use std::process::ExitCode;
// Override the C allocator in the same way that the `rustc` binary would do.
rustc_driver::override_c_allocator_in_binary!();
fn main() -> ExitCode {
rustdoc::main()
}