-
Notifications
You must be signed in to change notification settings - Fork 1k
Make naga span methods take path as generic AsRef Path #7643
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
base: trunk
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm yo
…minus a teeny nit. 🙂 Approving conditional on resolution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh, but wait, just checked CI failures. The Windows one looks spurious, but the wasm32
build failure is a problem. These APIs exposed in no_std
environments; no_std
means no std::path::Path
1. 💦 We need to resolve this conflict to proceed.
😐 Sorry for the whiplash!
Footnotes
-
That seems counter-intuitive with the
stderr
name—CC @bushrat011899! ↩
@@ -283,12 +283,14 @@ impl<E> WithSpan<E> { | |||
|
|||
/// Emits a summary of the error to standard error stream. | |||
#[cfg(feature = "stderr")] | |||
pub fn emit_to_stderr_with_path(&self, source: &str, path: &str) | |||
pub fn emit_to_stderr_with_path<P>(&self, source: &str, path: P) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: We should add a CHANGELOG
entry.
Re.
This ensures the |
Connections
none
Description
These methods dont match naga/src/front/wgsl/error.rs and are harder to use than them.
Testing
It compiles.
Squash or Rebase?
Doesn't matter
Checklist
cargo fmt
.taplo format
.cargo clippy --tests
. If applicable, add:--target wasm32-unknown-unknown
cargo xtask test
to run tests.CHANGELOG.md
entry.