about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/errors.rs
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2024-01-13 19:24:52 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2024-01-14 12:31:34 +0000
commit2cfc81766c37eb0f6696d50f9207876293fa7732 (patch)
tree4412abe0a39c36c1012c9d7b59623cd36edc9e79 /compiler/rustc_resolve/src/errors.rs
parent511bf6e1c7a3c2bf00d9c6d62f397b90aab55581 (diff)
downloadrust-2cfc81766c37eb0f6696d50f9207876293fa7732.tar.gz
rust-2cfc81766c37eb0f6696d50f9207876293fa7732.zip
Special case 'generic param from outer item' message for `Self`
Diffstat (limited to 'compiler/rustc_resolve/src/errors.rs')
-rw-r--r--compiler/rustc_resolve/src/errors.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/errors.rs b/compiler/rustc_resolve/src/errors.rs
index bd00cab66b0..da89df84c8a 100644
--- a/compiler/rustc_resolve/src/errors.rs
+++ b/compiler/rustc_resolve/src/errors.rs
@@ -46,6 +46,7 @@ pub(crate) struct GenericParamsFromOuterItem {
     pub(crate) sugg: Option<GenericParamsFromOuterItemSugg>,
     #[subdiagnostic]
     pub(crate) static_or_const: Option<GenericParamsFromOuterItemStaticOrConst>,
+    pub(crate) is_self: bool,
 }
 
 #[derive(Subdiagnostic)]