@@ -106,10 +106,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
106
106
///
107
107
/// Returns `None` to fallback to the default debug output (e.g.,
108
108
/// if no info about current program is available from TLS).
109
+ #[ allow( unused_variables) ]
109
110
fn debug_struct_id (
110
111
struct_id : StructId < Self > ,
111
112
fmt : & mut fmt:: Formatter < ' _ > ,
112
- ) -> Option < fmt:: Result > ;
113
+ ) -> Option < fmt:: Result > {
114
+ None
115
+ }
113
116
114
117
/// Prints the debug representation of a type-kind-id. To get good
115
118
/// results, this requires inspecting TLS, and is difficult to
@@ -118,17 +121,25 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
118
121
///
119
122
/// Returns `None` to fallback to the default debug output (e.g.,
120
123
/// 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
+ }
123
131
124
132
/// Prints the debug representation of a type-kind-id. To get good
125
133
/// results, this requires inspecting TLS, and is difficult to
126
134
/// code without reference to a specific interner (and hence
127
135
/// fully known types).
136
+ #[ allow( unused_variables) ]
128
137
fn debug_assoc_type_id (
129
138
type_id : AssocTypeId < Self > ,
130
139
fmt : & mut fmt:: Formatter < ' _ > ,
131
- ) -> Option < fmt:: Result > ;
140
+ ) -> Option < fmt:: Result > {
141
+ None
142
+ }
132
143
133
144
/// Prints the debug representation of an alias. To get good
134
145
/// results, this requires inspecting TLS, and is difficult to
@@ -137,7 +148,10 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
137
148
///
138
149
/// Returns `None` to fallback to the default debug output (e.g.,
139
150
/// 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
+ }
141
155
142
156
/// Prints the debug representation of an type. To get good
143
157
/// results, this requires inspecting TLS, and is difficult to
@@ -146,7 +160,10 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
146
160
///
147
161
/// Returns `None` to fallback to the default debug output (e.g.,
148
162
/// 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
+ }
150
167
151
168
/// Prints the debug representation of an lifetime. To get good
152
169
/// results, this requires inspecting TLS, and is difficult to
@@ -155,10 +172,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
155
172
///
156
173
/// Returns `None` to fallback to the default debug output (e.g.,
157
174
/// if no info about current program is available from TLS).
175
+ #[ allow( unused_variables) ]
158
176
fn debug_lifetime (
159
177
lifetime : & Lifetime < Self > ,
160
178
fmt : & mut fmt:: Formatter < ' _ > ,
161
- ) -> Option < fmt:: Result > ;
179
+ ) -> Option < fmt:: Result > {
180
+ None
181
+ }
162
182
163
183
/// Prints the debug representation of an parameter. To get good
164
184
/// results, this requires inspecting TLS, and is difficult to
@@ -167,10 +187,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
167
187
///
168
188
/// Returns `None` to fallback to the default debug output (e.g.,
169
189
/// if no info about current program is available from TLS).
190
+ #[ allow( unused_variables) ]
170
191
fn debug_parameter (
171
192
parameter : & Parameter < Self > ,
172
193
fmt : & mut fmt:: Formatter < ' _ > ,
173
- ) -> Option < fmt:: Result > ;
194
+ ) -> Option < fmt:: Result > {
195
+ None
196
+ }
174
197
175
198
/// Prints the debug representation of an goal. To get good
176
199
/// results, this requires inspecting TLS, and is difficult to
@@ -179,7 +202,10 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
179
202
///
180
203
/// Returns `None` to fallback to the default debug output (e.g.,
181
204
/// 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
+ }
183
209
184
210
/// Prints the debug representation of a list of goals. To get good
185
211
/// results, this requires inspecting TLS, and is difficult to
@@ -188,7 +214,10 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
188
214
///
189
215
/// Returns `None` to fallback to the default debug output (e.g.,
190
216
/// 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
+ }
192
221
193
222
/// Prints the debug representation of a ProgramClauseImplication. To get good
194
223
/// results, this requires inspecting TLS, and is difficult to
@@ -197,10 +226,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
197
226
///
198
227
/// Returns `None` to fallback to the default debug output (e.g.,
199
228
/// if no info about current program is available from TLS).
229
+ #[ allow( unused_variables) ]
200
230
fn debug_program_clause_implication (
201
231
pci : & ProgramClauseImplication < Self > ,
202
232
fmt : & mut fmt:: Formatter < ' _ > ,
203
- ) -> Option < fmt:: Result > ;
233
+ ) -> Option < fmt:: Result > {
234
+ None
235
+ }
204
236
205
237
/// Prints the debug representation of an ApplicationTy. To get good
206
238
/// results, this requires inspecting TLS, and is difficult to
@@ -209,10 +241,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
209
241
///
210
242
/// Returns `None` to fallback to the default debug output (e.g.,
211
243
/// if no info about current program is available from TLS).
244
+ #[ allow( unused_variables) ]
212
245
fn debug_application_ty (
213
246
application_ty : & ApplicationTy < Self > ,
214
247
fmt : & mut fmt:: Formatter < ' _ > ,
215
- ) -> Option < fmt:: Result > ;
248
+ ) -> Option < fmt:: Result > {
249
+ None
250
+ }
216
251
217
252
/// Prints the debug representation of a Substitution. To get good
218
253
/// results, this requires inspecting TLS, and is difficult to
@@ -221,10 +256,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
221
256
///
222
257
/// Returns `None` to fallback to the default debug output (e.g.,
223
258
/// if no info about current program is available from TLS).
259
+ #[ allow( unused_variables) ]
224
260
fn debug_substitution (
225
261
substitution : & Substitution < Self > ,
226
262
fmt : & mut fmt:: Formatter < ' _ > ,
227
- ) -> Option < fmt:: Result > ;
263
+ ) -> Option < fmt:: Result > {
264
+ None
265
+ }
228
266
229
267
/// Prints the debug representation of a SeparatorTraitRef. To get good
230
268
/// results, this requires inspecting TLS, and is difficult to
@@ -233,10 +271,13 @@ pub trait Interner: Debug + Copy + Eq + Ord + Hash {
233
271
///
234
272
/// Returns `None` to fallback to the default debug output (e.g.,
235
273
/// if no info about current program is available from TLS).
274
+ #[ allow( unused_variables) ]
236
275
fn debug_separator_trait_ref (
237
- separator_trait_ref : & SeparatorTraitRef < Self > ,
276
+ separator_trait_ref : & SeparatorTraitRef < ' _ , Self > ,
238
277
fmt : & mut fmt:: Formatter < ' _ > ,
239
- ) -> Option < fmt:: Result > ;
278
+ ) -> Option < fmt:: Result > {
279
+ None
280
+ }
240
281
241
282
/// Create an "interned" type from `ty`. This is not normally
242
283
/// invoked directly; instead, you invoke `TyData::intern` (which
@@ -433,7 +474,7 @@ mod default {
433
474
}
434
475
435
476
fn debug_separator_trait_ref (
436
- separator_trait_ref : & SeparatorTraitRef < ChalkIr > ,
477
+ separator_trait_ref : & SeparatorTraitRef < ' _ , ChalkIr > ,
437
478
fmt : & mut fmt:: Formatter < ' _ > ,
438
479
) -> Option < fmt:: Result > {
439
480
tls:: with_current_program ( |prog| {
0 commit comments