about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/errors.rs
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-01 18:57:53 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-01-09 19:10:00 +0100
commit2855794257e36ec7393f3b7d8f4b99e5776f550f (patch)
tree0d90d03a27e2d6b86dbdfd0233f71aeb804027e4 /compiler/rustc_monomorphize/src/errors.rs
parent89e0576bd3aec2f1acf935b353900bd75742860b (diff)
downloadrust-2855794257e36ec7393f3b7d8f4b99e5776f550f.tar.gz
rust-2855794257e36ec7393f3b7d8f4b99e5776f550f.zip
Use newtype for unused generic parameters
Diffstat (limited to 'compiler/rustc_monomorphize/src/errors.rs')
-rw-r--r--compiler/rustc_monomorphize/src/errors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_monomorphize/src/errors.rs b/compiler/rustc_monomorphize/src/errors.rs
index aa3227cac2d..5233cfb2120 100644
--- a/compiler/rustc_monomorphize/src/errors.rs
+++ b/compiler/rustc_monomorphize/src/errors.rs
@@ -32,13 +32,13 @@ pub struct TypeLengthLimit {
     pub type_length: usize,
 }
 
-pub struct UnusedGenericParams {
+pub struct UnusedGenericParamsHint {
     pub span: Span,
     pub param_spans: Vec<Span>,
     pub param_names: Vec<String>,
 }
 
-impl IntoDiagnostic<'_> for UnusedGenericParams {
+impl IntoDiagnostic<'_> for UnusedGenericParamsHint {
     #[track_caller]
     fn into_diagnostic(
         self,