We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d573e9 commit e7795edCopy full SHA for e7795ed
src/mono_item.rs
@@ -26,7 +26,7 @@ impl<'gcc, 'tcx> PreDefineMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
26
let attrs = self.tcx.codegen_fn_attrs(def_id);
27
let instance = Instance::mono(self.tcx, def_id);
28
let DefKind::Static { nested, .. } = self.tcx.def_kind(def_id) else { bug!() };
29
- // Nested statics do not have a type, so pick a random type and let `define_static` figure out
+ // Nested statics do not have a type, so pick a dummy type and let `codegen_static` figure out
30
// the gcc type from the actual evaluated initializer.
31
let ty = if nested {
32
self.tcx.types.unit
0 commit comments