File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,9 @@ fn transform_sig(
239
239
. push ( parse_quote_spanned ! ( default_span=> ' async_trait) ) ;
240
240
241
241
if has_self {
242
- let bounds: & [ InferredBound ] = if let Some ( receiver) = sig. receiver ( ) {
242
+ let bounds: & [ InferredBound ] = if is_local {
243
+ & [ ]
244
+ } else if let Some ( receiver) = sig. receiver ( ) {
243
245
match receiver. ty . as_ref ( ) {
244
246
// self: &Self
245
247
Type :: Reference ( ty) if ty. mutability . is_none ( ) => & [ InferredBound :: Sync ] ,
@@ -275,7 +277,7 @@ fn transform_sig(
275
277
Context :: Trait { supertraits, .. } => !has_default || has_bound ( supertraits, bound) ,
276
278
Context :: Impl { .. } => true ,
277
279
} ;
278
- if assume_bound || is_local {
280
+ if assume_bound {
279
281
None
280
282
} else {
281
283
Some ( bound. spanned_path ( default_span) )
You can’t perform that action at this time.
0 commit comments