Skip to content

Conversation

Qelxiros
Copy link
Contributor

@Qelxiros Qelxiros commented Aug 27, 2025

closes #126395

@rustbot
Copy link
Collaborator

rustbot commented Aug 27, 2025

r? @BoxyUwU

rustbot has assigned @BoxyUwU.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 27, 2025
Comment on lines +358 to +359
let ty_str = ty.to_string();
if ty_str.contains("impl ") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a fragile way to do detection.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but (a) as far as I can tell, the Interner's ParamTy only has to implement ParamLike, which doesn't expose whether the generic parameter came from an impl Trait (specifically across crate boundaries); and (b) I, for one, can't come up with a way (other than impl Trait) to create a generic parameter whose name contains a space. If I've overlooked something, please let me know.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Someone more knowledgeable than me will have to share the better way (if there is one).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

APITIT get treated as ordinary params in "not all trait impls implemented" error
4 participants