-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addressing instance methods in external annotations (#165)
## What Changed? This PR expands the capabilities of the resolution code used for external markers and the `--analyze` command line argument to handle more complex Rust paths, such as `<Type as Trait>::method`. We reuse rustcs own parser to interpret the user-supplied string as a "path". ## Why Does It Need To? Currently external markers and the `--analyze` command line argument are limited to simple paths (e.g. `std::vec::Vec`) and cannot target methods of a trait impl. This PR removes that limitation. ## Checklist - [x] Need to handle generics on the self-ty in the qualified case or at least error. - [x] Need to handle the qualified case without a trait - [x] Need to re-enable `otype` annotation. - [x] Above description has been filled out so that upon quash merge we have a good record of what changed. - [x] New functions, methods, types are documented. Old documentation is updated if necessary - [ ] Documentation in Notion has been updated - [ ] Tests for new behaviors are provided - [ ] New test suites (if any) ave been added to the CI tests (in `.github/workflows/rust.yml`) either as compiler test or integration test. *Or* justification for their omission from CI has been provided in this PR description.
- Loading branch information
1 parent
df19b1e
commit abb1bb1
Showing
6 changed files
with
334 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.