Skip to content

Mock methods with where Self: ... clauses as concrete.#415

Merged
asomers merged 1 commit intomasterfrom
where_self
Oct 1, 2022
Merged

Mock methods with where Self: ... clauses as concrete.#415
asomers merged 1 commit intomasterfrom
where_self

Conversation

@asomers
Copy link
Copy Markdown
Owner

@asomers asomers commented Oct 1, 2022

Previously they were treated as generic. Among other effects, this prevents "unused method expect" warnings from the latest nightly compiler.

Fixes #414

Previously they were treated as generic.  Among other effects, this
prevents "unused method expect" warnings from the latest nightly
compiler.

Fixes #414
@asomers asomers merged commit cc00356 into master Oct 1, 2022
@asomers asomers deleted the where_self branch October 1, 2022 16:53
@rwmjones
Copy link
Copy Markdown

rwmjones commented Oct 1, 2022

This does appear to fix nbdkit, thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"where Self: Sized" shouldn't make a method generic

2 participants