Home
last modified time | relevance | path

Searched refs:def_span (Results 1 – 25 of 104) sorted by relevance

12345

/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_query_impl/src/
H A Dkeys.rs49 tcx.def_span(self.def_id()) in default_span()
60 tcx.def_span(self.def_id()) in default_span()
126 tcx.def_span(*self) in default_span()
190 tcx.def_span(self.0) in default_span()
274 tcx.def_span(self.1.def_id()) in default_span()
304 tcx.def_span(self.def_id()) in default_span()
314 tcx.def_span(self.def_id()) in default_span()
324 tcx.def_span(self.0.def_id()) in default_span()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/
H A Dimpl_wf_check.rs108 tcx.def_span(impl_def_id), in enforce_impl_params_are_constrained()
155 tcx.def_span(param.def_id), in enforce_impl_params_are_constrained()
168 tcx.def_span(param.def_id), in enforce_impl_params_are_constrained()
179 tcx.def_span(param.def_id), in enforce_impl_params_are_constrained()
H A Dlib.rs172 let main_span = tcx.def_span(main_def_id); in check_main_fn_ty()
201 span_bug!(tcx.def_span(def_id), "main has a non-function type"); in check_main_fn_ty()
216 span_bug!(tcx.def_span(def_id), "main has a non-function type"); in check_main_fn_ty()
231 span_bug!(tcx.def_span(def_id), "main has a non-function type"); in check_main_fn_ty()
246 span_bug!(tcx.def_span(def_id), "main has a non-function type"); in check_main_fn_ty()
390 let start_span = tcx.def_span(start_def_id); in check_start_fn_ty()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_borrowck/src/region_infer/
H A Dopaque_types.rs190 tcx.def_span(opaque_generics.param_at(i, tcx).def_id), in check_opaque_type_parameter_valid()
212 tcx.def_span(opaque_param.def_id), in check_opaque_type_parameter_valid()
229 .map(|i| tcx.def_span(opaque_generics.param_at(i, tcx).def_id)) in check_opaque_type_parameter_valid()
/dports/lang/rust/rustc-1.58.1-src/src/tools/rls/rls-analysis/src/
H A Dlib.rs94 macro_rules! def_span { macro
235 self.with_analysis(|a| a.def_id_for_span(span).and_then(|id| def_span!(a, id))) in goto_def()
307 let decl = if include_decl { def_span!(a, id) } else { None }; in find_all_refs()
379 def_span!(a, *id) in search()
385 .or_else(|| def_span!(a, *id).map(|s| vec![s])) in search()
407 Some(def_span!(a, id).into_iter().chain(refs.iter().cloned()).collect::<Vec<_>>()) in find_all_refs_by_id()
409 .or_else(|| def_span!(a, id).map(|s| vec![s])) in find_all_refs_by_id()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_const_eval/src/const_eval/
H A Deval_queries.rs200 let ecx = mk_eval_cx(tcx, tcx.def_span(key.value.instance.def_id()), key.param_env, is_static); in turn_into_const_value()
239 let span = tcx.def_span(def_id); in eval_to_const_value_raw_provider()
291 tcx.def_span(def.did), in eval_to_allocation_raw_provider()
305 tcx.def_span(def.did), in eval_to_allocation_raw_provider()
350 tcx.at(tcx.def_span(def.did)), in eval_to_allocation_raw_provider()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_infer/src/infer/error_reporting/nice_region_error/
H A Dtrait_impl_difference.rs74 let trait_sp = self.tcx().def_span(trait_def_id); in emit_err()
170 let impl_sp = self.tcx().def_span(impl_item_def_id); in emit_associated_type_err()
171 let trait_sp = self.tcx().def_span(trait_item_def_id); in emit_associated_type_err()
H A Dmismatched_static_lifetime.rs82 let impl_span = self.tcx().def_span(*impl_def_id); in try_report_mismatched_static_lifetime()
103 let impl_span = self.tcx().def_span(*impl_def_id); in try_report_mismatched_static_lifetime()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_monomorphize/src/
H A Dpolymorphize.rs206 _ => tcx.def_span(def_id), in emit_unused_generic_params_error()
216 let def_span = tcx.def_span(param.def_id); in emit_unused_generic_params_error() localVariable
217 err.span_label(def_span, &format!("generic parameter `{}` is unused", param.name)); in emit_unused_generic_params_error()
/dports/www/firefox-legacy/firefox-52.8.0esr/python/compare-locales/compare_locales/
H A Dparser.py31 span, pre_ws_span, pre_comment_span, def_span, argument
37 self.def_span = def_span
57 return self.contents[self.def_span[0]:self.def_span[1]]
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_mir_transform/src/
H A Dcheck_const_item_mutation.rs90 .span_note(self.tcx.def_span(const_item), "`const` item defined here") in lint_const_item_usage()
148 …lint.span_note(self.tcx.def_span(method_did), "mutable reference created due to call to this metho… in visit_rvalue()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/collect/
H A Dtype_of.rs95 tcx.def_span(def_id), in opt_const_param_of()
154 tcx.def_span(def_id), in opt_const_param_of()
165 tcx.def_span(def_id), in opt_const_param_of()
219 tcx.sess.delay_span_bug(tcx.def_span(def_id), "anon const with Res::Err"); in opt_const_param_of()
227 tcx.def_span(def_id), in opt_const_param_of()
605 let span = self.tcx.def_span(def_id); in find_opaque_ty_constraints()
700 let span = tcx.def_span(def_id); in find_opaque_ty_constraints()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/hir/
H A Dmod.rs91 providers.source_span = |tcx, def_id| tcx.resolutions(()).definitions.def_span(def_id); in provide()
92 providers.def_span = |tcx, def_id| tcx.hir().span_if_local(def_id).unwrap_or(DUMMY_SP); in provide()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/check/
H A Ddropck.rs57 let span = tcx.def_span(drop_impl_did); in check_drop_impl()
84 let drop_impl_span = tcx.def_span(drop_impl_did); in ensure_drop_params_and_item_params_correspond()
95 let item_span = tcx.def_span(self_type_did); in ensure_drop_params_and_item_params_correspond()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/ty/
H A Derror.rs388 let e_span = self.def_span(generics.type_param(expected, self).def_id); in note_and_explain_type_err()
392 let f_span = self.def_span(generics.type_param(found, self).def_id); in note_and_explain_type_err()
411 let p_span = self.def_span(generics.type_param(p, self).def_id); in note_and_explain_type_err()
461 let p_span = self.def_span(generics.type_param(p, self).def_id); in note_and_explain_type_err()
501 let p_span = self.def_span(generics.type_param(p, self).def_id); in note_and_explain_type_err()
513 let p_span = self.def_span(generics.type_param(p, self).def_id); in note_and_explain_type_err()
832 self.sess.source_map().guess_head_span(self.def_span(item.def_id)), in point_at_methods_that_satisfy_associated_type()
H A Dconsts.rs50 tcx.def_span(def.did.to_def_id()), in from_opt_const_arg_anon_const()
135 tcx.def_span(def_id.to_def_id()), in from_inline_const()
270 tcx.def_span(def_id), in const_param_default()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/structured_errors/
H A Dwrong_number_of_generic_args.rs733 let mut spans: MultiSpan = if let Some(def_span) = self.tcx.def_ident_span(self.def_id) { in show_definition()
734 if self.tcx.sess.source_map().span_to_snippet(def_span).is_ok() { in show_definition()
735 def_span.into() in show_definition()
757 let span = self.tcx.def_span(param.def_id); in show_definition()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_query_system/src/ich/
H A Dhcx.rs207 fn def_span(&self, def_id: LocalDefId) -> Span { in def_span() method
208 self.definitions.def_span(def_id) in def_span()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_infer/src/infer/
H A Dprojection.rs27 span: self.tcx.def_span(def_id), in infer_projection()
/dports/lang/rust/rustc-1.58.1-src/src/test/ui-fulldeps/auxiliary/
H A Dlint-for-crate.rs30 let span = cx.tcx.def_span(CRATE_DEF_ID); in check_crate()
H A Dlint-for-crate-rpass.rs32 let span = cx.tcx.def_span(CRATE_DEF_ID);
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_resolve/src/
H A Ddiagnostics.rs1115 let def_span = suggestion.res.opt_def_id().and_then(|def_id| match def_id.krate { in add_typo_suggestion() localVariable
1123 if let Some(def_span) = def_span { in add_typo_suggestion()
1124 if span.overlaps(def_span) { in add_typo_suggestion()
1151 self.session.source_map().guess_head_span(def_span), in add_typo_suggestion()
1321 let def_span = self.session.source_map().guess_head_span(binding.span); in report_privacy_error() localVariable
1322 let mut note_span = MultiSpan::from_span(def_span); in report_privacy_error()
1324 note_span.push_span_label(def_span, "consider importing it directly".into()); in report_privacy_error()
1880 let span = definitions.def_span(local_def_id); in show_candidates()
1909 let span = definitions.def_span(local_def_id); in show_candidates()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/check/method/
H A Dsuggest.rs195 .guess_head_span(self.tcx.def_span(item.def_id)); in report_method_error()
695 let def_span = |def_id| { in report_method_error() localVariable
696 self.tcx.sess.source_map().guess_head_span(self.tcx.def_span(def_id)) in report_method_error()
751 ty::Adt(def, _) => bound_spans.push((def_span(def.did), msg)), in report_method_error()
757 bound_spans.push((def_span(tr.def_id), msg.clone())) in report_method_error()
766 .push((def_span(*def_id), format!("doesn't satisfy `{}`", quiet))), in report_method_error()
1061 .unwrap_or_else(|| self.tcx.def_span(def_id)); in report_method_error()
1131 let span = self.tcx.def_span(*def_id); in note_unmet_impls_on_type()
1141 sm.guess_head_span(self.tcx.def_span(def.did)), in note_unmet_impls_on_type()
1212 self.tcx.def_span(adt.did), in suggest_derive()
[all …]
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/util/
H A Dbug.rs46 tcx.def_span(key), in trigger_delay_span_bug()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_codegen_llvm/src/
H A Dconsts.rs175 cx.tcx.def_span(span_def_id), in check_and_apply_linkage()
194 cx.tcx.def_span(span_def_id), in check_and_apply_linkage()
268 span_bug!(self.tcx.def_span(def_id), "Conflicting types for static"); in get_static()

12345