MCPcopy Create free account
hub / github.com/Rust-API/Rust-API-Bypass-Checker / crate_name

Function crate_name

src/analysis/memory/utils.rs:214–216  ·  view source on GitHub ↗

Constructs a name for the crate that contains the given def_id.

(tcx: TyCtxt<'_>, def_id: DefId)

Source from the content-addressed store, hash-verified

212
213/// Constructs a name for the crate that contains the given def_id.
214fn crate_name(tcx: TyCtxt<'_>, def_id: DefId) -> String {
215 tcx.crate_name(def_id.krate).as_str().to_string()
216}
217
218/// Constructs a string that uniquely identifies a definition to serve as a key to
219/// the summary cache, which is a key value store. The string will always be the same as

Callers 2

qualified_type_nameFunction · 0.85
summary_key_strFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected