diff --git a/compiler/rustc_typeck/src/check/intrinsic.rs b/compiler/rustc_typeck/src/check/intrinsic.rs index 74f6f50d412..cd6b1115ed8 100644 --- a/compiler/rustc_typeck/src/check/intrinsic.rs +++ b/compiler/rustc_typeck/src/check/intrinsic.rs @@ -7,7 +7,7 @@ use crate::errors::{ }; use crate::require_same_types; -use rustc_errors::{pluralize, struct_span_err}; +use rustc_errors::struct_span_err; use rustc_hir as hir; use rustc_middle::traits::{ObligationCause, ObligationCauseCode}; use rustc_middle::ty::subst::Subst; @@ -43,7 +43,6 @@ fn equate_intrinsic_type<'tcx>( span, found, expected, - expected_pluralize: pluralize!(expected), descr, }); false diff --git a/compiler/rustc_typeck/src/errors.rs b/compiler/rustc_typeck/src/errors.rs index 72733e087c2..0b78aea9f05 100644 --- a/compiler/rustc_typeck/src/errors.rs +++ b/compiler/rustc_typeck/src/errors.rs @@ -30,7 +30,6 @@ pub struct WrongNumberOfGenericArgumentsToIntrinsic<'a> { pub span: Span, pub found: usize, pub expected: usize, - pub expected_pluralize: &'a str, pub descr: &'a str, }