Skip to content

Rust: Support non-universal impl blocks #19372

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

paldepind
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Apr 24, 2025
}

final class SelfTypeBoundTypeAbstraction extends TypeAbstraction, Name {
Trait trait;

Check notice

Code scanning / CodeQL

Field only used in CharPred Note

Field is only used in CharPred.
* Gets an `impl` block with an implementing type that matches the type of
* `mce`'s receiver.
*/
private predicate methodCallMatchingImpl(ReceiverExpr receiver, Function function) {

Check warning

Code scanning / CodeQL

Missing QLDoc for parameter Warning

The QLDoc has no documentation for function, but the QLDoc mentions mce
@@ -32,6 +32,18 @@
/** A type parameter. */
class TypeParameter extends Type;

/** Type abstraction. */

Check warning

Code scanning / CodeQL

Class QLDoc style. Warning

The QLDoc for a class should start with 'A', 'An', or 'The'.
@@ -212,6 +222,74 @@
TypePath cons(TypeParameter tp, TypePath suffix) { result = singleton(tp).append(suffix) }
}

/** Any class that represents a type abstraction. */

Check warning

Code scanning / CodeQL

Class QLDoc style. Warning

The QLDoc for a class should start with 'A', 'An', or 'The'.
TypeParameter getATypeParameter();
}

/** Any class that represents a type tree. */

Check warning

Code scanning / CodeQL

Class QLDoc style. Warning

The QLDoc for a class should start with 'A', 'An', or 'The'.
* Holds if `apps` is a potential and relevant instantiation of `term` for
* the free type variables in `abs`.
*/
predicate potentialInstantiationOf(TypeAbstraction abs, App app, TypeMention term);

Check warning

Code scanning / CodeQL

Missing QLDoc for parameter Warning

The QLDoc has no documentation for app, but the QLDoc mentions apps
)
}

predicate debugTypeMentionWithoutType(TypeMention ment) {

Check warning

Code scanning / CodeQL

Dead code Warning

This code is never used, and it's not publicly exported.
}

predicate debugTypeMentionWithoutType(TypeMention ment) {
not exists(TypePath path, Type t | ment.resolveTypeAt(path) = t)

Check warning

Code scanning / CodeQL

Omittable 'exists' variable Warning

This exists variable can be omitted by using a don't-care expression
in this argument
.
Comment on lines +925 to +928
/**
* The type at `a`, `apos`, `pathToSub` satisfies `constraint` through
* `abs`, `sub`, and `constraintMention`.
*/

Check warning

Code scanning / CodeQL

Predicate QLDoc style. Warning

The QLDoc for a predicate without a result should start with 'Holds'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant