-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Investigate why Autoref doesn't work with Minicore/Tests #16685
Comments
Doesn't adding more minicore flags help? Maybe |
Hmm, actually that test can't work can it? Autoref only applies at most once, but for the call to be valid in that example we need to have a double reference, once for the receiver and once for the impl self type. So if we start from a impl foo::TestTrait for &TestStruct {
fn some_method(&self) {}
} as that needs a receiver of |
Oh, I think you're right: I think the lack of syntax highlighting in the fixture blinded me to the fact that even without my changes in #16555, the following does not get completions for
There's no bug in minicore. |
impl ForeignTrait for LocalStruct
andimpl ForeignTrait for &LocalStruct
provide completions onlet t = &TestStruct
in both tests and a running binary.impl ForeignTrait for &LocalStruct
only provides completions for provide completions onlet t = TestStruct
in a running binary.minicore
—or that I might not be understanding some important details—because this behavioral split reproduces with and without my filtering changes.Originally posted by @davidbarsky in #16555 (comment)
The text was updated successfully, but these errors were encountered: