Skip to content

trace: remove redundant bounds implied by the trait definition#363

Closed
petrosagg wants to merge 1 commit into
TimelyDataflow:masterfrom
petrosagg:remove-implied-bounds
Closed

trace: remove redundant bounds implied by the trait definition#363
petrosagg wants to merge 1 commit into
TimelyDataflow:masterfrom
petrosagg:remove-implied-bounds

Conversation

@petrosagg
Copy link
Copy Markdown
Contributor

Many methods in DD are requiring the BatchReader and Cursor bounds on the Batch and Cursor associated types of a TraceReader respectively. However these bounds are already implied by the trait definition and can be omitted, resulting in simpler signatures.

Many methods in DD are requiring the BatchReader and Cursor bounds on
the Batch and Cursor associated types of a TraceReader respectively.
However these bounds are already implied by the trait definition and can
be omitted, resulting in simpler signatures.

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
@petrosagg petrosagg force-pushed the remove-implied-bounds branch from 910ab28 to 1f51561 Compare March 30, 2022 10:38
@frankmcsherry
Copy link
Copy Markdown
Member

Did Rust land some implied_bounds work? These bounds have traditionally been there because Rust complains if they are not. If the world changed while I wasn't looking, hooray!

@petrosagg
Copy link
Copy Markdown
Contributor Author

Hm, I'm not sure. I haven't tried compiling with an older rust

@guswynn
Copy link
Copy Markdown
Contributor

guswynn commented Mar 30, 2022

implied_bounds is not landed, but it just started being worked on? rust-lang/rust#44491 (comment), i think thats just for struct bounds tho? associated type bounds might have always worked

@petrosagg
Copy link
Copy Markdown
Contributor Author

superseded by #367

@petrosagg petrosagg closed this May 23, 2022
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.

3 participants