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(
239239 . push ( parse_quote_spanned ! ( default_span=> ' async_trait) ) ;
240240
241241 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 ( ) {
243245 match receiver. ty . as_ref ( ) {
244246 // self: &Self
245247 Type :: Reference ( ty) if ty. mutability . is_none ( ) => & [ InferredBound :: Sync ] ,
@@ -275,7 +277,7 @@ fn transform_sig(
275277 Context :: Trait { supertraits, .. } => !has_default || has_bound ( supertraits, bound) ,
276278 Context :: Impl { .. } => true ,
277279 } ;
278- if assume_bound || is_local {
280+ if assume_bound {
279281 None
280282 } else {
281283 Some ( bound. spanned_path ( default_span) )
You can’t perform that action at this time.
0 commit comments