Results 381 comments of Kevin Reid

PR #218 adds the `SizeHint` type and combines `try_size_hint()` into `size_hint()`. (It does not change the meaning of the `depth` parameter.)

> or first fix all our transitive dependencies... Lots of pain here. Are you aware of `-Zdirect-minimal-versions`? It selects minimal versions only for your workspace’s direct dependencies, and normal maximal...

Event handlers could be addressed by having a “drop” hook in the wasm-bindgen JS which knows how to remove the event listeners (upon the restart operation) without involving Rust code....

> If a new user sees `T: ValueSized` for the first time, they will not be confused because it looks familiar. They will not google it, and stay oblivious to...

Yes, that's correct. That's what the compiler-generated suggestion would do, if it existed under these conditions. Related: It'd also be useful to be able to convert two-arm matches and `if...

This seems to no longer panic with wgpu 22.0.0, though I haven't rerun the above reduced test case.

Correction to above comment: I observed my application no longer panicking because WebGPU is more available. It still panics on the WebGL2 backend. Sorry for the noise.

> The issue is that when you create a new `gpu-allocator` `allocator` (which happens when we create a new device) it allocates a block of memory that it uses to...

> Are the applications calling poll properly? In the situation which prompted me to file this issue, they were — each device belonged to a headless render test, so it...

I have just learned that the WebGPU specification says that you can only `requestDevice()` once per `Adapter` — you're supposed to request a fresh `Adapter` to request another device. (See...