MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / struct_err

Method struct_err

crates/rustc_codegen_spirv/src/builder/mod.rs:73–79  ·  view source on GitHub ↗
(&self, msg: &str)

Source from the content-addressed store, hash-verified

71 }
72
73 pub fn struct_err(&self, msg: &str) -> DiagnosticBuilder<'_, ErrorGuaranteed> {
74 if let Some(current_span) = self.current_span {
75 self.tcx.sess.struct_span_err(current_span, msg)
76 } else {
77 self.tcx.sess.struct_err(msg)
78 }
79 }
80
81 pub fn err(&self, msg: &str) {
82 if let Some(current_span) = self.current_span {

Callers 9

post_link_single_moduleFunction · 0.80
do_spirv_optFunction · 0.80
do_spirv_valFunction · 0.80
linkFunction · 0.80
visitFunction · 0.80
check_tys_equalFunction · 0.80
insert_instMethod · 0.80
load_errMethod · 0.80
store_errMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected