/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_span/src/ |
H A D | def_id.rs | 29 pub fn as_def_id(&self) -> DefId { in as_def_id() method 378 self.as_def_id().to_stable_hash_key(hcx) in to_stable_hash_key()
|
H A D | hygiene.rs | 1457 ExpnHash::new(ctx.def_path_hash(LOCAL_CRATE.as_def_id()).stable_crate_id(), expn_hash) in update_disambiguator()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_metadata/src/rmeta/ |
H A D | encoder.rs | 703 stable_crate_id: tcx.def_path_hash(LOCAL_CRATE.as_def_id()).stable_crate_id(), in encode_crate_root() 1657 record!(self.tables.def_kind[LOCAL_CRATE.as_def_id()] <- DefKind::Mod); in encode_proc_macros() 1658 … record!(self.tables.span[LOCAL_CRATE.as_def_id()] <- tcx.def_span(LOCAL_CRATE.as_def_id())); in encode_proc_macros() 1659 …record!(self.tables.attributes[LOCAL_CRATE.as_def_id()] <- tcx.get_attrs(LOCAL_CRATE.as_def_id())); in encode_proc_macros() 1660 …record!(self.tables.visibility[LOCAL_CRATE.as_def_id()] <- tcx.visibility(LOCAL_CRATE.as_def_id())… in encode_proc_macros() 1662 record!(self.tables.stability[LOCAL_CRATE.as_def_id()] <- stability); in encode_proc_macros() 1664 self.encode_deprecation(LOCAL_CRATE.as_def_id()); in encode_proc_macros()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_metadata/src/rmeta/decoder/ |
H A D | cstore_impl.rs | 76 (self.as_def_id(), self.as_def_id()) in into_args() 82 (self.0.as_def_id(), self.1) in into_args()
|
/dports/lang/rust/rustc-1.58.1-src/src/librustdoc/clean/ |
H A D | types.rs | 82 self.as_def_id() in expect_def_id() 87 crate fn as_def_id(self) -> Option<DefId> { in as_def_id() method 376 self.def_id.as_def_id().and_then(|did| tcx.lookup_stability(did)) in stability() 380 self.def_id.as_def_id().and_then(|did| tcx.lookup_const_stability(did)) in const_stability() 384 self.def_id.as_def_id().and_then(|did| tcx.lookup_deprecation(did)) in deprecation() 388 self.def_id.as_def_id().map(|did| tcx.get_attrs(did).inner_docs()).unwrap_or(false) in inner_docs() 407 self.def_id.as_def_id().map(|did| rustc_span(did, tcx)).unwrap_or_else(Span::dummy) in span() 525 self.is_mod() && self.def_id.as_def_id().map_or(false, |did| did.index == CRATE_DEF_INDEX) in is_crate()
|
/dports/lang/rust/rustc-1.58.1-src/src/librustdoc/passes/ |
H A D | check_code_block_syntax.rs | 67 let local_id = match item.def_id.as_def_id().and_then(|x| x.as_local()) { in check_rust_syntax()
|
H A D | calculate_doc_coverage.rs | 240 .as_def_id() in visit_item()
|
H A D | collect_intra_doc_links.rs | 825 item.def_id.as_def_id().and_then(|did| find_nearest_parent_module(self.cx.tcx, did)); in visit_item() 832 let self_id = match item.def_id.as_def_id() { in visit_item()
|
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_span-718.0.0/src/ |
H A D | def_id.rs | 72 pub fn as_def_id(&self) -> DefId { in as_def_id() method
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_symbol_mangling/src/ |
H A D | v0.rs | 54 cx = cx.print_def_path(instantiating_crate.as_def_id(), &[]).unwrap(); in mangle() 737 let stable_crate_id = self.tcx.def_path_hash(cnum.as_def_id()).stable_crate_id(); in path_crate()
|
H A D | legacy.rs | 130 tcx.def_path_hash(instantiating_crate.as_def_id()) in get_symbol_hash()
|
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_span-722.0.0/src/ |
H A D | def_id.rs | 71 pub fn as_def_id(&self) -> DefId { in as_def_id() method
|
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_span/src/ |
H A D | def_id.rs | 71 pub fn as_def_id(&self) -> DefId { in as_def_id() method
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_save_analysis/src/ |
H A D | lib.rs | 116 let span = match self.tcx.extern_crate(n.as_def_id()) { in get_external_crates() 132 self.tcx.def_path_hash(n.as_def_id()).stable_crate_id().to_u64(), in get_external_crates()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_resolve/src/ |
H A D | lib.rs | 2163 module.opt_def_id().map_or(LOCAL_CRATE, |def_id| def_id.krate).as_def_id(), in resolve_crate_root() 3295 let crate_root = self.expect_module(crate_id.as_def_id()); in extern_prelude_get()
|
H A D | diagnostics.rs | 998 let crate_root = self.expect_module(crate_id.as_def_id()); in lookup_import_candidates()
|
H A D | build_reduced_graph.rs | 707 self.r.expect_module(crate_id.as_def_id()) in build_reduced_graph_for_item()
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_utils/src/ |
H A D | lib.rs | 535 let first = try_res!(item_child_by_name(tcx, krate.as_def_id(), first)); in path_to_res()
|