about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2023-03-14 14:19:06 +0100
committerlcnr <rust@lcnr.de>2023-03-21 09:57:20 +0100
commit791ce0b7b5d03649bc9014d5b0abb78f3c6f2cfd (patch)
tree4a321c50deba262c65a0dc552fbfaca8cc70de14 /compiler/rustc_ty_utils
parent84c47b8279b39e165dfebeb529eb6d92592e4f8d (diff)
downloadrust-791ce0b7b5d03649bc9014d5b0abb78f3c6f2cfd.tar.gz
rust-791ce0b7b5d03649bc9014d5b0abb78f3c6f2cfd.zip
remove some trait solver helpers
they add more complexity then they are worth. It's confusing
which of these helpers should be used in which context.
Diffstat (limited to 'compiler/rustc_ty_utils')
-rw-r--r--compiler/rustc_ty_utils/src/common_traits.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_ty_utils/src/common_traits.rs b/compiler/rustc_ty_utils/src/common_traits.rs
index d3169b6d962..3b1abdcb24f 100644
--- a/compiler/rustc_ty_utils/src/common_traits.rs
+++ b/compiler/rustc_ty_utils/src/common_traits.rs
@@ -3,7 +3,6 @@
 use rustc_hir::lang_items::LangItem;
 use rustc_infer::infer::TyCtxtInferExt;
 use rustc_middle::ty::{self, Ty, TyCtxt};
-use rustc_span::DUMMY_SP;
 use rustc_trait_selection::traits;
 
 fn is_copy_raw<'tcx>(tcx: TyCtxt<'tcx>, query: ty::ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool {
@@ -30,7 +29,7 @@ fn is_item_raw<'tcx>(
     let (param_env, ty) = query.into_parts();
     let trait_def_id = tcx.require_lang_item(item, None);
     let infcx = tcx.infer_ctxt().build();
-    traits::type_known_to_meet_bound_modulo_regions(&infcx, param_env, ty, trait_def_id, DUMMY_SP)
+    traits::type_known_to_meet_bound_modulo_regions(&infcx, param_env, ty, trait_def_id)
 }
 
 pub(crate) fn provide(providers: &mut ty::query::Providers) {