Skip to content

Conversation

@tiif
Copy link
Member

@tiif tiif commented Oct 8, 2025

Cherry-picked documentation from #194

/// {
/// fn drink(&self) {} // <-- `ii_fn`
/// fn smell(&self) {} // not currently being checked
/// }
Copy link
Contributor

Choose a reason for hiding this comment

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

this example is not fully general. I think another important part is that the instantiated trait method where-clauses imply the impl method where-clauses

@Kobzol
Copy link
Member

Kobzol commented Oct 24, 2025

@rustbot ready

2 similar comments
@Kobzol
Copy link
Member

Kobzol commented Oct 24, 2025

@rustbot ready

@tiif
Copy link
Member Author

tiif commented Oct 26, 2025

@rustbot ready

// Example: we are trying to prove `x` (which equals `<SomeX<?V> as Iterator>::Item`)
// is equal to some type `z`.
(
// Normalize `x` will find alternative "spellings" that it is equivalent to.
Copy link
Contributor

Choose a reason for hiding this comment

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

do we use "spellings" somewhere else? 🤔 would otherwise like to avoid even more terminology here '^^

We do use "underlying type" in rustc I think. i don't remember whether we'e talked about that before, but I feel like maybe we should change prove_normalize to take an alias type and limit the candidate to only x which are aliases

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 i changed the wording

and yeah we have an issue open for that #201, i planned to get to that soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants