@@ -106,10 +106,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
106106 ///
107107 /// Returns `None` to fallback to the default debug output (e.g.,
108108 /// if no info about current program is available from TLS).
109+ #[ allow( unused_variables) ]
109110 fn debug_struct_id (
110111 struct_id : StructId < Self > ,
111112 fmt : & mut fmt:: Formatter < ' _ > ,
112- ) -> Option < fmt:: Result > ;
113+ ) -> Option < fmt:: Result > {
114+ None
115+ }
113116
114117 /// Prints the debug representation of a type-kind-id. To get good
115118 /// results, this requires inspecting TLS, and is difficult to
@@ -118,17 +121,25 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
118121 ///
119122 /// Returns `None` to fallback to the default debug output (e.g.,
120123 /// if no info about current program is available from TLS).
121- fn debug_trait_id ( trait_id : TraitId < Self > , fmt : & mut fmt:: Formatter < ' _ > )
122- -> Option < fmt:: Result > ;
124+ #[ allow( unused_variables) ]
125+ fn debug_trait_id (
126+ trait_id : TraitId < Self > ,
127+ fmt : & mut fmt:: Formatter < ' _ > ,
128+ ) -> Option < fmt:: Result > {
129+ None
130+ }
123131
124132 /// Prints the debug representation of a type-kind-id. To get good
125133 /// results, this requires inspecting TLS, and is difficult to
126134 /// code without reference to a specific interner (and hence
127135 /// fully known types).
136+ #[ allow( unused_variables) ]
128137 fn debug_assoc_type_id (
129138 type_id : AssocTypeId < Self > ,
130139 fmt : & mut fmt:: Formatter < ' _ > ,
131- ) -> Option < fmt:: Result > ;
140+ ) -> Option < fmt:: Result > {
141+ None
142+ }
132143
133144 /// Prints the debug representation of an alias. To get good
134145 /// results, this requires inspecting TLS, and is difficult to
@@ -137,7 +148,10 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
137148 ///
138149 /// Returns `None` to fallback to the default debug output (e.g.,
139150 /// if no info about current program is available from TLS).
140- fn debug_alias ( alias : & AliasTy < Self > , fmt : & mut fmt:: Formatter < ' _ > ) -> Option < fmt:: Result > ;
151+ #[ allow( unused_variables) ]
152+ fn debug_alias ( alias : & AliasTy < Self > , fmt : & mut fmt:: Formatter < ' _ > ) -> Option < fmt:: Result > {
153+ None
154+ }
141155
142156 /// Prints the debug representation of an type. To get good
143157 /// results, this requires inspecting TLS, and is difficult to
@@ -146,7 +160,10 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
146160 ///
147161 /// Returns `None` to fallback to the default debug output (e.g.,
148162 /// if no info about current program is available from TLS).
149- fn debug_ty ( ty : & Ty < Self > , fmt : & mut fmt:: Formatter < ' _ > ) -> Option < fmt:: Result > ;
163+ #[ allow( unused_variables) ]
164+ fn debug_ty ( ty : & Ty < Self > , fmt : & mut fmt:: Formatter < ' _ > ) -> Option < fmt:: Result > {
165+ None
166+ }
150167
151168 /// Prints the debug representation of an lifetime. To get good
152169 /// results, this requires inspecting TLS, and is difficult to
@@ -155,10 +172,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
155172 ///
156173 /// Returns `None` to fallback to the default debug output (e.g.,
157174 /// if no info about current program is available from TLS).
175+ #[ allow( unused_variables) ]
158176 fn debug_lifetime (
159177 lifetime : & Lifetime < Self > ,
160178 fmt : & mut fmt:: Formatter < ' _ > ,
161- ) -> Option < fmt:: Result > ;
179+ ) -> Option < fmt:: Result > {
180+ None
181+ }
162182
163183 /// Prints the debug representation of an parameter. To get good
164184 /// results, this requires inspecting TLS, and is difficult to
@@ -167,10 +187,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
167187 ///
168188 /// Returns `None` to fallback to the default debug output (e.g.,
169189 /// if no info about current program is available from TLS).
190+ #[ allow( unused_variables) ]
170191 fn debug_parameter (
171192 parameter : & Parameter < Self > ,
172193 fmt : & mut fmt:: Formatter < ' _ > ,
173- ) -> Option < fmt:: Result > ;
194+ ) -> Option < fmt:: Result > {
195+ None
196+ }
174197
175198 /// Prints the debug representation of an goal. To get good
176199 /// results, this requires inspecting TLS, and is difficult to
@@ -179,7 +202,10 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
179202 ///
180203 /// Returns `None` to fallback to the default debug output (e.g.,
181204 /// if no info about current program is available from TLS).
182- fn debug_goal ( goal : & Goal < Self > , fmt : & mut fmt:: Formatter < ' _ > ) -> Option < fmt:: Result > ;
205+ #[ allow( unused_variables) ]
206+ fn debug_goal ( goal : & Goal < Self > , fmt : & mut fmt:: Formatter < ' _ > ) -> Option < fmt:: Result > {
207+ None
208+ }
183209
184210 /// Prints the debug representation of a list of goals. To get good
185211 /// results, this requires inspecting TLS, and is difficult to
@@ -188,7 +214,10 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
188214 ///
189215 /// Returns `None` to fallback to the default debug output (e.g.,
190216 /// if no info about current program is available from TLS).
191- fn debug_goals ( goals : & Goals < Self > , fmt : & mut fmt:: Formatter < ' _ > ) -> Option < fmt:: Result > ;
217+ #[ allow( unused_variables) ]
218+ fn debug_goals ( goals : & Goals < Self > , fmt : & mut fmt:: Formatter < ' _ > ) -> Option < fmt:: Result > {
219+ None
220+ }
192221
193222 /// Prints the debug representation of a ProgramClauseImplication. To get good
194223 /// results, this requires inspecting TLS, and is difficult to
@@ -197,10 +226,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
197226 ///
198227 /// Returns `None` to fallback to the default debug output (e.g.,
199228 /// if no info about current program is available from TLS).
229+ #[ allow( unused_variables) ]
200230 fn debug_program_clause_implication (
201231 pci : & ProgramClauseImplication < Self > ,
202232 fmt : & mut fmt:: Formatter < ' _ > ,
203- ) -> Option < fmt:: Result > ;
233+ ) -> Option < fmt:: Result > {
234+ None
235+ }
204236
205237 /// Prints the debug representation of an ApplicationTy. To get good
206238 /// results, this requires inspecting TLS, and is difficult to
@@ -209,10 +241,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
209241 ///
210242 /// Returns `None` to fallback to the default debug output (e.g.,
211243 /// if no info about current program is available from TLS).
244+ #[ allow( unused_variables) ]
212245 fn debug_application_ty (
213246 application_ty : & ApplicationTy < Self > ,
214247 fmt : & mut fmt:: Formatter < ' _ > ,
215- ) -> Option < fmt:: Result > ;
248+ ) -> Option < fmt:: Result > {
249+ None
250+ }
216251
217252 /// Prints the debug representation of a Substitution. To get good
218253 /// results, this requires inspecting TLS, and is difficult to
@@ -221,10 +256,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
221256 ///
222257 /// Returns `None` to fallback to the default debug output (e.g.,
223258 /// if no info about current program is available from TLS).
259+ #[ allow( unused_variables) ]
224260 fn debug_substitution (
225261 substitution : & Substitution < Self > ,
226262 fmt : & mut fmt:: Formatter < ' _ > ,
227- ) -> Option < fmt:: Result > ;
263+ ) -> Option < fmt:: Result > {
264+ None
265+ }
228266
229267 /// Prints the debug representation of a SeparatorTraitRef. To get good
230268 /// results, this requires inspecting TLS, and is difficult to
@@ -233,10 +271,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
233271 ///
234272 /// Returns `None` to fallback to the default debug output (e.g.,
235273 /// if no info about current program is available from TLS).
274+ #[ allow( unused_variables) ]
236275 fn debug_separator_trait_ref (
237- separator_trait_ref : & SeparatorTraitRef < Self > ,
276+ separator_trait_ref : & SeparatorTraitRef < ' _ , Self > ,
238277 fmt : & mut fmt:: Formatter < ' _ > ,
239- ) -> Option < fmt:: Result > ;
278+ ) -> Option < fmt:: Result > {
279+ None
280+ }
240281
241282 /// Create an "interned" type from `ty`. This is not normally
242283 /// invoked directly; instead, you invoke `TyData::intern` (which
@@ -433,7 +474,7 @@ mod default {
433474 }
434475
435476 fn debug_separator_trait_ref (
436- separator_trait_ref : & SeparatorTraitRef < ChalkIr > ,
477+ separator_trait_ref : & SeparatorTraitRef < ' _ , ChalkIr > ,
437478 fmt : & mut fmt:: Formatter < ' _ > ,
438479 ) -> Option < fmt:: Result > {
439480 tls:: with_current_program ( |prog| {
0 commit comments