-
Notifications
You must be signed in to change notification settings - Fork 1.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! ↩
Re.
This ensures the |
@bushrat011899 To be extremely pedantic and annoying, you need it to be a sealed trait for it to be fully additive - otherwise users could do |
This is unused, so don't require it.
f4ed5ee
to
8495e72
Compare
@cwfitzgerald: Just pushed up a commit to fix that up, along with some other (perhaps opinionated) changes. PTAL? 😀 |
12a53b1
to
17fefa9
Compare
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.
One documentation note, g2g after that.
/// A trait that abstracts over types accepted for conversion to the most | ||
/// featureful path representation possible; that is: | ||
/// | ||
/// - When `no_std` is active, this represents types can be converted to `Cow<'_, str>`. |
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.
This is subtlly different - I think we should just list out the types here, as this sounds like it's where for<'a> Cow<'a, str>: From<T>
or so
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.