Skip to content

Remove explicit S type parameters#5275

Merged
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:remove-type-parameter
Nov 16, 2022
Merged

Remove explicit S type parameters#5275
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:remove-type-parameter

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This commit removes the explicit S type parameter on Func::typed and Instance::get_typed_func. Historical versions of Rust required that this be a type parameter but recent rustcs support a mixture of explicit type parameters and impl Trait. This removes, at callsites, a superfluous , _ argument which otherwise never needs specification.

This commit removes the explicit `S` type parameter on `Func::typed` and
`Instance::get_typed_func`. Historical versions of Rust required that
this be a type parameter but recent rustcs support a mixture of explicit
type parameters and `impl Trait`. This removes, at callsites, a
superfluous `, _` argument which otherwise never needs specification.
@alexcrichton alexcrichton enabled auto-merge (squash) November 16, 2022 00:33
@github-actions github-actions Bot added fuzzing Issues related to our fuzzing infrastructure wasmtime:api Related to the API of the `wasmtime` crate itself wasmtime:docs Issues related to Wasmtime's documentation labels Nov 16, 2022
@github-actions
Copy link
Copy Markdown

Subscribe to Label Action

cc @fitzgen, @peterhuene

Details This issue or pull request has been labeled: "fuzzing", "wasmtime:api", "wasmtime:docs"

Thus the following users have been cc'd because of the following labels:

  • fitzgen: fuzzing
  • peterhuene: wasmtime:api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

@alexcrichton alexcrichton merged commit b0939f6 into bytecodealliance:main Nov 16, 2022
@alexcrichton alexcrichton deleted the remove-type-parameter branch November 16, 2022 05:04
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Feb 6, 2023
alexcrichton added a commit that referenced this pull request Feb 6, 2023
I ended up forgetting this as part of #5275.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fuzzing Issues related to our fuzzing infrastructure wasmtime:api Related to the API of the `wasmtime` crate itself wasmtime:docs Issues related to Wasmtime's documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants