Skip to content
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

Remove G parameter in Global<G> and generic IdentityHandlerFactory #5159

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

udoprog
Copy link
Contributor

@udoprog udoprog commented Jan 29, 2024

Connections
Last step in #5105

CC @nical

Description
Removes the generic G parameter to Global<G> which is the last blocker towards starting work that needs the methods provided by it to be somewhat object safe.

A consequence of this is that in order to provide the same level of behavior in a non-generic way, we have to pass in Option<ConcreteId> for methods which supports supplying custom identifiers during construction. Long term, these methods are expected to be refactored in concert with #5121.

Testing
Ran existing test suites. This is also a breaking change, since () can no longer be used as an identifier and constructing Global doesn't require the passing in of a factory.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable.
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file. (TODO)

@udoprog udoprog requested a review from a team as a code owner January 29, 2024 13:40
@udoprog udoprog changed the title Remove G parameter in Global<G> Remove G parameter in Global<G> and generic IdentityHandlerFactory Jan 29, 2024
@nical nical merged commit 950d765 into gfx-rs:trunk Jan 29, 2024
27 checks passed
@udoprog udoprog deleted the remove-global-g branch January 29, 2024 15:01
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.

2 participants