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 to_wasm_error #1963

Merged
merged 5 commits into from
Dec 22, 2020
Merged

Conversation

webmaster128
Copy link
Contributor

Description

This is a code style improvement that came up when working on #1962 but is independent of that.

Should I remove to_wasm_error or keep it as deprecated?

Review

  • Add a short description of the the change to the CHANGELOG.md file

@syrusakbary
Copy link
Member

Let’s remove the to_wasm_error

@webmaster128
Copy link
Contributor Author

Done

Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

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

bors r+

bors bot added a commit that referenced this pull request Dec 22, 2020
1963: Deprecate to_wasm_error r=syrusakbary a=webmaster128

# Description

This is a code style improvement that came up when working on #1962 but is independent of that.

Should I remove `to_wasm_error` or keep it as deprecated?

# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Simon Warta <simon@warta.it>
@syrusakbary
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 22, 2020

Already running a review

@webmaster128 webmaster128 changed the title Deprecate to_wasm_error Remove to_wasm_error Dec 22, 2020
@bors
Copy link
Contributor

bors bot commented Dec 22, 2020

Build failed:

@webmaster128
Copy link
Contributor Author

Added two more commits at the end. Those should help with the compile error.

@jubianchi
Copy link
Contributor

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 22, 2020

@bors bors bot merged commit 09c6ed0 into wasmerio:master Dec 22, 2020
@webmaster128 webmaster128 deleted the deprecate-to_wasm_error branch December 22, 2020 14:46
bors bot added a commit that referenced this pull request Dec 22, 2020
1962: Reduce scope of wasmparser::BinaryReaderError in the codebase r=MarkMcCaskey a=webmaster128

~Based on #1963~

Closes #1950

# Description

There is an error conversion pileline `BinaryReaderError` -> `WasmError`. In this PR, the same conversion happens earlier, such that `WasmError`/`WasmResult` can be used in middlewares.

Questions:
- [ ] Should middlewares be allowed to produce all `WasmError` cases? Or should we introduce a `WasmError::MiddlewareError(String)`?
- [x] ~Should `to_wasm_error` be removed as part of this PR?~ Extracted to #1963

# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Simon Warta <simon@warta.it>
bors bot added a commit that referenced this pull request Dec 22, 2020
1962: Reduce scope of wasmparser::BinaryReaderError in the codebase r=MarkMcCaskey a=webmaster128

~Based on #1963~

Closes #1950

# Description

There is an error conversion pileline `BinaryReaderError` -> `WasmError`. In this PR, the same conversion happens earlier, such that `WasmError`/`WasmResult` can be used in middlewares.

Questions:
- [ ] Should middlewares be allowed to produce all `WasmError` cases? Or should we introduce a `WasmError::MiddlewareError(String)`?
- [x] ~Should `to_wasm_error` be removed as part of this PR?~ Extracted to #1963

# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Simon Warta <simon@warta.it>
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