File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ fn data_id_for_static(
202
202
if linkage == Linkage :: Preemptible {
203
203
if let ty:: RawPtr ( _) = tcx. type_of ( def_id) . sty {
204
204
} else {
205
- tcx. sess . span_fatal ( tcx. def_span ( def_id) , "must have type `*const T` or `*mut T`" )
205
+ tcx. sess . span_fatal ( tcx. def_span ( def_id) , "must have type `*const T` or `*mut T` due to `#[linkage]` attribute " )
206
206
}
207
207
208
208
let mut data_ctx = DataContext :: new ( ) ;
Original file line number Diff line number Diff line change @@ -195,6 +195,8 @@ impl CodegenBackend for CraneliftCodegenBackend {
195
195
need_metadata_module : bool ,
196
196
_rx : mpsc:: Receiver < Box < dyn Any + Send > > ,
197
197
) -> Box < dyn Any > {
198
+ rustc_codegen_utils:: check_for_rustc_errors_attr ( tcx) ;
199
+
198
200
let res = driver:: codegen_crate ( tcx, metadata, need_metadata_module) ;
199
201
200
202
rustc_incremental:: assert_module_sources:: assert_module_sources ( tcx) ;
You can’t perform that action at this time.
0 commit comments