Skip to content

go to definition in into goes to blanket implementation #17743

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

Closed
oriongonza opened this issue Jul 30, 2024 · 1 comment
Closed

go to definition in into goes to blanket implementation #17743

oriongonza opened this issue Jul 30, 2024 · 1 comment
Labels
C-bug Category: bug

Comments

@oriongonza
Copy link

  struct S;

impl From<S> for String {
    fn from(value: S) -> Self {
        todo!()
    }
}

impl S {
    fn foo(self) -> String {
        self.into() // go to definition here goes to `impl<T, U> Into<U> for T
                    // which is not very useful
    }
}
@oriongonza oriongonza added the C-bug Category: bug label Jul 30, 2024
@davidbarsky
Copy link
Contributor

Closing as a duplicate of #13394; I'd recommend reading the discussion there. I expect that moving to the new trait solver (hopefully by the end of the year...) would make this feature possible.

@davidbarsky davidbarsky closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants