/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_hir/src/ |
H A D | tests.rs | 2 use rustc_span::def_id::{DefPathHash, StableCrateId}; 14 let id0 = StableCrateId::new("foo", false, vec!["1".to_string()]); in def_path_hash_depends_on_crate_id() 15 let id1 = StableCrateId::new("foo", false, vec!["2".to_string()]); in def_path_hash_depends_on_crate_id() 23 fn mk_test_hash(stable_crate_id: StableCrateId) -> DefPathHash { in def_path_hash_depends_on_crate_id()
|
H A D | definitions.rs | 8 use crate::def_id::{CrateNum, DefIndex, LocalDefId, StableCrateId, CRATE_DEF_INDEX, LOCAL_CRATE}; 115 stable_crate_id: StableCrateId, 333 pub fn new(stable_crate_id: StableCrateId, crate_span: Span) -> Definitions { in new() argument
|
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_span-718.0.0/src/ |
H A D | def_id.rs | 158 pub fn stable_crate_id(&self) -> StableCrateId { in stable_crate_id() argument 159 StableCrateId(self.0.as_value().0) in stable_crate_id() 172 pub fn new(stable_crate_id: StableCrateId, local_hash: u64) -> DefPathHash { in new() argument 193 pub struct StableCrateId(u64); struct 195 impl StableCrateId { impl 198 pub fn new(crate_name: &str, crate_disambiguator: CrateDisambiguator) -> StableCrateId { in new() argument 204 StableCrateId(hasher.finish()) in new()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_span/src/ |
H A D | def_id.rs | 103 pub fn stable_crate_id(&self) -> StableCrateId { in stable_crate_id() argument 104 StableCrateId(self.0.as_value().0) in stable_crate_id() 117 pub fn new(stable_crate_id: StableCrateId, local_hash: u64) -> DefPathHash { in new() argument 139 pub struct StableCrateId(pub(crate) u64); struct 141 impl StableCrateId { impl 148 pub fn new(crate_name: &str, is_exe: bool, mut metadata: Vec<String>) -> StableCrateId { in new() argument 174 StableCrateId(hasher.finish()) in new()
|
H A D | hygiene.rs | 32 use crate::def_id::{CrateNum, DefId, StableCrateId, CRATE_DEF_ID, LOCAL_CRATE}; 99 pub fn stable_crate_id(self) -> StableCrateId { in stable_crate_id() argument 100 StableCrateId(self.0.as_value().0) in stable_crate_id() 118 fn new(stable_crate_id: StableCrateId, local_hash: u64) -> ExpnHash { in new() argument
|
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_span-722.0.0/src/ |
H A D | def_id.rs | 157 pub fn stable_crate_id(&self) -> StableCrateId { in stable_crate_id() argument 158 StableCrateId(self.0.as_value().0) in stable_crate_id() 171 pub fn new(stable_crate_id: StableCrateId, local_hash: u64) -> DefPathHash { in new() argument 193 pub struct StableCrateId(u64); struct 195 impl StableCrateId { implementation 202 pub fn new(crate_name: &str, is_exe: bool, mut metadata: Vec<String>) -> StableCrateId { in new() argument 228 StableCrateId(hasher.finish()) in new()
|
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_span/src/ |
H A D | def_id.rs | 157 pub fn stable_crate_id(&self) -> StableCrateId { in stable_crate_id() argument 158 StableCrateId(self.0.as_value().0) in stable_crate_id() 171 pub fn new(stable_crate_id: StableCrateId, local_hash: u64) -> DefPathHash { in new() argument 193 pub struct StableCrateId(u64); struct 195 impl StableCrateId { impl 202 pub fn new(crate_name: &str, is_exe: bool, mut metadata: Vec<String>) -> StableCrateId { in new() argument 228 StableCrateId(hasher.finish()) in new()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_session/src/ |
H A D | cstore.rs | 10 use rustc_hir::def_id::{CrateNum, DefId, StableCrateId, LOCAL_CRATE}; 192 fn stable_crate_id(&self, cnum: CrateNum) -> StableCrateId; in stable_crate_id() argument 193 fn stable_crate_id_to_crate_num(&self, stable_crate_id: StableCrateId) -> CrateNum; in stable_crate_id_to_crate_num()
|
H A D | session.rs | 24 pub use rustc_span::def_id::StableCrateId; 149 pub stable_crate_id: OnceCell<StableCrateId>, 294 pub fn local_stable_crate_id(&self) -> StableCrateId { in local_stable_crate_id() argument 772 pub fn generate_proc_macro_decls_symbol(&self, stable_crate_id: StableCrateId) -> String { in generate_proc_macro_decls_symbol()
|
/dports/lang/rust/rustc-1.58.1-src/src/doc/rustc-dev-guide/src/backend/ |
H A D | libs-and-metadata.md | 119 The [`StableCrateId`] is a 64-bit hash used to identify different crates with 121 [`-C metadata`] CLI options computed in [`StableCrateId::new`]. It is 131 [`StableCrateId`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/def_id/struct.StableC… 132 [`StableCrateId::new`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/def_id/struct.St…
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_incremental/src/persist/ |
H A D | fs.rs | 111 use rustc_session::{Session, StableCrateId}; 189 stable_crate_id: StableCrateId, in prepare_session_directory() argument 645 fn crate_path(sess: &Session, crate_name: &str, stable_crate_id: StableCrateId) -> PathBuf { in crate_path()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_metadata/src/rmeta/decoder/ |
H A D | cstore_impl.rs | 17 use rustc_session::{Session, StableCrateId}; 487 fn stable_crate_id(&self, cnum: CrateNum) -> StableCrateId { in stable_crate_id() argument 491 fn stable_crate_id_to_crate_num(&self, stable_crate_id: StableCrateId) -> CrateNum { in stable_crate_id_to_crate_num()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_metadata/src/rmeta/ |
H A D | mod.rs | 11 use rustc_hir::def_id::{DefId, DefIndex, DefPathHash, StableCrateId}; 209 stable_crate_id: StableCrateId,
|
H A D | decoder.rs | 692 crate fn stable_crate_id(&self) -> StableCrateId { in stable_crate_id() argument 1991 crate fn stable_crate_id(&self) -> StableCrateId { in stable_crate_id() argument
|
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_session-722.0.0/src/ |
H A D | session.rs | 25 pub use rustc_span::def_id::StableCrateId; 141 pub stable_crate_id: OnceCell<StableCrateId>, 338 pub fn local_stable_crate_id(&self) -> StableCrateId { in local_stable_crate_id() argument 834 pub fn generate_plugin_registrar_symbol(&self, stable_crate_id: StableCrateId) -> String { in generate_plugin_registrar_symbol() 838 pub fn generate_proc_macro_decls_symbol(&self, stable_crate_id: StableCrateId) -> String { in generate_proc_macro_decls_symbol()
|
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_session/src/ |
H A D | session.rs | 25 pub use rustc_span::def_id::StableCrateId; 141 pub stable_crate_id: OnceCell<StableCrateId>, 338 pub fn local_stable_crate_id(&self) -> StableCrateId { in local_stable_crate_id() argument 834 pub fn generate_plugin_registrar_symbol(&self, stable_crate_id: StableCrateId) -> String { in generate_plugin_registrar_symbol() 838 pub fn generate_proc_macro_decls_symbol(&self, stable_crate_id: StableCrateId) -> String { in generate_proc_macro_decls_symbol()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_metadata/src/ |
H A D | creader.rs | 13 use rustc_hir::def_id::{CrateNum, LocalDefId, StableCrateId, LOCAL_CRATE}; 49 pub(crate) stable_crate_ids: FxHashMap<StableCrateId, CrateNum>, 671 stable_crate_id: StableCrateId, in dlsym_proc_macros() argument
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_query_impl/src/ |
H A D | on_disk_cache.rs | 6 use rustc_hir::def_id::{CrateNum, DefId, DefIndex, LocalDefId, StableCrateId, LOCAL_CRATE}; 136 stable_crate_id: StableCrateId, 721 let stable_id = StableCrateId::decode(d)?; in decode()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_interface/src/ |
H A D | passes.rs | 15 use rustc_hir::def_id::{StableCrateId, LOCAL_CRATE}; 198 let stable_crate_id = StableCrateId::new( in register_plugins()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/hir/map/ |
H A D | mod.rs | 15 use rustc_span::def_id::StableCrateId; 1118 fn upstream_crates(tcx: TyCtxt<'_>) -> Vec<(StableCrateId, Svh)> { in upstream_crates() argument
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/ty/ |
H A D | context.rs | 53 use rustc_span::def_id::{DefPathHash, StableCrateId}; 1287 pub fn stable_crate_id(self, crate_num: CrateNum) -> StableCrateId { in stable_crate_id() argument 1298 pub fn stable_crate_id_to_crate_num(self, stable_crate_id: StableCrateId) -> CrateNum { in stable_crate_id_to_crate_num()
|