- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.8k
Rust: Compute incompatible blanket implementations #20612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|  | @@ -901,14 +901,14 @@ | |||||||
|  | ||||||||
| /** | ||||||||
| * Holds if function `f` with the name `name` and the arity `arity` exists in | ||||||||
| * blanket implementation `impl` of `trait`, and the type at position | ||||||||
| * blanket (like) implementation `impl` of `trait`, and the type at position | ||||||||
| * `pos` is `t`. | ||||||||
| * | ||||||||
| * `blanketPath` points to the type `blanketTypeParam` inside `t`, which | ||||||||
| * is the type parameter used in the blanket implementation. | ||||||||
| */ | ||||||||
| pragma[nomagic] | ||||||||
| private predicate functionInfoBlanket( | ||||||||
| private predicate functionInfoBlanketLike( | ||||||||
| Function f, string name, int arity, ImplItemNode impl, Trait trait, FunctionPosition pos, | ||||||||
| AssocFunctionType t, TypePath blanketPath, TypeParam blanketTypeParam | ||||||||
| ) { | ||||||||
|  | @@ -1027,19 +1027,20 @@ | |||||||
|  | ||||||||
| /** | ||||||||
| * Holds if method `m` with the name `name` and the arity `arity` exists in | ||||||||
| * blanket implementation `impl` of `trait`, and the type of the `self` | ||||||||
| * blanket (like) implementation `impl` of `trait`, and the type of the `self` | ||||||||
| * parameter is `selfType`. | ||||||||
| * | ||||||||
| * `blanketPath` points to the type `blanketTypeParam` inside `selfType`, which | ||||||||
| * is the type parameter used in the blanket implementation. | ||||||||
| */ | ||||||||
| pragma[nomagic] | ||||||||
| private predicate methodInfoBlanket( | ||||||||
| private predicate methodInfoBlanketLike( | ||||||||
| Method m, string name, int arity, ImplItemNode impl, Trait trait, AssocFunctionType selfType, | ||||||||
| TypePath blanketPath, TypeParam blanketTypeParam | ||||||||
| ) { | ||||||||
| exists(FunctionPosition pos | | ||||||||
| functionInfoBlanket(m, name, arity, impl, trait, pos, selfType, blanketPath, blanketTypeParam) and | ||||||||
| functionInfoBlanketLike(m, name, arity, impl, trait, pos, selfType, blanketPath, | ||||||||
| blanketTypeParam) and | ||||||||
| 
      Comment on lines
    
      +1042
     to 
      +1043
    
   
     | ||||||||
| functionInfoBlanketLike(m, name, arity, impl, trait, pos, selfType, blanketPath, | |
| blanketTypeParam) and | |
| functionInfoBlanketLike(m, name, arity, impl, trait, pos, selfType, blanketPath, blanketTypeParam) and | 
Check warning
Code scanning / CodeQL
Missing QLDoc for parameter Warning
        
          
              
                  hvitved marked this conversation as resolved.
              
          
            Show resolved
            Hide resolved
        
      Check warning
Code scanning / CodeQL
Omittable 'exists' variable Warning
Uh oh!
There was an error while loading. Please reload this page.