mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 00:04:11 +00:00
Fixed compile errors
This commit is contained in:
parent
cdf9187f1c
commit
86921a21ff
@ -345,7 +345,7 @@ impl<'tcx> ConvSpirvType<'tcx> for TyAndLayout<'tcx> {
|
||||
span = cx.tcx.def_span(adt.did());
|
||||
}
|
||||
|
||||
let attrs = AggregatedSpirvAttributes::parse(cx, cx.tcx.get_attrs(adt.did()));
|
||||
let attrs = AggregatedSpirvAttributes::parse(cx, cx.tcx.get_attrs_unchecked(adt.did()));
|
||||
|
||||
if let Some(intrinsic_type_attr) = attrs.intrinsic_type.map(|attr| attr.value) {
|
||||
if let Ok(spirv_type) =
|
||||
|
@ -108,7 +108,7 @@ impl<'tcx> CodegenCx<'tcx> {
|
||||
|
||||
let declared = fn_id.with_type(function_type);
|
||||
|
||||
let attrs = AggregatedSpirvAttributes::parse(self, self.tcx.get_attrs(instance.def_id()));
|
||||
let attrs = AggregatedSpirvAttributes::parse(self, self.tcx.get_attrs_unchecked(instance.def_id()));
|
||||
if let Some(entry) = attrs.entry.map(|attr| attr.value) {
|
||||
let entry_name = entry
|
||||
.name
|
||||
|
Loading…
Reference in New Issue
Block a user