Skip to content

Commit c2e6822

Browse files
committed
Rustup to rustc 1.37.0-nightly (0beb2ba 2019-07-02)
Also removes some unnecessary errors.
1 parent 91b058d commit c2e6822

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

src/lib.rs

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -153,31 +153,7 @@ impl<'clif, 'tcx, B: Backend + 'static> CodegenCx<'clif, 'tcx, B> {
153153
struct CraneliftCodegenBackend;
154154

155155
impl CodegenBackend for CraneliftCodegenBackend {
156-
fn init(&self, sess: &Session) {
157-
for cty in sess.opts.crate_types.iter() {
158-
match *cty {
159-
CrateType::Rlib | CrateType::Dylib | CrateType::Executable => {}
160-
_ => {
161-
sess.warn(&format!(
162-
"Rustc codegen cranelift doesn't support output type {}",
163-
cty
164-
));
165-
}
166-
}
167-
}
168-
match sess.lto() {
169-
Lto::Fat | Lto::Thin | Lto::ThinLocal => {
170-
sess.warn("Rustc codegen cranelift doesn't support lto");
171-
}
172-
Lto::No => {}
173-
}
174-
if sess.opts.cg.rpath {
175-
sess.err("rpath is not yet supported");
176-
}
177-
if sess.opts.debugging_opts.pgo_gen.enabled() {
178-
sess.err("pgo is not supported");
179-
}
180-
}
156+
fn init(&self, _sess: &Session) {}
181157

182158
fn metadata_loader(&self) -> Box<dyn MetadataLoader + Sync> {
183159
Box::new(crate::metadata::CraneliftMetadataLoader)

0 commit comments

Comments
 (0)