Skip to content

Commit 7a474a7

Browse files
committed
Updated arguments and return types
1 parent 75dfd3f commit 7a474a7

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

crates/rustc_codegen_spirv/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,6 @@ impl ThinBufferMethods for SpirvModuleBuffer {
304304
fn data(&self) -> &[u8] {
305305
self.as_bytes()
306306
}
307-
// fn thin_link_data(&self) -> &[u8] {
308-
// &[]
309-
// }
310307
}
311308

312309
impl SpirvCodegenBackend {
@@ -344,7 +341,6 @@ impl WriteBackendMethods for SpirvCodegenBackend {
344341
_exported_symbols_for_lto: &[String],
345342
_each_linked_rlib_for_lto: &[PathBuf],
346343
_modules: Vec<FatLtoInput<Self>>,
347-
// _diff_fncs: Vec<AutoDiffItem>,
348344
) -> ModuleCodegen<Self::Module> {
349345
assert!(
350346
cgcx.lto == rustc_session::config::Lto::Fat,

crates/rustc_codegen_spirv/src/link.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ fn add_upstream_native_libraries(
494494
// FIXME(eddyb) upstream has code like this already, maybe we can reuse most of it?
495495
// (see `compiler/rustc_codegen_ssa/src/back/link.rs`)
496496
fn relevant_lib(_sess: &Session, _lib: &NativeLib) -> bool {
497+
// FIXME: `lib.cfg` is not of the expected type any more.
497498
true
498499
// match lib.cfg {
499500
// Some(ref cfg) => rustc_attr_parsing::cfg_matches(cfg, sess, CRATE_NODE_ID, None),

crates/rustc_codegen_spirv/src/linker/test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ fn link_with_linker_opts(
156156
rustc_interface::util::rustc_version_str().unwrap_or("unknown"),
157157
Default::default(),
158158
&rustc_driver_impl::USING_INTERNAL_FEATURES,
159-
// Default::default(),
160159
);
161160

162161
// HACK(eddyb) inject `write_diags` into `sess`, to work around

0 commit comments

Comments
 (0)