Remove unused feature gates from cg_llvm
Also turns a few `box` into `Box::new`
This commit is contained in:
parent
095963f91d
commit
f9971c5cba
2 changed files with 6 additions and 13 deletions
|
@ -6,18 +6,11 @@
|
|||
|
||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
|
||||
#![feature(bool_to_option)]
|
||||
#![feature(box_patterns)]
|
||||
#![feature(box_syntax)]
|
||||
#![feature(const_cstr_unchecked)]
|
||||
#![feature(crate_visibility_modifier)]
|
||||
#![feature(extern_types)]
|
||||
#![feature(in_band_lifetimes)]
|
||||
#![feature(libc)]
|
||||
#![feature(nll)]
|
||||
#![feature(optin_builtin_traits)]
|
||||
#![feature(concat_idents)]
|
||||
#![feature(link_args)]
|
||||
#![feature(static_nobundle)]
|
||||
#![feature(trusted_len)]
|
||||
#![recursion_limit = "256"]
|
||||
|
||||
|
@ -196,7 +189,7 @@ unsafe impl Sync for LlvmCodegenBackend {}
|
|||
|
||||
impl LlvmCodegenBackend {
|
||||
pub fn new() -> Box<dyn CodegenBackend> {
|
||||
box LlvmCodegenBackend(())
|
||||
Box::new(LlvmCodegenBackend(()))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -245,7 +238,7 @@ impl CodegenBackend for LlvmCodegenBackend {
|
|||
}
|
||||
|
||||
fn metadata_loader(&self) -> Box<MetadataLoaderDyn> {
|
||||
box metadata::LlvmMetadataLoader
|
||||
Box::new(metadata::LlvmMetadataLoader)
|
||||
}
|
||||
|
||||
fn provide(&self, providers: &mut ty::query::Providers<'_>) {
|
||||
|
@ -262,12 +255,12 @@ impl CodegenBackend for LlvmCodegenBackend {
|
|||
metadata: EncodedMetadata,
|
||||
need_metadata_module: bool,
|
||||
) -> Box<dyn Any> {
|
||||
box rustc_codegen_ssa::base::codegen_crate(
|
||||
Box::new(rustc_codegen_ssa::base::codegen_crate(
|
||||
LlvmCodegenBackend(()),
|
||||
tcx,
|
||||
metadata,
|
||||
need_metadata_module,
|
||||
)
|
||||
))
|
||||
}
|
||||
|
||||
fn join_codegen(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue