MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / empty_cstr

Function empty_cstr

crates/rustc_codegen_nvvm/src/builder.rs:44–46  ·  view source on GitHub ↗

cant make this a const because its not a const fn on stable yet :(

()

Source from the content-addressed store, hash-verified

42
43// cant make this a const because its not a const fn on stable yet :(
44fn empty_cstr() -> &'static CStr {
45 unsafe { CStr::from_bytes_with_nul_unchecked(b"\0") }
46}
47
48/// Empty string, to be used where LLVM expects an instruction name, indicating
49/// that the instruction is to be left unnamed (i.e. numbered, in textual IR).

Callers 1

unnamedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected