diff options
| author | Michael Goulet <michael@errs.io> | 2023-10-18 02:27:03 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-10-18 02:38:54 +0000 |
| commit | 9917ef9a6674619a72c16efaf1ca3777730d0012 (patch) | |
| tree | 964b5a87b4f106c4e352d48ed3a9fd7f69b613ee /compiler/rustc_middle/src/ty | |
| parent | 09df6108c84fdec400043d99d9ee232336fd5a9f (diff) | |
| download | rust-9917ef9a6674619a72c16efaf1ca3777730d0012.tar.gz rust-9917ef9a6674619a72c16efaf1ca3777730d0012.zip | |
Don't compare host param by name
Diffstat (limited to 'compiler/rustc_middle/src/ty')
| -rw-r--r-- | compiler/rustc_middle/src/ty/generic_args.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_middle/src/ty/generic_args.rs b/compiler/rustc_middle/src/ty/generic_args.rs index 72390e4bbb0..a861af47859 100644 --- a/compiler/rustc_middle/src/ty/generic_args.rs +++ b/compiler/rustc_middle/src/ty/generic_args.rs @@ -11,7 +11,6 @@ use rustc_errors::{DiagnosticArgValue, IntoDiagnosticArg}; use rustc_hir::def_id::DefId; use rustc_macros::HashStable; use rustc_serialize::{self, Decodable, Encodable}; -use rustc_span::sym; use rustc_type_ir::WithCachedTypeInfo; use smallvec::SmallVec; @@ -452,10 +451,6 @@ impl<'tcx> GenericArgs<'tcx> { tcx.mk_args_from_iter(self.iter().take(generics.count())) } - pub fn host_effect_param(&'tcx self) -> Option<ty::Const<'tcx>> { - self.consts().rfind(|x| matches!(x.kind(), ty::ConstKind::Param(p) if p.name == sym::host)) - } - pub fn print_as_list(&self) -> String { let v = self.iter().map(|arg| arg.to_string()).collect::<Vec<_>>(); format!("[{}]", v.join(", ")) |
