diff --git a/quest/m2/README.md b/quest/m2/README.md index e36757fc3..62b9b5b94 100644 --- a/quest/m2/README.md +++ b/quest/m2/README.md @@ -26,7 +26,6 @@ The fork's feature quests folded into the [exporter](/quest/m1/ffi-export/README ## Required -- [Async in the TypeScript translator](/quest/m2/ts-async.md) - moq-net's and kio's async code translates with Rust's lazy futures - [Translate moq-net's model to TypeScript](/quest/m2/ts-model/README.md) - the model translates with kio, moq-clock, and moq-pattern, for moq to compare against WASM - [Waiting: Swift 6.4 in nixpkgs-unstable](/quest/m2/uniffi-swift-arm.md) - the nightly UniFFI fixtures move back to arm - [Waiting: ubrn reads UniFFI 0.32](/quest/m2/ubrn-release.md) - the binding benchmark's browser runner pins a ubrn release, not an open PR diff --git a/quest/m2/ts-async.md b/quest/m2/ts-async.md deleted file mode 100644 index 0e7f39a6f..000000000 --- a/quest/m2/ts-async.md +++ /dev/null @@ -1,32 +0,0 @@ -# [M] Async in the TypeScript translator - -## Goal - -[rust2-ts](/ts/README.md) translates the async code in moq-net's model and kio, keeping -Rust's lazy futures: nothing runs until polled, and dropping a future cancels it. -Differential tests against native Rust prove the same polls, wakes, drops, and results. - -## Plan - -Decided by the MIR spike ([#36](https://github.com/moq-dev/rust2/pull/36)): an async -body is the state machine rustc's coroutine transform makes, lowered from MIR. Each -coroutine instance is a class of its state, its captures, and the locals it keeps -across an `.await`; its `poll` is the transform's resume function, a loop over a -`switch` on the next block since it enters loops in the middle, and its -`[Symbol.dispose]` is the transform's drop, which drops what the state it is in holds. -A handoff through 1, 4, and 16 async functions measured 1.5-2.7x faster than #16's -generators in Node, 1.8-5.5x in Bun, and 1.4-3.5x in Chrome, and past depth 1 faster -than moq's hand-written promises. `rt.spawn` stays. - -std's future helpers translate: `Poll`'s methods, `Poll>`, `pin!`, `poll_fn`, `future::pending`, -`Waker::from(Arc)`, and `Waker::noop`, and so do `Box::pin`, `dyn Future`, and a -waker's identity, as kio's `Tasks` compares it. What moq-net still needs, by its census -from MIR at the pinned revision: - -- Async closures, which only moq-net's tests write today. -- The edge: `rt.spawn`'s shape for callers, and cancelling a spawned task. - -An async block that captures part of a variable, which THIR refused 47 times, is a -capture like any other in MIR. - -Public API: the translator's output for async code. diff --git a/quest/m2/ts-model/README.md b/quest/m2/ts-model/README.md index b5d04dfb2..226ba89f7 100644 --- a/quest/m2/ts-model/README.md +++ b/quest/m2/ts-model/README.md @@ -48,4 +48,3 @@ Public API: the translator's output for moq-net's model. - [The rest of std the model reaches](/quest/m2/ts-model/std-rest.md) - `Vec` and `VecDeque` capacity - [hashbrown as the runtime's map](/quest/m2/ts-model/hashbrown.md) - hashlink's `hashbrown` tables translate as `rt.HashMap`, with std's capacity -- [Async in the TypeScript translator](/quest/m2/ts-async.md) - kio's producers and consumers are futures diff --git a/ts/README.md b/ts/README.md index 82559a8e1..339c92e72 100644 --- a/ts/README.md +++ b/ts/README.md @@ -130,6 +130,7 @@ crate translation reaches is refused, and so are two versions of one crate it re | `LazyCell`, `LazyLock` in a `static` or `const` | `rt.LazyCell` and `rt.LazyLock`, which run their function on the first `force` or `Deref`, once; forced from within it, either panics as std's does | | `AtomicU32` and the others of `bool` and integers, `AtomicPtr` | `rt.Atomic`, the `rt.Place` of its value; an `atomic::Ordering` is its discriminant, and one an operation can't take panics as std's does. An `AtomicPtr` compares pointers only to what JS keeps as an object or bytes, as raw pointers do | | `async fn` | a function returning `rt.Future`: a class of its own, its coroutine's state machine | +| async closure | a closure returning the future of each call, with what makes the future of a call that consumes it if it owns a value that drops and `Fn` or `FnMut` call it | | `Poll`, `Waker`, `Context` | `T \| typeof rt.Pending`; `T \| rt.OuterPending` where `T` can already be pending, as `Poll>` can, so `Ready(Pending)` keeps apart from `Pending`; `rt.Waker`, which is also the context, and whose `data` and `vtable` are its identity, which `Waker::data`, `Waker::vtable`, and `will_wake` read | | `pin!(x)`, `poll_fn(f)`, `future::pending()` | `x`; `rt.PollFn`, which drops `f` with itself; `rt.NEVER` | | `Box::pin(x)`, `dyn Future` | `x`; `rt.Future`: an `async` body or std's future as it is, and another future as an `rt.DynFuture` over its `poll`, which drops it with itself unless borrowed | @@ -466,8 +467,15 @@ An `async fn` returns a future without running anything: an instance of a class own (`sumFuture`), the state machine MIR's coroutine transform makes. Its fields are the arguments and the locals held across an `.await`, and its `poll` resumes at the state it stopped in. A poll after the future returned panics, and dropping it cancels it, -dropping what its state holds. `rt.spawn(future)` runs one as a promise, polling woken tasks in a batch from a -microtask and yielding to a macrotask after 128 polls. `Waker::from(arc)`, of an `Arc` of +dropping what its state holds. An async closure's future borrows what the closure +captured, and that of a call that consumes it owns it, as rustc's by-move body does: a +class of its own (`closuresFuture$closure2_closure0_once`), which a closure that `Fn` or +`FnMut` call and that owns what drops makes through `rt.callOnce`, as std's functions and +a `dyn FnOnce` call it. +`rt.spawn(future, signal?)` runs one as a promise, polling woken tasks in a batch from a +microtask and yielding to a macrotask after 128 polls. Aborting `signal` drops the future +at once, or as the poll it aborts in returns pending, and rejects the promise with the +signal's reason; a future ready in that poll resolves it. `Waker::from(arc)`, of an `Arc` of the crate's `Wake` impl, is an `rt.ArcWaker`, which holds a count of the `Arc` and wakes through the impl, and `Waker::noop()` is `rt.NOOP_WAKER`. A waker's identity is its `data` and `vtable`, as std's is: an `rt.ArcWaker`'s are its `Arc` and the impl's `wake`, so @@ -788,7 +796,7 @@ fields overlap in different types ([unsafe](/quest/m3/ts-unsafe.md)), and trait behind `&`, `&mut`, `Box`, or `Arc` ([trait objects](/quest/m3/ts-dyn.md)), fail translation. Until they translate, an item that needs one, such as a `dyn Error`, binds to hand-written TS ([bindings](#bindings)). -These fail translation: `f16` and `f128`, async closures, a `Poll` of a `Poll` of a `Poll`, a future whose output can be pending, an instance of a generic type whose field is a `Poll` of a type parameter that can be pending, a closure that owns a value +These fail translation: `f16` and `f128`, a `Poll` of a `Poll` of a `Poll`, a future whose output can be pending, an instance of a generic type whose field is a `Poll` of a type parameter that can be pending, a closure that owns a value that drops given to a std function that drops it beside another value that drops, other than `for_each` and `fold`, as `reduce` of items that drop does, or keeps it other than in an iterator adaptor, and values that drop in some iterators ([drop order](/quest/m3/ts-drop-order.md)), a `Cow` of other than `str` or a slice, a std @@ -868,8 +876,9 @@ built natively for wasm32 and run beside its translation on the same inputs by - `task` trims moq's kio to a dependency of its own, `kio`, reached across crates as moq-net reaches kio: a channel of `Arc`ed state, waiters, and wakers, kio's `Task`, `Pending`, and `Waiter::poll_future`, and a `Consumer::poll` whose closure is itself pending, a - `Poll>`. Async functions and std's future helpers run over it, with wakers of - the crate's `Wake` impls, beside values that drop inside std's types. Its caller is hand-written TS (`tests/task.ts`): a FIFO executor that runs a + `Poll>`. Async functions, async closures called directly and through each + function trait, and std's future helpers run over it, with wakers of the crate's `Wake` + impls, beside values that drop inside std's types. Its caller is hand-written TS (`tests/task.ts`): a FIFO executor that runs a script of spawns, sends, polls, and drops, and logs every poll, wake, and drop, as the fixture's native executor does. The logs must match byte for byte. - `stock` calls `bytes`, `rand`, and `tracing` with no config, against native Rust, whose @@ -898,8 +907,9 @@ built natively for wasm32 and run beside its translation on the same inputs by - `reject` holds constructs outside the subset; its expected errors are `expected.txt`, and its expected census is `census.md`. -`tests/spawn.ts` checks that `rt.spawn` yields to a timer after its 128-poll budget, and -rejects when a future panics as it drops. `tests/retain.ts` runs a collection's `retain` +`tests/spawn.ts` checks that `rt.spawn` yields to a timer after its 128-poll budget, +rejects when a future panics as it drops, and drops a future when its signal aborts: +before its first poll, while pending, and from within its own poll. `tests/retain.ts` runs a collection's `retain` and `Vec::dedup_by` over every keep mask of up to 6 items, and `retain` checks that each leaves and drops what std's does. diff --git a/ts/fixtures/reject/census.md b/ts/fixtures/reject/census.md index fd12576bd..efcc94afb 100644 --- a/ts/fixtures/reject/census.md +++ b/ts/fixtures/reject/census.md @@ -1,85 +1,84 @@ # Census of `reject-fixture` -- Refusals: 218 -- Function instances: 271 +- Refusals: 217 +- Function instances: 270 - Generic functions no instance reached, lowered over their type parameters: 13 ## By construct | Count | Construct | First | | ---: | --- | --- | -| 45 | a raw pointer to `_` in `_`, which the crate may put another object in place of | fixtures/reject/src/lib.rs:610:10 | -| 25 | unsupported call to `_` | fixtures/reject/src/lib.rs:167:8 | -| 19 | a raw pointer to `_` in a variable assigned again while it may point there | fixtures/reject/src/lib.rs:618:10 | -| 15 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | fixtures/reject/src/lib.rs:1339:33 | -| 15 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | fixtures/reject/src/lib.rs:1657:18 | -| 5 | `_` with a mutable reference to a value JS copies, which its mapping would copy | fixtures/reject/src/lib.rs:1237:22 | -| 5 | a raw pointer to `_` in an element, a payload, or a union field, which is not supported yet | fixtures/reject/src/lib.rs:681:10 | -| 4 | a variant of `_`, which is not supported: either is the same JS string | fixtures/reject/src/lib.rs:338:2 | -| 3 | a copy of a closure that changes what it captured | fixtures/reject/src/lib.rs:231:14 | -| 3 | an assignment through a reference to `_` | fixtures/reject/src/lib.rs:90:2 | -| 3 | replacing the value behind a reference to `_` | fixtures/reject/src/lib.rs:98:2 | +| 45 | a raw pointer to `_` in `_`, which the crate may put another object in place of | fixtures/reject/src/lib.rs:603:10 | +| 25 | unsupported call to `_` | fixtures/reject/src/lib.rs:160:8 | +| 19 | a raw pointer to `_` in a variable assigned again while it may point there | fixtures/reject/src/lib.rs:611:10 | +| 15 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | fixtures/reject/src/lib.rs:1332:33 | +| 15 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | fixtures/reject/src/lib.rs:1650:18 | +| 5 | `_` with a mutable reference to a value JS copies, which its mapping would copy | fixtures/reject/src/lib.rs:1230:22 | +| 5 | a raw pointer to `_` in an element, a payload, or a union field, which is not supported yet | fixtures/reject/src/lib.rs:674:10 | +| 4 | a variant of `_`, which is not supported: either is the same JS string | fixtures/reject/src/lib.rs:331:2 | +| 3 | a copy of a closure that changes what it captured | fixtures/reject/src/lib.rs:224:14 | +| 3 | an assignment through a reference to `_` | fixtures/reject/src/lib.rs:83:2 | +| 3 | replacing the value behind a reference to `_` | fixtures/reject/src/lib.rs:91:2 | | 3 | unsupported type `_` | fixtures/reject/src/lib.rs:7:14 | | 2 | `_` is not supported: its `None` and `Some` would both be `rt.None` | fixtures/reject/src/lib.rs:16:15 | | 2 | `_` of `_`, whose `None` is `rt.None`, which is not supported yet | fixtures/reject/src/lib.rs:37:4 | | 2 | `_` of `_`, whose `clone_from` is its own, which is not supported yet | fixtures/reject/src/lib.rs:21:4 | | 2 | `_`, a trait object of another crate's trait, which is not supported yet | fixtures/reject/src/lib.rs:11:16 | -| 2 | `_`, a trait object of the generic trait `_`, which is not supported yet | fixtures/reject/src/lib.rs:466:23 | -| 2 | a cast from a pointer to `_` to one to `_`, which reads the bytes of one type as another | fixtures/reject/src/lib.rs:557:27 | -| 2 | a coercion to `_`, which is not supported yet | fixtures/reject/src/lib.rs:457:40 | -| 2 | a raw pointer to a place of `()`, which has no address of its own | fixtures/reject/src/lib.rs:730:15 | -| 2 | an iterator of the crate implementing `_`, which is not supported yet | fixtures/reject/src/lib.rs:152:1 | -| 2 | comparing pointers to `_`, each a place JS makes of its own | fixtures/reject/src/lib.rs:598:2 | -| 2 | overriding `_`, which std's adaptors call in place of `next` or beside it | fixtures/reject/src/lib.rs:132:2 | -| 2 | passing `_`, which drops, to `_`, which is not supported yet | fixtures/reject/src/lib.rs:333:4 | -| 2 | unsupported type `_` from another crate | fixtures/reject/src/lib.rs:440:32 | -| 1 | `Buf::copy_to_bytes` of `_`, a value JS copies, which is not supported | fixtures/reject/src/lib.rs:763:2 | -| 1 | `BufMut::put` of `_` into a `BytesMut`, which picks the methods it calls by a capacity that depends on whether the other handles of its storage dropped, which is not supported | fixtures/reject/src/lib.rs:396:2 | -| 1 | `Bytes::from_owner` of `_`, which would drop with the last clone of what it makes, which is not supported | fixtures/reject/src/lib.rs:381:2 | -| 1 | `Extend` of `_` by `_`, whose `_` of `_` is not supported yet | fixtures/reject/src/lib.rs:1274:31 | -| 1 | `Pointer` formatting, as in `{:p}`, is not supported | fixtures/reject/src/lib.rs:56:2 | -| 1 | `_` is not supported: its `Pending` and `Ready` would both be `rt.OuterPending` | fixtures/reject/src/lib.rs:79:20 | +| 2 | `_`, a trait object of the generic trait `_`, which is not supported yet | fixtures/reject/src/lib.rs:459:23 | +| 2 | a cast from a pointer to `_` to one to `_`, which reads the bytes of one type as another | fixtures/reject/src/lib.rs:550:27 | +| 2 | a coercion to `_`, which is not supported yet | fixtures/reject/src/lib.rs:450:40 | +| 2 | a raw pointer to a place of `()`, which has no address of its own | fixtures/reject/src/lib.rs:723:15 | +| 2 | an iterator of the crate implementing `_`, which is not supported yet | fixtures/reject/src/lib.rs:145:1 | +| 2 | comparing pointers to `_`, each a place JS makes of its own | fixtures/reject/src/lib.rs:591:2 | +| 2 | overriding `_`, which std's adaptors call in place of `next` or beside it | fixtures/reject/src/lib.rs:125:2 | +| 2 | passing `_`, which drops, to `_`, which is not supported yet | fixtures/reject/src/lib.rs:326:4 | +| 2 | unsupported type `_` from another crate | fixtures/reject/src/lib.rs:433:32 | +| 1 | `Buf::copy_to_bytes` of `_`, a value JS copies, which is not supported | fixtures/reject/src/lib.rs:756:2 | +| 1 | `BufMut::put` of `_` into a `BytesMut`, which picks the methods it calls by a capacity that depends on whether the other handles of its storage dropped, which is not supported | fixtures/reject/src/lib.rs:389:2 | +| 1 | `Bytes::from_owner` of `_`, which would drop with the last clone of what it makes, which is not supported | fixtures/reject/src/lib.rs:374:2 | +| 1 | `Extend` of `_` by `_`, whose `_` of `_` is not supported yet | fixtures/reject/src/lib.rs:1267:31 | +| 1 | `Pointer` formatting, as in `{:p}`, is not supported | fixtures/reject/src/lib.rs:49:2 | +| 1 | `_` is not supported: its `Pending` and `Ready` would both be `rt.OuterPending` | fixtures/reject/src/lib.rs:72:20 | | 1 | `_` is not supported: its field `_` is `_`, typed `_`, whose `None` would be `rt.None` as `_` | fixtures/reject/src/lib.rs:31:2 | -| 1 | `_` is not supported: its field `_` is `_`, typed `_`, whose `Pending` would be `rt.OuterPending` as `_` | fixtures/reject/src/lib.rs:504:2 | -| 1 | `_` of `_` by `_`, which is not supported yet | fixtures/reject/src/lib.rs:260:6 | -| 1 | `_` of `_`, which is not supported yet | fixtures/reject/src/lib.rs:540:4 | -| 1 | `_`, which is not supported yet | fixtures/reject/src/lib.rs:268:9 | -| 1 | `_`, which reads a capacity that depends on whether the other handles of its storage dropped, which is not supported | fixtures/reject/src/lib.rs:390:6 | -| 1 | `clone_from` of `_`, whose items' `clone_from` is their own, which is not supported yet | fixtures/reject/src/lib.rs:2120:4 | -| 1 | `collect` of `_`, which sorts by `_`'s own `Ord`, of entries that drop, which is not supported yet | fixtures/reject/src/lib.rs:957:22 | -| 1 | `fmt::Arguments` with a placeholder, or not made in place, written to `_`'s own `fmt::Write`, which is not supported yet: std splits what a placeholder writes into `write_str` calls the runtime does not make | fixtures/reject/src/lib.rs:62:10 | -| 1 | a `collect` in place of `_`, a zip std reads by index, holding values that drop, which is not supported yet | fixtures/reject/src/lib.rs:216:40 | -| 1 | a `skip` of `_`, a zip std reads by index, of items that drop, which is not supported yet | fixtures/reject/src/lib.rs:209:8 | -| 1 | a cast from `_` to `_` | fixtures/reject/src/lib.rs:75:2 | -| 1 | a cast from `_` to `_`, which reads the bytes of one type as another | fixtures/reject/src/lib.rs:1715:33 | -| 1 | a coercion of `_` to `_`, a pointer to a slice | fixtures/reject/src/lib.rs:1716:28 | -| 1 | a coercion to `_` | fixtures/reject/src/lib.rs:298:2 | -| 1 | a constant of type `_`, a pointer into memory translation can't name | fixtures/reject/src/lib.rs:780:3 | -| 1 | a dangling pointer to `_`, a value of no bytes made of more than structs and tuples | fixtures/reject/src/lib.rs:739:11 | -| 1 | a future of `_`, which can be `rt.Pending`, as the future's own `Pending` is | fixtures/reject/src/lib.rs:84:34 | -| 1 | a mapped guard of `_`, which JS can't write in place | fixtures/reject/src/lib.rs:2154:10 | -| 1 | a mutable reference into a `Result`'s payload, passed on or kept | fixtures/reject/src/lib.rs:369:12 | -| 1 | a mutable static, which any code may write | fixtures/reject/src/lib.rs:68:11 | -| 1 | a pointer's address, which JS has no counterpart of | fixtures/reject/src/lib.rs:562:17 | -| 1 | a printable type must implement `Display` or `Debug` | fixtures/reject/src/lib.rs:71:1 | -| 1 | a raw pointer to `_` behind a reference, which is the object and not where it is kept | fixtures/reject/src/lib.rs:579:10 | -| 1 | a reference through which a raw pointer may be made into `_` in an element, a payload, or a union field, which is not supported yet | fixtures/reject/src/lib.rs:1366:11 | +| 1 | `_` is not supported: its field `_` is `_`, typed `_`, whose `Pending` would be `rt.OuterPending` as `_` | fixtures/reject/src/lib.rs:497:2 | +| 1 | `_` of `_` by `_`, which is not supported yet | fixtures/reject/src/lib.rs:253:6 | +| 1 | `_` of `_`, which is not supported yet | fixtures/reject/src/lib.rs:533:4 | +| 1 | `_`, which is not supported yet | fixtures/reject/src/lib.rs:261:9 | +| 1 | `_`, which reads a capacity that depends on whether the other handles of its storage dropped, which is not supported | fixtures/reject/src/lib.rs:383:6 | +| 1 | `clone_from` of `_`, whose items' `clone_from` is their own, which is not supported yet | fixtures/reject/src/lib.rs:2113:4 | +| 1 | `collect` of `_`, which sorts by `_`'s own `Ord`, of entries that drop, which is not supported yet | fixtures/reject/src/lib.rs:950:22 | +| 1 | `fmt::Arguments` with a placeholder, or not made in place, written to `_`'s own `fmt::Write`, which is not supported yet: std splits what a placeholder writes into `write_str` calls the runtime does not make | fixtures/reject/src/lib.rs:55:10 | +| 1 | a `collect` in place of `_`, a zip std reads by index, holding values that drop, which is not supported yet | fixtures/reject/src/lib.rs:209:40 | +| 1 | a `skip` of `_`, a zip std reads by index, of items that drop, which is not supported yet | fixtures/reject/src/lib.rs:202:8 | +| 1 | a cast from `_` to `_` | fixtures/reject/src/lib.rs:68:2 | +| 1 | a cast from `_` to `_`, which reads the bytes of one type as another | fixtures/reject/src/lib.rs:1708:33 | +| 1 | a coercion of `_` to `_`, a pointer to a slice | fixtures/reject/src/lib.rs:1709:28 | +| 1 | a coercion to `_` | fixtures/reject/src/lib.rs:291:2 | +| 1 | a constant of type `_`, a pointer into memory translation can't name | fixtures/reject/src/lib.rs:773:3 | +| 1 | a dangling pointer to `_`, a value of no bytes made of more than structs and tuples | fixtures/reject/src/lib.rs:732:11 | +| 1 | a future of `_`, which can be `rt.Pending`, as the future's own `Pending` is | fixtures/reject/src/lib.rs:77:34 | +| 1 | a mapped guard of `_`, which JS can't write in place | fixtures/reject/src/lib.rs:2147:10 | +| 1 | a mutable reference into a `Result`'s payload, passed on or kept | fixtures/reject/src/lib.rs:362:12 | +| 1 | a mutable static, which any code may write | fixtures/reject/src/lib.rs:61:11 | +| 1 | a pointer's address, which JS has no counterpart of | fixtures/reject/src/lib.rs:555:17 | +| 1 | a printable type must implement `Display` or `Debug` | fixtures/reject/src/lib.rs:64:1 | +| 1 | a raw pointer to `_` behind a reference, which is the object and not where it is kept | fixtures/reject/src/lib.rs:572:10 | +| 1 | a reference through which a raw pointer may be made into `_` in an element, a payload, or a union field, which is not supported yet | fixtures/reject/src/lib.rs:1359:11 | | 1 | a scalar constant of type `_` | fixtures/reject/src/lib.rs:8:2 | -| 1 | a trait object of `_`, which is not supported yet | fixtures/reject/src/lib.rs:483:26 | -| 1 | a zero-sized constant of type `_` | fixtures/reject/src/lib.rs:50:2 | -| 1 | an upcast from `_` to `_`, which is not supported yet | fixtures/reject/src/lib.rs:534:32 | +| 1 | a trait object of `_`, which is not supported yet | fixtures/reject/src/lib.rs:476:26 | +| 1 | an upcast from `_` to `_`, which is not supported yet | fixtures/reject/src/lib.rs:527:32 | | 1 | arithmetic on `_` | fixtures/reject/src/lib.rs:8:2 | -| 1 | comparing `_` | fixtures/reject/src/lib.rs:1714:41 | -| 1 | comparing `_` as a key, which is not supported yet | fixtures/reject/src/lib.rs:242:75 | -| 1 | comparing pointers to `_` in an atomic, which JS has no address of | fixtures/reject/src/lib.rs:779:15 | -| 1 | comparing pointers to `_`, which has no bytes and so no address of its own | fixtures/reject/src/lib.rs:730:70 | -| 1 | const generic types are not supported: `_` | fixtures/reject/src/lib.rs:2099:1 | -| 1 | constructing `_` | fixtures/reject/src/lib.rs:356:53 | -| 1 | hashing `_` as a key, which is not supported yet | fixtures/reject/src/lib.rs:242:75 | -| 1 | hashing `_` by its address, which JS has no counterpart of | fixtures/reject/src/lib.rs:1718:5 | -| 1 | hashing `_` through `_`'s own `Hash::hash_slice`, which is not supported yet | fixtures/reject/src/lib.rs:317:16 | -| 1 | passing `_`, a closure that owns a value that drops, to `_`, which is not supported yet | fixtures/reject/src/lib.rs:326:13 | -| 1 | union `_`, whose fields overlap in `_` and `f64`, which JS keeps apart | fixtures/reject/src/lib.rs:584:1 | +| 1 | comparing `_` | fixtures/reject/src/lib.rs:1707:41 | +| 1 | comparing `_` as a key, which is not supported yet | fixtures/reject/src/lib.rs:235:75 | +| 1 | comparing pointers to `_` in an atomic, which JS has no address of | fixtures/reject/src/lib.rs:772:15 | +| 1 | comparing pointers to `_`, which has no bytes and so no address of its own | fixtures/reject/src/lib.rs:723:70 | +| 1 | const generic types are not supported: `_` | fixtures/reject/src/lib.rs:2092:1 | +| 1 | constructing `_` | fixtures/reject/src/lib.rs:349:53 | +| 1 | hashing `_` as a key, which is not supported yet | fixtures/reject/src/lib.rs:235:75 | +| 1 | hashing `_` by its address, which JS has no counterpart of | fixtures/reject/src/lib.rs:1711:5 | +| 1 | hashing `_` through `_`'s own `Hash::hash_slice`, which is not supported yet | fixtures/reject/src/lib.rs:310:16 | +| 1 | passing `_`, a closure that owns a value that drops, to `_`, which is not supported yet | fixtures/reject/src/lib.rs:319:13 | +| 1 | union `_`, whose fields overlap in `_` and `f64`, which JS keeps apart | fixtures/reject/src/lib.rs:577:1 | ## By API @@ -87,536 +86,534 @@ The type or module each refused type or path belongs to. | Count | API | First | | ---: | --- | --- | -| 39 | `std::cell::UnsafeCell` | fixtures/reject/src/lib.rs:689:15 | -| 24 | `(u32, u32)` | fixtures/reject/src/lib.rs:610:10 | -| 6 | `[u8; 4]` | fixtures/reject/src/lib.rs:483:26 | +| 39 | `std::cell::UnsafeCell` | fixtures/reject/src/lib.rs:682:15 | +| 24 | `(u32, u32)` | fixtures/reject/src/lib.rs:603:10 | +| 6 | `[u8; 4]` | fixtures/reject/src/lib.rs:476:26 | | 6 | `f16` | fixtures/reject/src/lib.rs:7:14 | -| 6 | `std::borrow::Cow` | fixtures/reject/src/lib.rs:338:2 | -| 6 | `u32` | fixtures/reject/src/lib.rs:557:27 | -| 5 | `Gap` | fixtures/reject/src/lib.rs:910:10 | +| 6 | `std::borrow::Cow` | fixtures/reject/src/lib.rs:331:2 | +| 6 | `u32` | fixtures/reject/src/lib.rs:550:27 | +| 5 | `Gap` | fixtures/reject/src/lib.rs:903:10 | | 5 | `Option` | fixtures/reject/src/lib.rs:16:15 | -| 5 | `u8` | fixtures/reject/src/lib.rs:260:6 | +| 5 | `u8` | fixtures/reject/src/lib.rs:253:6 | | 4 | `Iterator` | fixtures/reject/src/lib.rs:37:4 | -| 4 | `std::pin::Pin` | fixtures/reject/src/lib.rs:98:2 | -| 4 | `std::str` | fixtures/reject/src/lib.rs:441:4 | -| 4 | `{closure}` | fixtures/reject/src/lib.rs:326:13 | -| 3 | `*const [u8; 4]` | fixtures/reject/src/lib.rs:1715:33 | -| 3 | `Mid` | fixtures/reject/src/lib.rs:1357:34 | -| 3 | `Outer` | fixtures/reject/src/lib.rs:1357:34 | -| 3 | `std::ptr` | fixtures/reject/src/lib.rs:1712:3 | -| 3 | `std::vec::Vec` | fixtures/reject/src/lib.rs:317:16 | -| 2 | `(u16, u16)` | fixtures/reject/src/lib.rs:1178:31 | -| 2 | `InArray` | fixtures/reject/src/lib.rs:1304:9 | -| 2 | `InPayload` | fixtures/reject/src/lib.rs:1316:9 | -| 2 | `InTuple` | fixtures/reject/src/lib.rs:1308:9 | -| 2 | `InWritten` | fixtures/reject/src/lib.rs:1328:9 | -| 2 | `Inside` | fixtures/reject/src/lib.rs:1847:20 | -| 2 | `Poll` | fixtures/reject/src/lib.rs:79:20 | +| 4 | `std::pin::Pin` | fixtures/reject/src/lib.rs:91:2 | +| 4 | `std::str` | fixtures/reject/src/lib.rs:434:4 | +| 4 | `{closure}` | fixtures/reject/src/lib.rs:319:13 | +| 3 | `*const [u8; 4]` | fixtures/reject/src/lib.rs:1708:33 | +| 3 | `Mid` | fixtures/reject/src/lib.rs:1350:34 | +| 3 | `Outer` | fixtures/reject/src/lib.rs:1350:34 | +| 3 | `std::ptr` | fixtures/reject/src/lib.rs:1705:3 | +| 3 | `std::vec::Vec` | fixtures/reject/src/lib.rs:310:16 | +| 2 | `(u16, u16)` | fixtures/reject/src/lib.rs:1171:31 | +| 2 | `InArray` | fixtures/reject/src/lib.rs:1297:9 | +| 2 | `InPayload` | fixtures/reject/src/lib.rs:1309:9 | +| 2 | `InTuple` | fixtures/reject/src/lib.rs:1301:9 | +| 2 | `InWritten` | fixtures/reject/src/lib.rs:1321:9 | +| 2 | `Inside` | fixtures/reject/src/lib.rs:1840:20 | +| 2 | `Poll` | fixtures/reject/src/lib.rs:72:20 | | 2 | `Reused` | fixtures/reject/src/lib.rs:21:4 | -| 2 | `Scaled` | fixtures/reject/src/lib.rs:466:23 | -| 2 | `[u8; 2]` | fixtures/reject/src/lib.rs:1728:37 | -| 2 | `[u8; 3]` | fixtures/reject/src/lib.rs:1728:15 | -| 2 | `dyn Scaled` | fixtures/reject/src/lib.rs:466:23 | -| 2 | `dyn std::any::Any` | fixtures/reject/src/lib.rs:534:32 | +| 2 | `Scaled` | fixtures/reject/src/lib.rs:459:23 | +| 2 | `[u8; 2]` | fixtures/reject/src/lib.rs:1721:37 | +| 2 | `[u8; 3]` | fixtures/reject/src/lib.rs:1721:15 | +| 2 | `dyn Scaled` | fixtures/reject/src/lib.rs:459:23 | +| 2 | `dyn std::any::Any` | fixtures/reject/src/lib.rs:527:32 | | 2 | `dyn std::iter::Iterator` | fixtures/reject/src/lib.rs:11:16 | | 2 | `slice` | fixtures/reject/src/lib.rs:21:4 | -| 2 | `std::any::TypeId` | fixtures/reject/src/lib.rs:540:2 | -| 2 | `std::collections::BTreeSet` | fixtures/reject/src/lib.rs:242:75 | -| 2 | `std::collections::LinkedList` | fixtures/reject/src/lib.rs:2119:4 | -| 2 | `std::mem::MaybeUninit` | fixtures/reject/src/lib.rs:924:19 | -| 2 | `std::ops::Range` | fixtures/reject/src/lib.rs:167:8 | -| 2 | `std::option::Option` | fixtures/reject/src/lib.rs:376:2 | -| 2 | `std::ptr::const_ptr` | fixtures/reject/src/lib.rs:1715:73 | -| 2 | `std::std` | fixtures/reject/src/lib.rs:569:11 | -| 2 | `std::sync::Arc` | fixtures/reject/src/lib.rs:298:2 | -| 2 | `std::sync::MutexGuard` | fixtures/reject/src/lib.rs:90:2 | -| 2 | `std::vec::IntoIter` | fixtures/reject/src/lib.rs:436:17 | -| 1 | `(std::vec::Vec, Tens)` | fixtures/reject/src/lib.rs:1274:31 | -| 1 | `(u16, ByKeyReplace)` | fixtures/reject/src/lib.rs:1623:55 | -| 1 | `(u16, ByKeySet)` | fixtures/reject/src/lib.rs:1615:51 | -| 1 | `(u16, ByKeyTake)` | fixtures/reject/src/lib.rs:1630:52 | -| 1 | `(u16, ByRefReplace)` | fixtures/reject/src/lib.rs:1599:32 | -| 1 | `(u16, ByRefTake)` | fixtures/reject/src/lib.rs:1607:32 | -| 1 | `(u16, InTuple)` | fixtures/reject/src/lib.rs:1348:33 | -| 1 | `(u8, u8)` | fixtures/reject/src/lib.rs:1274:31 | -| 1 | `*const [u8]` | fixtures/reject/src/lib.rs:1716:28 | -| 1 | `*const u8` | fixtures/reject/src/lib.rs:1715:33 | -| 1 | `*mut [u8; 4]` | fixtures/reject/src/lib.rs:1714:41 | -| 1 | `Aliased` | fixtures/reject/src/lib.rs:1122:29 | -| 1 | `Assigned` | fixtures/reject/src/lib.rs:2014:20 | -| 1 | `Batched` | fixtures/reject/src/lib.rs:317:16 | -| 1 | `Behind` | fixtures/reject/src/lib.rs:1753:22 | -| 1 | `Bits` | fixtures/reject/src/lib.rs:584:1 | -| 1 | `Blank` | fixtures/reject/src/lib.rs:763:2 | -| 1 | `Block` | fixtures/reject/src/lib.rs:2099:1 | -| 1 | `ByBox` | fixtures/reject/src/lib.rs:1506:35 | -| 1 | `ByClosure` | fixtures/reject/src/lib.rs:1521:35 | -| 1 | `ByExchanged` | fixtures/reject/src/lib.rs:1567:30 | -| 1 | `ByInstance` | fixtures/reject/src/lib.rs:1547:35 | -| 1 | `ByKeyReplace` | fixtures/reject/src/lib.rs:1623:55 | -| 1 | `ByKeySet` | fixtures/reject/src/lib.rs:1615:51 | -| 1 | `ByKeyTake` | fixtures/reject/src/lib.rs:1630:52 | -| 1 | `ByObject` | fixtures/reject/src/lib.rs:1534:35 | -| 1 | `ByRead` | fixtures/reject/src/lib.rs:1457:35 | -| 1 | `ByRefReplace` | fixtures/reject/src/lib.rs:1599:32 | -| 1 | `ByRefTake` | fixtures/reject/src/lib.rs:1607:32 | -| 1 | `ByReplace` | fixtures/reject/src/lib.rs:1495:35 | -| 1 | `BySwap` | fixtures/reject/src/lib.rs:1483:35 | -| 1 | `BySwapped` | fixtures/reject/src/lib.rs:1556:76 | -| 1 | `ByWrite` | fixtures/reject/src/lib.rs:1470:35 | -| 1 | `BytesMut` | fixtures/reject/src/lib.rs:390:6 | -| 1 | `Called` | fixtures/reject/src/lib.rs:1088:28 | -| 1 | `Chosen` | fixtures/reject/src/lib.rs:1908:17 | -| 1 | `Closed` | fixtures/reject/src/lib.rs:2080:15 | -| 1 | `Compared` | fixtures/reject/src/lib.rs:1875:22 | -| 1 | `Copied` | fixtures/reject/src/lib.rs:1178:31 | -| 1 | `Counted` | fixtures/reject/src/lib.rs:396:2 | -| 1 | `Deep` | fixtures/reject/src/lib.rs:1789:18 | -| 1 | `Deeper` | fixtures/reject/src/lib.rs:2040:22 | -| 1 | `DoubleEndedIterator` | fixtures/reject/src/lib.rs:152:1 | -| 1 | `Dynamic` | fixtures/reject/src/lib.rs:2064:20 | -| 1 | `Enclosing` | fixtures/reject/src/lib.rs:1892:22 | -| 1 | `Entry` | fixtures/reject/src/lib.rs:326:13 | -| 1 | `Escaped` | fixtures/reject/src/lib.rs:1074:43 | -| 1 | `FusedIterator` | fixtures/reject/src/lib.rs:200:1 | -| 1 | `Fused` | fixtures/reject/src/lib.rs:730:70 | -| 1 | `HashMap` | fixtures/reject/src/lib.rs:260:6 | -| 1 | `Hasher` | fixtures/reject/src/lib.rs:268:9 | -| 1 | `Hits` | fixtures/reject/src/lib.rs:722:21 | -| 1 | `InField` | fixtures/reject/src/lib.rs:1320:9 | -| 1 | `InGeneric` | fixtures/reject/src/lib.rs:1324:9 | -| 1 | `InNested` | fixtures/reject/src/lib.rs:1312:9 | -| 1 | `Lane` | fixtures/reject/src/lib.rs:874:19 | -| 1 | `Loaded` | fixtures/reject/src/lib.rs:1144:29 | -| 1 | `Looped` | fixtures/reject/src/lib.rs:1112:26 | -| 1 | `Mapped` | fixtures/reject/src/lib.rs:1189:39 | +| 2 | `std::any::TypeId` | fixtures/reject/src/lib.rs:533:2 | +| 2 | `std::collections::BTreeSet` | fixtures/reject/src/lib.rs:235:75 | +| 2 | `std::collections::LinkedList` | fixtures/reject/src/lib.rs:2112:4 | +| 2 | `std::mem::MaybeUninit` | fixtures/reject/src/lib.rs:917:19 | +| 2 | `std::ops::Range` | fixtures/reject/src/lib.rs:160:8 | +| 2 | `std::option::Option` | fixtures/reject/src/lib.rs:369:2 | +| 2 | `std::ptr::const_ptr` | fixtures/reject/src/lib.rs:1708:73 | +| 2 | `std::std` | fixtures/reject/src/lib.rs:562:11 | +| 2 | `std::sync::Arc` | fixtures/reject/src/lib.rs:291:2 | +| 2 | `std::sync::MutexGuard` | fixtures/reject/src/lib.rs:83:2 | +| 2 | `std::vec::IntoIter` | fixtures/reject/src/lib.rs:429:17 | +| 1 | `(std::vec::Vec, Tens)` | fixtures/reject/src/lib.rs:1267:31 | +| 1 | `(u16, ByKeyReplace)` | fixtures/reject/src/lib.rs:1616:55 | +| 1 | `(u16, ByKeySet)` | fixtures/reject/src/lib.rs:1608:51 | +| 1 | `(u16, ByKeyTake)` | fixtures/reject/src/lib.rs:1623:52 | +| 1 | `(u16, ByRefReplace)` | fixtures/reject/src/lib.rs:1592:32 | +| 1 | `(u16, ByRefTake)` | fixtures/reject/src/lib.rs:1600:32 | +| 1 | `(u16, InTuple)` | fixtures/reject/src/lib.rs:1341:33 | +| 1 | `(u8, u8)` | fixtures/reject/src/lib.rs:1267:31 | +| 1 | `*const [u8]` | fixtures/reject/src/lib.rs:1709:28 | +| 1 | `*const u8` | fixtures/reject/src/lib.rs:1708:33 | +| 1 | `*mut [u8; 4]` | fixtures/reject/src/lib.rs:1707:41 | +| 1 | `Aliased` | fixtures/reject/src/lib.rs:1115:29 | +| 1 | `Assigned` | fixtures/reject/src/lib.rs:2007:20 | +| 1 | `Batched` | fixtures/reject/src/lib.rs:310:16 | +| 1 | `Behind` | fixtures/reject/src/lib.rs:1746:22 | +| 1 | `Bits` | fixtures/reject/src/lib.rs:577:1 | +| 1 | `Blank` | fixtures/reject/src/lib.rs:756:2 | +| 1 | `Block` | fixtures/reject/src/lib.rs:2092:1 | +| 1 | `ByBox` | fixtures/reject/src/lib.rs:1499:35 | +| 1 | `ByClosure` | fixtures/reject/src/lib.rs:1514:35 | +| 1 | `ByExchanged` | fixtures/reject/src/lib.rs:1560:30 | +| 1 | `ByInstance` | fixtures/reject/src/lib.rs:1540:35 | +| 1 | `ByKeyReplace` | fixtures/reject/src/lib.rs:1616:55 | +| 1 | `ByKeySet` | fixtures/reject/src/lib.rs:1608:51 | +| 1 | `ByKeyTake` | fixtures/reject/src/lib.rs:1623:52 | +| 1 | `ByObject` | fixtures/reject/src/lib.rs:1527:35 | +| 1 | `ByRead` | fixtures/reject/src/lib.rs:1450:35 | +| 1 | `ByRefReplace` | fixtures/reject/src/lib.rs:1592:32 | +| 1 | `ByRefTake` | fixtures/reject/src/lib.rs:1600:32 | +| 1 | `ByReplace` | fixtures/reject/src/lib.rs:1488:35 | +| 1 | `BySwap` | fixtures/reject/src/lib.rs:1476:35 | +| 1 | `BySwapped` | fixtures/reject/src/lib.rs:1549:76 | +| 1 | `ByWrite` | fixtures/reject/src/lib.rs:1463:35 | +| 1 | `BytesMut` | fixtures/reject/src/lib.rs:383:6 | +| 1 | `Called` | fixtures/reject/src/lib.rs:1081:28 | +| 1 | `Chosen` | fixtures/reject/src/lib.rs:1901:17 | +| 1 | `Closed` | fixtures/reject/src/lib.rs:2073:15 | +| 1 | `Compared` | fixtures/reject/src/lib.rs:1868:22 | +| 1 | `Copied` | fixtures/reject/src/lib.rs:1171:31 | +| 1 | `Counted` | fixtures/reject/src/lib.rs:389:2 | +| 1 | `Deep` | fixtures/reject/src/lib.rs:1782:18 | +| 1 | `Deeper` | fixtures/reject/src/lib.rs:2033:22 | +| 1 | `DoubleEndedIterator` | fixtures/reject/src/lib.rs:145:1 | +| 1 | `Dynamic` | fixtures/reject/src/lib.rs:2057:20 | +| 1 | `Enclosing` | fixtures/reject/src/lib.rs:1885:22 | +| 1 | `Entry` | fixtures/reject/src/lib.rs:319:13 | +| 1 | `Escaped` | fixtures/reject/src/lib.rs:1067:43 | +| 1 | `FusedIterator` | fixtures/reject/src/lib.rs:193:1 | +| 1 | `Fused` | fixtures/reject/src/lib.rs:723:70 | +| 1 | `HashMap` | fixtures/reject/src/lib.rs:253:6 | +| 1 | `Hasher` | fixtures/reject/src/lib.rs:261:9 | +| 1 | `Hits` | fixtures/reject/src/lib.rs:715:21 | +| 1 | `InField` | fixtures/reject/src/lib.rs:1313:9 | +| 1 | `InGeneric` | fixtures/reject/src/lib.rs:1317:9 | +| 1 | `InNested` | fixtures/reject/src/lib.rs:1305:9 | +| 1 | `Lane` | fixtures/reject/src/lib.rs:867:19 | +| 1 | `Loaded` | fixtures/reject/src/lib.rs:1137:29 | +| 1 | `Looped` | fixtures/reject/src/lib.rs:1105:26 | +| 1 | `Mapped` | fixtures/reject/src/lib.rs:1182:39 | | 1 | `Maybe` | fixtures/reject/src/lib.rs:31:2 | -| 1 | `Onced` | fixtures/reject/src/lib.rs:1235:46 | -| 1 | `Only` | fixtures/reject/src/lib.rs:739:11 | -| 1 | `Parked` | fixtures/reject/src/lib.rs:2139:20 | -| 1 | `Parking` | fixtures/reject/src/lib.rs:2139:20 | -| 1 | `Plain` | fixtures/reject/src/lib.rs:828:10 | -| 1 | `Pushed` | fixtures/reject/src/lib.rs:1250:22 | -| 1 | `Repeated` | fixtures/reject/src/lib.rs:1223:18 | -| 1 | `Replaced` | fixtures/reject/src/lib.rs:1959:20 | -| 1 | `Rewritten` | fixtures/reject/src/lib.rs:1132:47 | -| 1 | `Shared` | fixtures/reject/src/lib.rs:1830:20 | -| 1 | `Sink` | fixtures/reject/src/lib.rs:62:10 | -| 1 | `Slotted` | fixtures/reject/src/lib.rs:1811:21 | -| 1 | `Span2` | fixtures/reject/src/lib.rs:610:10 | -| 1 | `String` | fixtures/reject/src/lib.rs:786:4 | -| 1 | `Swapped` | fixtures/reject/src/lib.rs:1977:20 | +| 1 | `Onced` | fixtures/reject/src/lib.rs:1228:46 | +| 1 | `Only` | fixtures/reject/src/lib.rs:732:11 | +| 1 | `Parked` | fixtures/reject/src/lib.rs:2132:20 | +| 1 | `Parking` | fixtures/reject/src/lib.rs:2132:20 | +| 1 | `Plain` | fixtures/reject/src/lib.rs:821:10 | +| 1 | `Pushed` | fixtures/reject/src/lib.rs:1243:22 | +| 1 | `Repeated` | fixtures/reject/src/lib.rs:1216:18 | +| 1 | `Replaced` | fixtures/reject/src/lib.rs:1952:20 | +| 1 | `Rewritten` | fixtures/reject/src/lib.rs:1125:47 | +| 1 | `Shared` | fixtures/reject/src/lib.rs:1823:20 | +| 1 | `Sink` | fixtures/reject/src/lib.rs:55:10 | +| 1 | `Slotted` | fixtures/reject/src/lib.rs:1804:21 | +| 1 | `Span2` | fixtures/reject/src/lib.rs:603:10 | +| 1 | `String` | fixtures/reject/src/lib.rs:779:4 | +| 1 | `Swapped` | fixtures/reject/src/lib.rs:1970:20 | | 1 | `T \| undefined` | fixtures/reject/src/lib.rs:31:2 | -| 1 | `Tail` | fixtures/reject/src/lib.rs:493:30 | -| 1 | `Taken` | fixtures/reject/src/lib.rs:1995:20 | -| 1 | `Target` | fixtures/reject/src/lib.rs:1671:10 | -| 1 | `Tens` | fixtures/reject/src/lib.rs:1274:31 | -| 1 | `Track` | fixtures/reject/src/lib.rs:854:19 | -| 1 | `Unboxed` | fixtures/reject/src/lib.rs:1768:16 | -| 1 | `Waiting` | fixtures/reject/src/lib.rs:504:2 | -| 1 | `Window` | fixtures/reject/src/lib.rs:671:2 | -| 1 | `Wrapped` | fixtures/reject/src/lib.rs:1936:21 | -| 1 | `[InArray; 2]` | fixtures/reject/src/lib.rs:1339:33 | -| 1 | `[InWritten; 1]` | fixtures/reject/src/lib.rs:1400:35 | -| 1 | `[std::cell::UnsafeCell; 2]` | fixtures/reject/src/lib.rs:2093:20 | -| 1 | `dyn Keyed` | fixtures/reject/src/lib.rs:534:32 | -| 1 | `poll` | fixtures/reject/src/lib.rs:504:2 | -| 1 | `rt.Poll` | fixtures/reject/src/lib.rs:504:2 | -| 1 | `std::any::Any` | fixtures/reject/src/lib.rs:540:4 | -| 1 | `std::cell::Cell` | fixtures/reject/src/lib.rs:957:22 | -| 1 | `std::collections::BTreeMap` | fixtures/reject/src/lib.rs:957:22 | -| 1 | `std::collections::HashMap` | fixtures/reject/src/lib.rs:260:6 | -| 1 | `std::default::Default` | fixtures/reject/src/lib.rs:2121:2 | -| 1 | `std::iter::Map` | fixtures/reject/src/lib.rs:216:40 | -| 1 | `std::iter::Zip` | fixtures/reject/src/lib.rs:209:8 | -| 1 | `std::iter` | fixtures/reject/src/lib.rs:1237:22 | -| 1 | `std::net::AddrParseError` | fixtures/reject/src/lib.rs:440:32 | -| 1 | `std::net::Ipv4Addr` | fixtures/reject/src/lib.rs:440:32 | -| 1 | `std::num` | fixtures/reject/src/lib.rs:1279:4 | -| 1 | `std::ops::RangeFrom` | fixtures/reject/src/lib.rs:986:32 | -| 1 | `std::ops::RangeTo` | fixtures/reject/src/lib.rs:986:11 | -| 1 | `std::ptr::mut_ptr` | fixtures/reject/src/lib.rs:1715:56 | -| 1 | `std::slice::IterMut` | fixtures/reject/src/lib.rs:768:15 | -| 1 | `std::std::Layout` | fixtures/reject/src/lib.rs:567:15 | -| 1 | `std::sync::Weak` | fixtures/reject/src/lib.rs:457:40 | -| 1 | `std::task::Poll` | fixtures/reject/src/lib.rs:84:34 | -| 1 | `str` | fixtures/reject/src/lib.rs:333:4 | -| 1 | `u64` | fixtures/reject/src/lib.rs:75:2 | +| 1 | `Tail` | fixtures/reject/src/lib.rs:486:30 | +| 1 | `Taken` | fixtures/reject/src/lib.rs:1988:20 | +| 1 | `Target` | fixtures/reject/src/lib.rs:1664:10 | +| 1 | `Tens` | fixtures/reject/src/lib.rs:1267:31 | +| 1 | `Track` | fixtures/reject/src/lib.rs:847:19 | +| 1 | `Unboxed` | fixtures/reject/src/lib.rs:1761:16 | +| 1 | `Waiting` | fixtures/reject/src/lib.rs:497:2 | +| 1 | `Window` | fixtures/reject/src/lib.rs:664:2 | +| 1 | `Wrapped` | fixtures/reject/src/lib.rs:1929:21 | +| 1 | `[InArray; 2]` | fixtures/reject/src/lib.rs:1332:33 | +| 1 | `[InWritten; 1]` | fixtures/reject/src/lib.rs:1393:35 | +| 1 | `[std::cell::UnsafeCell; 2]` | fixtures/reject/src/lib.rs:2086:20 | +| 1 | `dyn Keyed` | fixtures/reject/src/lib.rs:527:32 | +| 1 | `poll` | fixtures/reject/src/lib.rs:497:2 | +| 1 | `rt.Poll` | fixtures/reject/src/lib.rs:497:2 | +| 1 | `std::any::Any` | fixtures/reject/src/lib.rs:533:4 | +| 1 | `std::cell::Cell` | fixtures/reject/src/lib.rs:950:22 | +| 1 | `std::collections::BTreeMap` | fixtures/reject/src/lib.rs:950:22 | +| 1 | `std::collections::HashMap` | fixtures/reject/src/lib.rs:253:6 | +| 1 | `std::default::Default` | fixtures/reject/src/lib.rs:2114:2 | +| 1 | `std::iter::Map` | fixtures/reject/src/lib.rs:209:40 | +| 1 | `std::iter::Zip` | fixtures/reject/src/lib.rs:202:8 | +| 1 | `std::iter` | fixtures/reject/src/lib.rs:1230:22 | +| 1 | `std::net::AddrParseError` | fixtures/reject/src/lib.rs:433:32 | +| 1 | `std::net::Ipv4Addr` | fixtures/reject/src/lib.rs:433:32 | +| 1 | `std::num` | fixtures/reject/src/lib.rs:1272:4 | +| 1 | `std::ops::RangeFrom` | fixtures/reject/src/lib.rs:979:32 | +| 1 | `std::ops::RangeTo` | fixtures/reject/src/lib.rs:979:11 | +| 1 | `std::ptr::mut_ptr` | fixtures/reject/src/lib.rs:1708:56 | +| 1 | `std::slice::IterMut` | fixtures/reject/src/lib.rs:761:15 | +| 1 | `std::std::Layout` | fixtures/reject/src/lib.rs:560:15 | +| 1 | `std::sync::Weak` | fixtures/reject/src/lib.rs:450:40 | +| 1 | `std::task::Poll` | fixtures/reject/src/lib.rs:77:34 | +| 1 | `str` | fixtures/reject/src/lib.rs:326:4 | +| 1 | `u64` | fixtures/reject/src/lib.rs:68:2 | | 1 | `value` | fixtures/reject/src/lib.rs:31:2 | -| 1 | `{async closure}` | fixtures/reject/src/lib.rs:50:2 | ## By type or path | Count | Construct | Type or path | First | | ---: | --- | --- | --- | -| 14 | a raw pointer to `_` in a variable assigned again while it may point there | `(u32, u32)` | fixtures/reject/src/lib.rs:618:10 | -| 4 | a variant of `_`, which is not supported: either is the same JS string | `std::borrow::Cow` | fixtures/reject/src/lib.rs:338:2 | -| 3 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `Gap` | fixtures/reject/src/lib.rs:910:10 | -| 3 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `Mid`, `Outer` | fixtures/reject/src/lib.rs:1357:34 | +| 14 | a raw pointer to `_` in a variable assigned again while it may point there | `(u32, u32)` | fixtures/reject/src/lib.rs:611:10 | +| 4 | a variant of `_`, which is not supported: either is the same JS string | `std::borrow::Cow` | fixtures/reject/src/lib.rs:331:2 | +| 3 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `Gap` | fixtures/reject/src/lib.rs:903:10 | +| 3 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `Mid`, `Outer` | fixtures/reject/src/lib.rs:1350:34 | | 3 | unsupported type `_` | `f16` | fixtures/reject/src/lib.rs:7:14 | | 2 | `_` is not supported: its `None` and `Some` would both be `rt.None` | `Option` | fixtures/reject/src/lib.rs:16:15 | | 2 | `_` of `_`, whose `None` is `rt.None`, which is not supported yet | `Iterator::scan`, `Option` | fixtures/reject/src/lib.rs:37:4 | | 2 | `_`, a trait object of another crate's trait, which is not supported yet | `dyn std::iter::Iterator` | fixtures/reject/src/lib.rs:11:16 | -| 2 | `_`, a trait object of the generic trait `_`, which is not supported yet | `dyn Scaled`, `Scaled` | fixtures/reject/src/lib.rs:466:23 | -| 2 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::mem::MaybeUninit`, `Gap` | fixtures/reject/src/lib.rs:924:19 | -| 2 | a raw pointer to `_` in a variable assigned again while it may point there | `[u8; 4]` | fixtures/reject/src/lib.rs:1735:26 | -| 2 | a raw pointer to `_` in a variable assigned again while it may point there | `std::cell::UnsafeCell` | fixtures/reject/src/lib.rs:698:15 | -| 2 | a raw pointer to `_` in an element, a payload, or a union field, which is not supported yet | `[u8; 2]` | fixtures/reject/src/lib.rs:1728:37 | -| 2 | a raw pointer to `_` in an element, a payload, or a union field, which is not supported yet | `[u8; 3]` | fixtures/reject/src/lib.rs:1728:15 | -| 2 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Inside` | fixtures/reject/src/lib.rs:1847:20 | -| 2 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `[u8; 4]` | fixtures/reject/src/lib.rs:1735:26 | -| 2 | an assignment through a reference to `_` | `std::pin::Pin` | fixtures/reject/src/lib.rs:114:2 | -| 2 | comparing pointers to `_`, each a place JS makes of its own | `u32` | fixtures/reject/src/lib.rs:598:2 | -| 2 | replacing the value behind a reference to `_` | `std::pin::Pin` | fixtures/reject/src/lib.rs:98:2 | -| 2 | unsupported call to `_` | `::sum` | fixtures/reject/src/lib.rs:436:17 | -| 1 | `Buf::copy_to_bytes` of `_`, a value JS copies, which is not supported | `Blank` | fixtures/reject/src/lib.rs:763:2 | -| 1 | `BufMut::put` of `_` into a `BytesMut`, which picks the methods it calls by a capacity that depends on whether the other handles of its storage dropped, which is not supported | `Counted` | fixtures/reject/src/lib.rs:396:2 | -| 1 | `Bytes::from_owner` of `_`, which would drop with the last clone of what it makes, which is not supported | `std::sync::Arc` | fixtures/reject/src/lib.rs:381:2 | -| 1 | `Extend` of `_` by `_`, whose `_` of `_` is not supported yet | `(std::vec::Vec, Tens)`, `(u8, u8)`, `Tens`, `u8` | fixtures/reject/src/lib.rs:1274:31 | -| 1 | `_` is not supported: its `Pending` and `Ready` would both be `rt.OuterPending` | `Poll` | fixtures/reject/src/lib.rs:79:20 | +| 2 | `_`, a trait object of the generic trait `_`, which is not supported yet | `dyn Scaled`, `Scaled` | fixtures/reject/src/lib.rs:459:23 | +| 2 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::mem::MaybeUninit`, `Gap` | fixtures/reject/src/lib.rs:917:19 | +| 2 | a raw pointer to `_` in a variable assigned again while it may point there | `[u8; 4]` | fixtures/reject/src/lib.rs:1728:26 | +| 2 | a raw pointer to `_` in a variable assigned again while it may point there | `std::cell::UnsafeCell` | fixtures/reject/src/lib.rs:691:15 | +| 2 | a raw pointer to `_` in an element, a payload, or a union field, which is not supported yet | `[u8; 2]` | fixtures/reject/src/lib.rs:1721:37 | +| 2 | a raw pointer to `_` in an element, a payload, or a union field, which is not supported yet | `[u8; 3]` | fixtures/reject/src/lib.rs:1721:15 | +| 2 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Inside` | fixtures/reject/src/lib.rs:1840:20 | +| 2 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `[u8; 4]` | fixtures/reject/src/lib.rs:1728:26 | +| 2 | an assignment through a reference to `_` | `std::pin::Pin` | fixtures/reject/src/lib.rs:107:2 | +| 2 | comparing pointers to `_`, each a place JS makes of its own | `u32` | fixtures/reject/src/lib.rs:591:2 | +| 2 | replacing the value behind a reference to `_` | `std::pin::Pin` | fixtures/reject/src/lib.rs:91:2 | +| 2 | unsupported call to `_` | `::sum` | fixtures/reject/src/lib.rs:429:17 | +| 1 | `Buf::copy_to_bytes` of `_`, a value JS copies, which is not supported | `Blank` | fixtures/reject/src/lib.rs:756:2 | +| 1 | `BufMut::put` of `_` into a `BytesMut`, which picks the methods it calls by a capacity that depends on whether the other handles of its storage dropped, which is not supported | `Counted` | fixtures/reject/src/lib.rs:389:2 | +| 1 | `Bytes::from_owner` of `_`, which would drop with the last clone of what it makes, which is not supported | `std::sync::Arc` | fixtures/reject/src/lib.rs:374:2 | +| 1 | `Extend` of `_` by `_`, whose `_` of `_` is not supported yet | `(std::vec::Vec, Tens)`, `(u8, u8)`, `Tens`, `u8` | fixtures/reject/src/lib.rs:1267:31 | +| 1 | `_` is not supported: its `Pending` and `Ready` would both be `rt.OuterPending` | `Poll` | fixtures/reject/src/lib.rs:72:20 | | 1 | `_` is not supported: its field `_` is `_`, typed `_`, whose `None` would be `rt.None` as `_` | `Maybe`, `value`, `Option`, `T \| undefined`, `Option` | fixtures/reject/src/lib.rs:31:2 | -| 1 | `_` is not supported: its field `_` is `_`, typed `_`, whose `Pending` would be `rt.OuterPending` as `_` | `Waiting`, `poll`, `Poll`, `rt.Poll`, `Poll` | fixtures/reject/src/lib.rs:504:2 | -| 1 | `_` of `_` by `_`, which is not supported yet | `HashMap::contains_key`, `std::collections::HashMap`, `u8` | fixtures/reject/src/lib.rs:260:6 | -| 1 | `_` of `_`, which is not supported yet | `std::any::Any::type_id`, `dyn std::any::Any` | fixtures/reject/src/lib.rs:540:4 | -| 1 | `_` of `_`, whose `clone_from` is its own, which is not supported yet | `slice::clone_from_slice`, `Reused` | fixtures/reject/src/lib.rs:293:4 | +| 1 | `_` is not supported: its field `_` is `_`, typed `_`, whose `Pending` would be `rt.OuterPending` as `_` | `Waiting`, `poll`, `Poll`, `rt.Poll`, `Poll` | fixtures/reject/src/lib.rs:497:2 | +| 1 | `_` of `_` by `_`, which is not supported yet | `HashMap::contains_key`, `std::collections::HashMap`, `u8` | fixtures/reject/src/lib.rs:253:6 | +| 1 | `_` of `_`, which is not supported yet | `std::any::Any::type_id`, `dyn std::any::Any` | fixtures/reject/src/lib.rs:533:4 | +| 1 | `_` of `_`, whose `clone_from` is its own, which is not supported yet | `slice::clone_from_slice`, `Reused` | fixtures/reject/src/lib.rs:286:4 | | 1 | `_` of `_`, whose `clone_from` is its own, which is not supported yet | `slice::fill`, `Reused` | fixtures/reject/src/lib.rs:21:4 | -| 1 | `_` with a mutable reference to a value JS copies, which its mapping would copy | `std::collections::LinkedList::retain` | fixtures/reject/src/lib.rs:2119:4 | -| 1 | `_` with a mutable reference to a value JS copies, which its mapping would copy | `std::default::Default::default` | fixtures/reject/src/lib.rs:2121:2 | -| 1 | `_` with a mutable reference to a value JS copies, which its mapping would copy | `std::iter::once` | fixtures/reject/src/lib.rs:1237:22 | -| 1 | `_` with a mutable reference to a value JS copies, which its mapping would copy | `std::str::from_utf8_mut` | fixtures/reject/src/lib.rs:1644:20 | -| 1 | `_` with a mutable reference to a value JS copies, which its mapping would copy | `std::str::get_unchecked_mut` | fixtures/reject/src/lib.rs:1639:13 | -| 1 | `_`, which is not supported yet | `Hasher::write` | fixtures/reject/src/lib.rs:268:9 | -| 1 | `_`, which reads a capacity that depends on whether the other handles of its storage dropped, which is not supported | `BytesMut::capacity` | fixtures/reject/src/lib.rs:390:6 | -| 1 | `clone_from` of `_`, whose items' `clone_from` is their own, which is not supported yet | `std::collections::LinkedList` | fixtures/reject/src/lib.rs:2120:4 | -| 1 | `collect` of `_`, which sorts by `_`'s own `Ord`, of entries that drop, which is not supported yet | `std::collections::BTreeMap`, `std::cell::Cell` | fixtures/reject/src/lib.rs:957:22 | -| 1 | `fmt::Arguments` with a placeholder, or not made in place, written to `_`'s own `fmt::Write`, which is not supported yet: std splits what a placeholder writes into `write_str` calls the runtime does not make | `Sink` | fixtures/reject/src/lib.rs:62:10 | -| 1 | a `collect` in place of `_`, a zip std reads by index, holding values that drop, which is not supported yet | `std::iter::Map` | fixtures/reject/src/lib.rs:216:40 | -| 1 | a `skip` of `_`, a zip std reads by index, of items that drop, which is not supported yet | `std::iter::Zip` | fixtures/reject/src/lib.rs:209:8 | -| 1 | a cast from `_` to `_` | `u64`, `f16` | fixtures/reject/src/lib.rs:75:2 | -| 1 | a cast from `_` to `_`, which reads the bytes of one type as another | `*const [u8; 4]`, `*const u8` | fixtures/reject/src/lib.rs:1715:33 | -| 1 | a cast from a pointer to `_` to one to `_`, which reads the bytes of one type as another | `[u8; 4]`, `u8` | fixtures/reject/src/lib.rs:1715:17 | -| 1 | a cast from a pointer to `_` to one to `_`, which reads the bytes of one type as another | `u32`, `u8` | fixtures/reject/src/lib.rs:557:27 | -| 1 | a coercion of `_` to `_`, a pointer to a slice | `*const [u8; 4]`, `*const [u8]` | fixtures/reject/src/lib.rs:1716:28 | -| 1 | a coercion to `_` | `std::sync::Arc` | fixtures/reject/src/lib.rs:298:2 | -| 1 | a coercion to `_`, which is not supported yet | `&Tail` | fixtures/reject/src/lib.rs:493:30 | -| 1 | a coercion to `_`, which is not supported yet | `std::sync::Weak` | fixtures/reject/src/lib.rs:457:40 | -| 1 | a constant of type `_`, a pointer into memory translation can't name | `&u32` | fixtures/reject/src/lib.rs:780:3 | -| 1 | a dangling pointer to `_`, a value of no bytes made of more than structs and tuples | `Only` | fixtures/reject/src/lib.rs:739:11 | -| 1 | a future of `_`, which can be `rt.Pending`, as the future's own `Pending` is | `std::task::Poll` | fixtures/reject/src/lib.rs:84:34 | -| 1 | a mapped guard of `_`, which JS can't write in place | `{closure}` | fixtures/reject/src/lib.rs:2154:10 | -| 1 | a raw pointer to `_` behind a reference, which is the object and not where it is kept | `std::vec::Vec` | fixtures/reject/src/lib.rs:579:10 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u16, u16)`, `Copied` | fixtures/reject/src/lib.rs:1178:31 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u16, u16)`, `Pushed` | fixtures/reject/src/lib.rs:1250:22 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `Lane` | fixtures/reject/src/lib.rs:874:19 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `Plain` | fixtures/reject/src/lib.rs:828:10 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `Span2` | fixtures/reject/src/lib.rs:610:10 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `Track` | fixtures/reject/src/lib.rs:854:19 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `Window` | fixtures/reject/src/lib.rs:671:2 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `std::cell::UnsafeCell` | fixtures/reject/src/lib.rs:689:15 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `ByKeyReplace`, `(u16, ByKeyReplace)` | fixtures/reject/src/lib.rs:1623:55 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `ByKeySet`, `(u16, ByKeySet)` | fixtures/reject/src/lib.rs:1615:51 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `ByKeyTake`, `(u16, ByKeyTake)` | fixtures/reject/src/lib.rs:1630:52 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `ByRefReplace`, `(u16, ByRefReplace)` | fixtures/reject/src/lib.rs:1599:32 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `ByRefTake`, `(u16, ByRefTake)` | fixtures/reject/src/lib.rs:1607:32 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Aliased` | fixtures/reject/src/lib.rs:1122:29 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByBox` | fixtures/reject/src/lib.rs:1506:35 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByClosure` | fixtures/reject/src/lib.rs:1521:35 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByExchanged` | fixtures/reject/src/lib.rs:1567:30 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByInstance` | fixtures/reject/src/lib.rs:1547:35 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByObject` | fixtures/reject/src/lib.rs:1534:35 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByRead` | fixtures/reject/src/lib.rs:1457:35 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByReplace` | fixtures/reject/src/lib.rs:1495:35 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `BySwap` | fixtures/reject/src/lib.rs:1483:35 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `BySwapped` | fixtures/reject/src/lib.rs:1556:76 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByWrite` | fixtures/reject/src/lib.rs:1470:35 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Called` | fixtures/reject/src/lib.rs:1088:28 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Escaped` | fixtures/reject/src/lib.rs:1074:43 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Hits` | fixtures/reject/src/lib.rs:722:21 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InArray` | fixtures/reject/src/lib.rs:1304:9 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InField` | fixtures/reject/src/lib.rs:1320:9 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InGeneric` | fixtures/reject/src/lib.rs:1324:9 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InNested` | fixtures/reject/src/lib.rs:1312:9 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InPayload` | fixtures/reject/src/lib.rs:1316:9 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InTuple` | fixtures/reject/src/lib.rs:1308:9 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InWritten` | fixtures/reject/src/lib.rs:1328:9 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Loaded` | fixtures/reject/src/lib.rs:1144:29 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Looped` | fixtures/reject/src/lib.rs:1112:26 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Mapped` | fixtures/reject/src/lib.rs:1189:39 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Onced` | fixtures/reject/src/lib.rs:1235:46 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Repeated` | fixtures/reject/src/lib.rs:1223:18 | -| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Rewritten` | fixtures/reject/src/lib.rs:1132:47 | -| 1 | a raw pointer to `_` in a variable assigned again while it may point there | `Target` | fixtures/reject/src/lib.rs:1671:10 | -| 1 | a raw pointer to `_` in an element, a payload, or a union field, which is not supported yet | `(u32, u32)` | fixtures/reject/src/lib.rs:681:10 | -| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `InArray`, `[InArray; 2]` | fixtures/reject/src/lib.rs:1339:33 | -| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `InTuple`, `(u16, InTuple)` | fixtures/reject/src/lib.rs:1348:33 | -| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `InWritten`, `[InWritten; 1]` | fixtures/reject/src/lib.rs:1400:35 | -| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `Parked`, `Parking` | fixtures/reject/src/lib.rs:2139:20 | -| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Assigned` | fixtures/reject/src/lib.rs:2014:20 | -| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Closed` | fixtures/reject/src/lib.rs:2080:15 | -| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Deeper` | fixtures/reject/src/lib.rs:2040:22 | -| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Dynamic` | fixtures/reject/src/lib.rs:2064:20 | -| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Replaced` | fixtures/reject/src/lib.rs:1959:20 | -| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Swapped` | fixtures/reject/src/lib.rs:1977:20 | -| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Taken` | fixtures/reject/src/lib.rs:1995:20 | -| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `[std::cell::UnsafeCell; 2]` | fixtures/reject/src/lib.rs:2093:20 | -| 1 | a reference through which a raw pointer may be made into `_` in an element, a payload, or a union field, which is not supported yet | `InPayload` | fixtures/reject/src/lib.rs:1366:11 | -| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Behind` | fixtures/reject/src/lib.rs:1753:22 | -| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Chosen` | fixtures/reject/src/lib.rs:1908:17 | -| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Compared` | fixtures/reject/src/lib.rs:1875:22 | -| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Deep` | fixtures/reject/src/lib.rs:1789:18 | -| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Enclosing` | fixtures/reject/src/lib.rs:1892:22 | -| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Shared` | fixtures/reject/src/lib.rs:1830:20 | -| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Slotted` | fixtures/reject/src/lib.rs:1811:21 | -| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Unboxed` | fixtures/reject/src/lib.rs:1768:16 | -| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Wrapped` | fixtures/reject/src/lib.rs:1936:21 | -| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `std::cell::UnsafeCell` | fixtures/reject/src/lib.rs:1657:18 | -| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `std::option::Option` | fixtures/reject/src/lib.rs:2110:13 | +| 1 | `_` with a mutable reference to a value JS copies, which its mapping would copy | `std::collections::LinkedList::retain` | fixtures/reject/src/lib.rs:2112:4 | +| 1 | `_` with a mutable reference to a value JS copies, which its mapping would copy | `std::default::Default::default` | fixtures/reject/src/lib.rs:2114:2 | +| 1 | `_` with a mutable reference to a value JS copies, which its mapping would copy | `std::iter::once` | fixtures/reject/src/lib.rs:1230:22 | +| 1 | `_` with a mutable reference to a value JS copies, which its mapping would copy | `std::str::from_utf8_mut` | fixtures/reject/src/lib.rs:1637:20 | +| 1 | `_` with a mutable reference to a value JS copies, which its mapping would copy | `std::str::get_unchecked_mut` | fixtures/reject/src/lib.rs:1632:13 | +| 1 | `_`, which is not supported yet | `Hasher::write` | fixtures/reject/src/lib.rs:261:9 | +| 1 | `_`, which reads a capacity that depends on whether the other handles of its storage dropped, which is not supported | `BytesMut::capacity` | fixtures/reject/src/lib.rs:383:6 | +| 1 | `clone_from` of `_`, whose items' `clone_from` is their own, which is not supported yet | `std::collections::LinkedList` | fixtures/reject/src/lib.rs:2113:4 | +| 1 | `collect` of `_`, which sorts by `_`'s own `Ord`, of entries that drop, which is not supported yet | `std::collections::BTreeMap`, `std::cell::Cell` | fixtures/reject/src/lib.rs:950:22 | +| 1 | `fmt::Arguments` with a placeholder, or not made in place, written to `_`'s own `fmt::Write`, which is not supported yet: std splits what a placeholder writes into `write_str` calls the runtime does not make | `Sink` | fixtures/reject/src/lib.rs:55:10 | +| 1 | a `collect` in place of `_`, a zip std reads by index, holding values that drop, which is not supported yet | `std::iter::Map` | fixtures/reject/src/lib.rs:209:40 | +| 1 | a `skip` of `_`, a zip std reads by index, of items that drop, which is not supported yet | `std::iter::Zip` | fixtures/reject/src/lib.rs:202:8 | +| 1 | a cast from `_` to `_` | `u64`, `f16` | fixtures/reject/src/lib.rs:68:2 | +| 1 | a cast from `_` to `_`, which reads the bytes of one type as another | `*const [u8; 4]`, `*const u8` | fixtures/reject/src/lib.rs:1708:33 | +| 1 | a cast from a pointer to `_` to one to `_`, which reads the bytes of one type as another | `[u8; 4]`, `u8` | fixtures/reject/src/lib.rs:1708:17 | +| 1 | a cast from a pointer to `_` to one to `_`, which reads the bytes of one type as another | `u32`, `u8` | fixtures/reject/src/lib.rs:550:27 | +| 1 | a coercion of `_` to `_`, a pointer to a slice | `*const [u8; 4]`, `*const [u8]` | fixtures/reject/src/lib.rs:1709:28 | +| 1 | a coercion to `_` | `std::sync::Arc` | fixtures/reject/src/lib.rs:291:2 | +| 1 | a coercion to `_`, which is not supported yet | `&Tail` | fixtures/reject/src/lib.rs:486:30 | +| 1 | a coercion to `_`, which is not supported yet | `std::sync::Weak` | fixtures/reject/src/lib.rs:450:40 | +| 1 | a constant of type `_`, a pointer into memory translation can't name | `&u32` | fixtures/reject/src/lib.rs:773:3 | +| 1 | a dangling pointer to `_`, a value of no bytes made of more than structs and tuples | `Only` | fixtures/reject/src/lib.rs:732:11 | +| 1 | a future of `_`, which can be `rt.Pending`, as the future's own `Pending` is | `std::task::Poll` | fixtures/reject/src/lib.rs:77:34 | +| 1 | a mapped guard of `_`, which JS can't write in place | `{closure}` | fixtures/reject/src/lib.rs:2147:10 | +| 1 | a raw pointer to `_` behind a reference, which is the object and not where it is kept | `std::vec::Vec` | fixtures/reject/src/lib.rs:572:10 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u16, u16)`, `Copied` | fixtures/reject/src/lib.rs:1171:31 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u16, u16)`, `Pushed` | fixtures/reject/src/lib.rs:1243:22 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `Lane` | fixtures/reject/src/lib.rs:867:19 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `Plain` | fixtures/reject/src/lib.rs:821:10 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `Span2` | fixtures/reject/src/lib.rs:603:10 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `Track` | fixtures/reject/src/lib.rs:847:19 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `Window` | fixtures/reject/src/lib.rs:664:2 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `(u32, u32)`, `std::cell::UnsafeCell` | fixtures/reject/src/lib.rs:682:15 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `ByKeyReplace`, `(u16, ByKeyReplace)` | fixtures/reject/src/lib.rs:1616:55 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `ByKeySet`, `(u16, ByKeySet)` | fixtures/reject/src/lib.rs:1608:51 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `ByKeyTake`, `(u16, ByKeyTake)` | fixtures/reject/src/lib.rs:1623:52 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `ByRefReplace`, `(u16, ByRefReplace)` | fixtures/reject/src/lib.rs:1592:32 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `ByRefTake`, `(u16, ByRefTake)` | fixtures/reject/src/lib.rs:1600:32 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Aliased` | fixtures/reject/src/lib.rs:1115:29 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByBox` | fixtures/reject/src/lib.rs:1499:35 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByClosure` | fixtures/reject/src/lib.rs:1514:35 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByExchanged` | fixtures/reject/src/lib.rs:1560:30 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByInstance` | fixtures/reject/src/lib.rs:1540:35 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByObject` | fixtures/reject/src/lib.rs:1527:35 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByRead` | fixtures/reject/src/lib.rs:1450:35 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByReplace` | fixtures/reject/src/lib.rs:1488:35 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `BySwap` | fixtures/reject/src/lib.rs:1476:35 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `BySwapped` | fixtures/reject/src/lib.rs:1549:76 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `ByWrite` | fixtures/reject/src/lib.rs:1463:35 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Called` | fixtures/reject/src/lib.rs:1081:28 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Escaped` | fixtures/reject/src/lib.rs:1067:43 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Hits` | fixtures/reject/src/lib.rs:715:21 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InArray` | fixtures/reject/src/lib.rs:1297:9 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InField` | fixtures/reject/src/lib.rs:1313:9 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InGeneric` | fixtures/reject/src/lib.rs:1317:9 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InNested` | fixtures/reject/src/lib.rs:1305:9 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InPayload` | fixtures/reject/src/lib.rs:1309:9 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InTuple` | fixtures/reject/src/lib.rs:1301:9 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `InWritten` | fixtures/reject/src/lib.rs:1321:9 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Loaded` | fixtures/reject/src/lib.rs:1137:29 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Looped` | fixtures/reject/src/lib.rs:1105:26 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Mapped` | fixtures/reject/src/lib.rs:1182:39 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Onced` | fixtures/reject/src/lib.rs:1228:46 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Repeated` | fixtures/reject/src/lib.rs:1216:18 | +| 1 | a raw pointer to `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Rewritten` | fixtures/reject/src/lib.rs:1125:47 | +| 1 | a raw pointer to `_` in a variable assigned again while it may point there | `Target` | fixtures/reject/src/lib.rs:1664:10 | +| 1 | a raw pointer to `_` in an element, a payload, or a union field, which is not supported yet | `(u32, u32)` | fixtures/reject/src/lib.rs:674:10 | +| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `InArray`, `[InArray; 2]` | fixtures/reject/src/lib.rs:1332:33 | +| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `InTuple`, `(u16, InTuple)` | fixtures/reject/src/lib.rs:1341:33 | +| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `InWritten`, `[InWritten; 1]` | fixtures/reject/src/lib.rs:1393:35 | +| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `Parked`, `Parking` | fixtures/reject/src/lib.rs:2132:20 | +| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Assigned` | fixtures/reject/src/lib.rs:2007:20 | +| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Closed` | fixtures/reject/src/lib.rs:2073:15 | +| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Deeper` | fixtures/reject/src/lib.rs:2033:22 | +| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Dynamic` | fixtures/reject/src/lib.rs:2057:20 | +| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Replaced` | fixtures/reject/src/lib.rs:1952:20 | +| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Swapped` | fixtures/reject/src/lib.rs:1970:20 | +| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `Taken` | fixtures/reject/src/lib.rs:1988:20 | +| 1 | a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of | `std::cell::UnsafeCell`, `[std::cell::UnsafeCell; 2]` | fixtures/reject/src/lib.rs:2086:20 | +| 1 | a reference through which a raw pointer may be made into `_` in an element, a payload, or a union field, which is not supported yet | `InPayload` | fixtures/reject/src/lib.rs:1359:11 | +| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Behind` | fixtures/reject/src/lib.rs:1746:22 | +| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Chosen` | fixtures/reject/src/lib.rs:1901:17 | +| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Compared` | fixtures/reject/src/lib.rs:1868:22 | +| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Deep` | fixtures/reject/src/lib.rs:1782:18 | +| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Enclosing` | fixtures/reject/src/lib.rs:1885:22 | +| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Shared` | fixtures/reject/src/lib.rs:1823:20 | +| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Slotted` | fixtures/reject/src/lib.rs:1804:21 | +| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Unboxed` | fixtures/reject/src/lib.rs:1761:16 | +| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `Wrapped` | fixtures/reject/src/lib.rs:1929:21 | +| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `std::cell::UnsafeCell` | fixtures/reject/src/lib.rs:1650:18 | +| 1 | a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there | `std::option::Option` | fixtures/reject/src/lib.rs:2103:13 | | 1 | a scalar constant of type `_` | `f16` | fixtures/reject/src/lib.rs:8:2 | -| 1 | a trait object of `_`, which is not supported yet | `[u8; 4]` | fixtures/reject/src/lib.rs:483:26 | -| 1 | a zero-sized constant of type `_` | `{async closure}` | fixtures/reject/src/lib.rs:50:2 | -| 1 | an assignment through a reference to `_` | `std::sync::MutexGuard` | fixtures/reject/src/lib.rs:90:2 | -| 1 | an iterator of the crate implementing `_`, which is not supported yet | `DoubleEndedIterator` | fixtures/reject/src/lib.rs:152:1 | -| 1 | an iterator of the crate implementing `_`, which is not supported yet | `FusedIterator` | fixtures/reject/src/lib.rs:200:1 | -| 1 | an upcast from `_` to `_`, which is not supported yet | `dyn Keyed`, `dyn std::any::Any` | fixtures/reject/src/lib.rs:534:32 | +| 1 | a trait object of `_`, which is not supported yet | `[u8; 4]` | fixtures/reject/src/lib.rs:476:26 | +| 1 | an assignment through a reference to `_` | `std::sync::MutexGuard` | fixtures/reject/src/lib.rs:83:2 | +| 1 | an iterator of the crate implementing `_`, which is not supported yet | `DoubleEndedIterator` | fixtures/reject/src/lib.rs:145:1 | +| 1 | an iterator of the crate implementing `_`, which is not supported yet | `FusedIterator` | fixtures/reject/src/lib.rs:193:1 | +| 1 | an upcast from `_` to `_`, which is not supported yet | `dyn Keyed`, `dyn std::any::Any` | fixtures/reject/src/lib.rs:527:32 | | 1 | arithmetic on `_` | `f16` | fixtures/reject/src/lib.rs:8:2 | -| 1 | comparing `_` | `*mut [u8; 4]` | fixtures/reject/src/lib.rs:1714:41 | -| 1 | comparing `_` as a key, which is not supported yet | `std::collections::BTreeSet` | fixtures/reject/src/lib.rs:242:75 | -| 1 | comparing pointers to `_` in an atomic, which JS has no address of | `u32` | fixtures/reject/src/lib.rs:779:15 | -| 1 | comparing pointers to `_`, which has no bytes and so no address of its own | `Fused` | fixtures/reject/src/lib.rs:730:70 | -| 1 | const generic types are not supported: `_` | `Block` | fixtures/reject/src/lib.rs:2099:1 | -| 1 | constructing `_` | `std::borrow::Cow` | fixtures/reject/src/lib.rs:356:53 | -| 1 | hashing `_` as a key, which is not supported yet | `std::collections::BTreeSet` | fixtures/reject/src/lib.rs:242:75 | -| 1 | hashing `_` by its address, which JS has no counterpart of | `*const [u8; 4]` | fixtures/reject/src/lib.rs:1718:5 | -| 1 | hashing `_` through `_`'s own `Hash::hash_slice`, which is not supported yet | `std::vec::Vec`, `Batched` | fixtures/reject/src/lib.rs:317:16 | -| 1 | overriding `_`, which std's adaptors call in place of `next` or beside it | `Iterator::fold` | fixtures/reject/src/lib.rs:132:2 | -| 1 | overriding `_`, which std's adaptors call in place of `next` or beside it | `Iterator::size_hint` | fixtures/reject/src/lib.rs:180:2 | -| 1 | passing `_`, a closure that owns a value that drops, to `_`, which is not supported yet | `{closure}`, `Entry::or_insert_with` | fixtures/reject/src/lib.rs:326:13 | -| 1 | passing `_`, which drops, to `_`, which is not supported yet | `{closure}`, `String::retain` | fixtures/reject/src/lib.rs:786:4 | -| 1 | passing `_`, which drops, to `_`, which is not supported yet | `{closure}`, `str::contains` | fixtures/reject/src/lib.rs:333:4 | -| 1 | replacing the value behind a reference to `_` | `std::sync::MutexGuard` | fixtures/reject/src/lib.rs:119:2 | -| 1 | union `_`, whose fields overlap in `_` and `f64`, which JS keeps apart | `Bits`, `u32` | fixtures/reject/src/lib.rs:584:1 | -| 1 | unsupported call to `_` | `::eq` | fixtures/reject/src/lib.rs:540:2 | -| 1 | unsupported call to `_` | `::contains` | fixtures/reject/src/lib.rs:986:32 | -| 1 | unsupported call to `_` | `::eq` | fixtures/reject/src/lib.rs:376:2 | -| 1 | unsupported call to `_` | `::is_sorted` | fixtures/reject/src/lib.rs:768:15 | -| 1 | unsupported call to `_` | `::clone_from` | fixtures/reject/src/lib.rs:888:10 | -| 1 | unsupported call to `_` | `::hash` | fixtures/reject/src/lib.rs:308:10 | -| 1 | unsupported call to `_` | `std::any::TypeId::of` | fixtures/reject/src/lib.rs:540:17 | -| 1 | unsupported call to `_` | `std::borrow::Cow::is_borrowed` | fixtures/reject/src/lib.rs:350:2 | -| 1 | unsupported call to `_` | `std::num::is_ascii_octdigit` | fixtures/reject/src/lib.rs:1279:4 | -| 1 | unsupported call to `_` | `std::ops::Range::contains` | fixtures/reject/src/lib.rs:167:8 | -| 1 | unsupported call to `_` | `std::ops::Range::is_empty` | fixtures/reject/src/lib.rs:991:9 | -| 1 | unsupported call to `_` | `std::ops::RangeTo::contains` | fixtures/reject/src/lib.rs:986:11 | -| 1 | unsupported call to `_` | `std::ptr::addr_eq` | fixtures/reject/src/lib.rs:1714:14 | -| 1 | unsupported call to `_` | `std::ptr::const_ptr::len` | fixtures/reject/src/lib.rs:1719:58 | -| 1 | unsupported call to `_` | `std::ptr::const_ptr::offset` | fixtures/reject/src/lib.rs:1715:73 | -| 1 | unsupported call to `_` | `std::ptr::copy_nonoverlapping` | fixtures/reject/src/lib.rs:1713:3 | -| 1 | unsupported call to `_` | `std::ptr::copy` | fixtures/reject/src/lib.rs:1712:3 | -| 1 | unsupported call to `_` | `std::ptr::mut_ptr::add` | fixtures/reject/src/lib.rs:1715:56 | -| 1 | unsupported call to `_` | `std::std::Layout::new` | fixtures/reject/src/lib.rs:567:15 | -| 1 | unsupported call to `_` | `std::std::alloc` | fixtures/reject/src/lib.rs:569:11 | -| 1 | unsupported call to `_` | `std::std::dealloc` | fixtures/reject/src/lib.rs:572:3 | -| 1 | unsupported call to `_` | `std::str::as_bytes_mut` | fixtures/reject/src/lib.rs:1638:13 | -| 1 | unsupported call to `_` | `std::str::parse` | fixtures/reject/src/lib.rs:441:4 | -| 1 | unsupported type `_` from another crate | `std::net::AddrParseError` | fixtures/reject/src/lib.rs:440:32 | -| 1 | unsupported type `_` from another crate | `std::net::Ipv4Addr` | fixtures/reject/src/lib.rs:440:32 | +| 1 | comparing `_` | `*mut [u8; 4]` | fixtures/reject/src/lib.rs:1707:41 | +| 1 | comparing `_` as a key, which is not supported yet | `std::collections::BTreeSet` | fixtures/reject/src/lib.rs:235:75 | +| 1 | comparing pointers to `_` in an atomic, which JS has no address of | `u32` | fixtures/reject/src/lib.rs:772:15 | +| 1 | comparing pointers to `_`, which has no bytes and so no address of its own | `Fused` | fixtures/reject/src/lib.rs:723:70 | +| 1 | const generic types are not supported: `_` | `Block` | fixtures/reject/src/lib.rs:2092:1 | +| 1 | constructing `_` | `std::borrow::Cow` | fixtures/reject/src/lib.rs:349:53 | +| 1 | hashing `_` as a key, which is not supported yet | `std::collections::BTreeSet` | fixtures/reject/src/lib.rs:235:75 | +| 1 | hashing `_` by its address, which JS has no counterpart of | `*const [u8; 4]` | fixtures/reject/src/lib.rs:1711:5 | +| 1 | hashing `_` through `_`'s own `Hash::hash_slice`, which is not supported yet | `std::vec::Vec`, `Batched` | fixtures/reject/src/lib.rs:310:16 | +| 1 | overriding `_`, which std's adaptors call in place of `next` or beside it | `Iterator::fold` | fixtures/reject/src/lib.rs:125:2 | +| 1 | overriding `_`, which std's adaptors call in place of `next` or beside it | `Iterator::size_hint` | fixtures/reject/src/lib.rs:173:2 | +| 1 | passing `_`, a closure that owns a value that drops, to `_`, which is not supported yet | `{closure}`, `Entry::or_insert_with` | fixtures/reject/src/lib.rs:319:13 | +| 1 | passing `_`, which drops, to `_`, which is not supported yet | `{closure}`, `String::retain` | fixtures/reject/src/lib.rs:779:4 | +| 1 | passing `_`, which drops, to `_`, which is not supported yet | `{closure}`, `str::contains` | fixtures/reject/src/lib.rs:326:4 | +| 1 | replacing the value behind a reference to `_` | `std::sync::MutexGuard` | fixtures/reject/src/lib.rs:112:2 | +| 1 | union `_`, whose fields overlap in `_` and `f64`, which JS keeps apart | `Bits`, `u32` | fixtures/reject/src/lib.rs:577:1 | +| 1 | unsupported call to `_` | `::eq` | fixtures/reject/src/lib.rs:533:2 | +| 1 | unsupported call to `_` | `::contains` | fixtures/reject/src/lib.rs:979:32 | +| 1 | unsupported call to `_` | `::eq` | fixtures/reject/src/lib.rs:369:2 | +| 1 | unsupported call to `_` | `::is_sorted` | fixtures/reject/src/lib.rs:761:15 | +| 1 | unsupported call to `_` | `::clone_from` | fixtures/reject/src/lib.rs:881:10 | +| 1 | unsupported call to `_` | `::hash` | fixtures/reject/src/lib.rs:301:10 | +| 1 | unsupported call to `_` | `std::any::TypeId::of` | fixtures/reject/src/lib.rs:533:17 | +| 1 | unsupported call to `_` | `std::borrow::Cow::is_borrowed` | fixtures/reject/src/lib.rs:343:2 | +| 1 | unsupported call to `_` | `std::num::is_ascii_octdigit` | fixtures/reject/src/lib.rs:1272:4 | +| 1 | unsupported call to `_` | `std::ops::Range::contains` | fixtures/reject/src/lib.rs:160:8 | +| 1 | unsupported call to `_` | `std::ops::Range::is_empty` | fixtures/reject/src/lib.rs:984:9 | +| 1 | unsupported call to `_` | `std::ops::RangeTo::contains` | fixtures/reject/src/lib.rs:979:11 | +| 1 | unsupported call to `_` | `std::ptr::addr_eq` | fixtures/reject/src/lib.rs:1707:14 | +| 1 | unsupported call to `_` | `std::ptr::const_ptr::len` | fixtures/reject/src/lib.rs:1712:58 | +| 1 | unsupported call to `_` | `std::ptr::const_ptr::offset` | fixtures/reject/src/lib.rs:1708:73 | +| 1 | unsupported call to `_` | `std::ptr::copy_nonoverlapping` | fixtures/reject/src/lib.rs:1706:3 | +| 1 | unsupported call to `_` | `std::ptr::copy` | fixtures/reject/src/lib.rs:1705:3 | +| 1 | unsupported call to `_` | `std::ptr::mut_ptr::add` | fixtures/reject/src/lib.rs:1708:56 | +| 1 | unsupported call to `_` | `std::std::Layout::new` | fixtures/reject/src/lib.rs:560:15 | +| 1 | unsupported call to `_` | `std::std::alloc` | fixtures/reject/src/lib.rs:562:11 | +| 1 | unsupported call to `_` | `std::std::dealloc` | fixtures/reject/src/lib.rs:565:3 | +| 1 | unsupported call to `_` | `std::str::as_bytes_mut` | fixtures/reject/src/lib.rs:1631:13 | +| 1 | unsupported call to `_` | `std::str::parse` | fixtures/reject/src/lib.rs:434:4 | +| 1 | unsupported type `_` from another crate | `std::net::AddrParseError` | fixtures/reject/src/lib.rs:433:32 | +| 1 | unsupported type `_` from another crate | `std::net::Ipv4Addr` | fixtures/reject/src/lib.rs:433:32 | ## Spans
a raw pointer to `_` in `_`, which the crate may put another object in place of (45) -- fixtures/reject/src/lib.rs:610:10: a raw pointer to `(u32, u32)` in `Span2`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:671:2: a raw pointer to `(u32, u32)` in `Window`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:689:15: a raw pointer to `(u32, u32)` in `std::cell::UnsafeCell<(u32, u32)>`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:722:21: a raw pointer to `std::cell::UnsafeCell` in `Hits`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:828:10: a raw pointer to `(u32, u32)` in `Plain`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:854:19: a raw pointer to `(u32, u32)` in `Track`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:874:19: a raw pointer to `(u32, u32)` in `Lane`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:910:10: a raw pointer to `(u32, u32)` in `Gap`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:911:10: a raw pointer to `(u32, u32)` in `Gap`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:912:58: a raw pointer to `(u32, u32)` in `Gap`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:924:19: a raw pointer to `std::mem::MaybeUninit<(u32, u32)>` in `Gap`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:925:19: a raw pointer to `std::mem::MaybeUninit<(u32, u32)>` in `Gap`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1074:43: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Escaped`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1088:28: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Called`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1112:26: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Looped`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1122:29: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Aliased`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1132:47: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Rewritten`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1144:29: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Loaded`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1178:31: a raw pointer to `(u16, u16)` in `Copied`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1189:39: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Mapped`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1223:18: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Repeated`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1235:46: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Onced`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1250:22: a raw pointer to `(u16, u16)` in `Pushed`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1304:9: a raw pointer to `std::cell::UnsafeCell` in `InArray`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1308:9: a raw pointer to `std::cell::UnsafeCell` in `InTuple`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1312:9: a raw pointer to `std::cell::UnsafeCell` in `InNested`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1316:9: a raw pointer to `std::cell::UnsafeCell` in `InPayload`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1320:9: a raw pointer to `std::cell::UnsafeCell` in `InField`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1324:9: a raw pointer to `std::cell::UnsafeCell` in `InGeneric`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1328:9: a raw pointer to `std::cell::UnsafeCell` in `InWritten`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1457:35: a raw pointer to `std::cell::UnsafeCell` in `ByRead`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1470:35: a raw pointer to `std::cell::UnsafeCell` in `ByWrite`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1483:35: a raw pointer to `std::cell::UnsafeCell` in `BySwap`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1495:35: a raw pointer to `std::cell::UnsafeCell` in `ByReplace`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1506:35: a raw pointer to `std::cell::UnsafeCell` in `ByBox`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1521:35: a raw pointer to `std::cell::UnsafeCell` in `ByClosure`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1534:35: a raw pointer to `std::cell::UnsafeCell` in `ByObject`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1547:35: a raw pointer to `std::cell::UnsafeCell` in `ByInstance`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1556:76: a raw pointer to `std::cell::UnsafeCell` in `BySwapped`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1567:30: a raw pointer to `std::cell::UnsafeCell` in `ByExchanged`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1599:32: a raw pointer to `ByRefReplace` in `(u16, ByRefReplace)`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1607:32: a raw pointer to `ByRefTake` in `(u16, ByRefTake)`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1615:51: a raw pointer to `ByKeySet` in `(u16, ByKeySet)`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1623:55: a raw pointer to `ByKeyReplace` in `(u16, ByKeyReplace)`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1630:52: a raw pointer to `ByKeyTake` in `(u16, ByKeyTake)`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:603:10: a raw pointer to `(u32, u32)` in `Span2`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:664:2: a raw pointer to `(u32, u32)` in `Window`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:682:15: a raw pointer to `(u32, u32)` in `std::cell::UnsafeCell<(u32, u32)>`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:715:21: a raw pointer to `std::cell::UnsafeCell` in `Hits`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:821:10: a raw pointer to `(u32, u32)` in `Plain`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:847:19: a raw pointer to `(u32, u32)` in `Track`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:867:19: a raw pointer to `(u32, u32)` in `Lane`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:903:10: a raw pointer to `(u32, u32)` in `Gap`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:904:10: a raw pointer to `(u32, u32)` in `Gap`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:905:58: a raw pointer to `(u32, u32)` in `Gap`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:917:19: a raw pointer to `std::mem::MaybeUninit<(u32, u32)>` in `Gap`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:918:19: a raw pointer to `std::mem::MaybeUninit<(u32, u32)>` in `Gap`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1067:43: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Escaped`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1081:28: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Called`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1105:26: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Looped`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1115:29: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Aliased`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1125:47: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Rewritten`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1137:29: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Loaded`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1171:31: a raw pointer to `(u16, u16)` in `Copied`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1182:39: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Mapped`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1216:18: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Repeated`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1228:46: a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Onced`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1243:22: a raw pointer to `(u16, u16)` in `Pushed`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1297:9: a raw pointer to `std::cell::UnsafeCell` in `InArray`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1301:9: a raw pointer to `std::cell::UnsafeCell` in `InTuple`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1305:9: a raw pointer to `std::cell::UnsafeCell` in `InNested`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1309:9: a raw pointer to `std::cell::UnsafeCell` in `InPayload`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1313:9: a raw pointer to `std::cell::UnsafeCell` in `InField`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1317:9: a raw pointer to `std::cell::UnsafeCell` in `InGeneric`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1321:9: a raw pointer to `std::cell::UnsafeCell` in `InWritten`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1450:35: a raw pointer to `std::cell::UnsafeCell` in `ByRead`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1463:35: a raw pointer to `std::cell::UnsafeCell` in `ByWrite`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1476:35: a raw pointer to `std::cell::UnsafeCell` in `BySwap`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1488:35: a raw pointer to `std::cell::UnsafeCell` in `ByReplace`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1499:35: a raw pointer to `std::cell::UnsafeCell` in `ByBox`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1514:35: a raw pointer to `std::cell::UnsafeCell` in `ByClosure`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1527:35: a raw pointer to `std::cell::UnsafeCell` in `ByObject`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1540:35: a raw pointer to `std::cell::UnsafeCell` in `ByInstance`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1549:76: a raw pointer to `std::cell::UnsafeCell` in `BySwapped`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1560:30: a raw pointer to `std::cell::UnsafeCell` in `ByExchanged`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1592:32: a raw pointer to `ByRefReplace` in `(u16, ByRefReplace)`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1600:32: a raw pointer to `ByRefTake` in `(u16, ByRefTake)`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1608:51: a raw pointer to `ByKeySet` in `(u16, ByKeySet)`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1616:55: a raw pointer to `ByKeyReplace` in `(u16, ByKeyReplace)`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1623:52: a raw pointer to `ByKeyTake` in `(u16, ByKeyTake)`, which the crate may put another object in place of
unsupported call to `_` (25) -- fixtures/reject/src/lib.rs:167:8: unsupported call to `std::ops::Range::::contains::` -- fixtures/reject/src/lib.rs:308:10: unsupported call to `::hash::` -- fixtures/reject/src/lib.rs:350:2: unsupported call to `std::borrow::Cow::<'_, [u8]>::is_borrowed` -- fixtures/reject/src/lib.rs:376:2: unsupported call to ` as std::cmp::PartialEq>::eq` -- fixtures/reject/src/lib.rs:436:17: unsupported call to ` as std::iter::Iterator>::sum::` -- fixtures/reject/src/lib.rs:436:38: unsupported call to ` as std::iter::Iterator>::sum::` -- fixtures/reject/src/lib.rs:441:4: unsupported call to `core::str::::parse::` -- fixtures/reject/src/lib.rs:540:2: unsupported call to `::eq` -- fixtures/reject/src/lib.rs:540:17: unsupported call to `std::any::TypeId::of::` -- fixtures/reject/src/lib.rs:567:15: unsupported call to `std::alloc::Layout::new::` -- fixtures/reject/src/lib.rs:569:11: unsupported call to `std::alloc::alloc` -- fixtures/reject/src/lib.rs:572:3: unsupported call to `std::alloc::dealloc` -- fixtures/reject/src/lib.rs:768:15: unsupported call to ` as std::iter::Iterator>::is_sorted` -- fixtures/reject/src/lib.rs:888:10: unsupported call to ` as std::clone::Clone>::clone_from` -- fixtures/reject/src/lib.rs:986:11: unsupported call to `std::ops::RangeTo::::contains::` -- fixtures/reject/src/lib.rs:986:32: unsupported call to ` as std::ops::RangeBounds>::contains::` -- fixtures/reject/src/lib.rs:991:9: unsupported call to `std::ops::Range::<&mut u8>::is_empty` -- fixtures/reject/src/lib.rs:1279:4: unsupported call to `core::num::::is_ascii_octdigit` -- fixtures/reject/src/lib.rs:1638:13: unsupported call to `core::str::::as_bytes_mut` -- fixtures/reject/src/lib.rs:1712:3: unsupported call to `std::ptr::copy::<[u8; 4]>` -- fixtures/reject/src/lib.rs:1713:3: unsupported call to `std::ptr::copy_nonoverlapping::<[u8; 4]>` -- fixtures/reject/src/lib.rs:1714:14: unsupported call to `std::ptr::addr_eq::<[u8; 4], [u8; 4]>` -- fixtures/reject/src/lib.rs:1715:56: unsupported call to `std::ptr::mut_ptr::::add` -- fixtures/reject/src/lib.rs:1715:73: unsupported call to `std::ptr::const_ptr::::offset` -- fixtures/reject/src/lib.rs:1719:58: unsupported call to `std::ptr::const_ptr::::len` +- fixtures/reject/src/lib.rs:160:8: unsupported call to `std::ops::Range::::contains::` +- fixtures/reject/src/lib.rs:301:10: unsupported call to `::hash::` +- fixtures/reject/src/lib.rs:343:2: unsupported call to `std::borrow::Cow::<'_, [u8]>::is_borrowed` +- fixtures/reject/src/lib.rs:369:2: unsupported call to ` as std::cmp::PartialEq>::eq` +- fixtures/reject/src/lib.rs:429:17: unsupported call to ` as std::iter::Iterator>::sum::` +- fixtures/reject/src/lib.rs:429:38: unsupported call to ` as std::iter::Iterator>::sum::` +- fixtures/reject/src/lib.rs:434:4: unsupported call to `core::str::::parse::` +- fixtures/reject/src/lib.rs:533:2: unsupported call to `::eq` +- fixtures/reject/src/lib.rs:533:17: unsupported call to `std::any::TypeId::of::` +- fixtures/reject/src/lib.rs:560:15: unsupported call to `std::alloc::Layout::new::` +- fixtures/reject/src/lib.rs:562:11: unsupported call to `std::alloc::alloc` +- fixtures/reject/src/lib.rs:565:3: unsupported call to `std::alloc::dealloc` +- fixtures/reject/src/lib.rs:761:15: unsupported call to ` as std::iter::Iterator>::is_sorted` +- fixtures/reject/src/lib.rs:881:10: unsupported call to ` as std::clone::Clone>::clone_from` +- fixtures/reject/src/lib.rs:979:11: unsupported call to `std::ops::RangeTo::::contains::` +- fixtures/reject/src/lib.rs:979:32: unsupported call to ` as std::ops::RangeBounds>::contains::` +- fixtures/reject/src/lib.rs:984:9: unsupported call to `std::ops::Range::<&mut u8>::is_empty` +- fixtures/reject/src/lib.rs:1272:4: unsupported call to `core::num::::is_ascii_octdigit` +- fixtures/reject/src/lib.rs:1631:13: unsupported call to `core::str::::as_bytes_mut` +- fixtures/reject/src/lib.rs:1705:3: unsupported call to `std::ptr::copy::<[u8; 4]>` +- fixtures/reject/src/lib.rs:1706:3: unsupported call to `std::ptr::copy_nonoverlapping::<[u8; 4]>` +- fixtures/reject/src/lib.rs:1707:14: unsupported call to `std::ptr::addr_eq::<[u8; 4], [u8; 4]>` +- fixtures/reject/src/lib.rs:1708:56: unsupported call to `std::ptr::mut_ptr::::add` +- fixtures/reject/src/lib.rs:1708:73: unsupported call to `std::ptr::const_ptr::::offset` +- fixtures/reject/src/lib.rs:1712:58: unsupported call to `std::ptr::const_ptr::::len`
a raw pointer to `_` in a variable assigned again while it may point there (19) -- fixtures/reject/src/lib.rs:618:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:626:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:635:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:643:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:652:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:660:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:698:15: a raw pointer to `std::cell::UnsafeCell` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:711:15: a raw pointer to `std::cell::UnsafeCell` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:1003:26: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:1016:22: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:1026:12: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:1035:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:1045:17: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:1050:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:1671:10: a raw pointer to `Target` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:1684:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:1699:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:1735:26: a raw pointer to `[u8; 4]` in a variable assigned again while it may point there -- fixtures/reject/src/lib.rs:1736:10: a raw pointer to `[u8; 4]` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:611:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:619:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:628:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:636:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:645:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:653:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:691:15: a raw pointer to `std::cell::UnsafeCell` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:704:15: a raw pointer to `std::cell::UnsafeCell` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:996:26: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:1009:22: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:1019:12: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:1028:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:1038:17: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:1043:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:1664:10: a raw pointer to `Target` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:1677:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:1692:10: a raw pointer to `(u32, u32)` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:1728:26: a raw pointer to `[u8; 4]` in a variable assigned again while it may point there +- fixtures/reject/src/lib.rs:1729:10: a raw pointer to `[u8; 4]` in a variable assigned again while it may point there
a reference through which a raw pointer may be made into `_` in `_`, which the crate may put another object in place of (15) -- fixtures/reject/src/lib.rs:1339:33: a reference through which a raw pointer may be made into `InArray` in `[InArray; 2]`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1348:33: a reference through which a raw pointer may be made into `InTuple` in `(u16, InTuple)`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1357:34: a reference through which a raw pointer may be made into `Mid` in `Outer`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1378:33: a reference through which a raw pointer may be made into `Mid` in `Outer`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1391:35: a reference through which a raw pointer may be made into `Mid` in `Outer`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1400:35: a reference through which a raw pointer may be made into `InWritten` in `[InWritten; 1]`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1959:20: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Replaced`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1977:20: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Swapped`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:1995:20: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Taken`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:2014:20: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Assigned`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:2040:22: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Deeper`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:2064:20: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Dynamic`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:2080:15: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Closed`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:2093:20: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `[std::cell::UnsafeCell; 2]`, which the crate may put another object in place of -- fixtures/reject/src/lib.rs:2139:20: a reference through which a raw pointer may be made into `Parked` in `Parking`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1332:33: a reference through which a raw pointer may be made into `InArray` in `[InArray; 2]`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1341:33: a reference through which a raw pointer may be made into `InTuple` in `(u16, InTuple)`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1350:34: a reference through which a raw pointer may be made into `Mid` in `Outer`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1371:33: a reference through which a raw pointer may be made into `Mid` in `Outer`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1384:35: a reference through which a raw pointer may be made into `Mid` in `Outer`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1393:35: a reference through which a raw pointer may be made into `InWritten` in `[InWritten; 1]`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1952:20: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Replaced`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1970:20: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Swapped`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:1988:20: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Taken`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:2007:20: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Assigned`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:2033:22: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Deeper`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:2057:20: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Dynamic`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:2073:15: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Closed`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:2086:20: a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `[std::cell::UnsafeCell; 2]`, which the crate may put another object in place of +- fixtures/reject/src/lib.rs:2132:20: a reference through which a raw pointer may be made into `Parked` in `Parking`, which the crate may put another object in place of
a reference to `_`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there (15) -- fixtures/reject/src/lib.rs:1657:18: a reference to `std::cell::UnsafeCell`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:1735:26: a reference to `[u8; 4]`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:1753:22: a reference to `Behind`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:1768:16: a reference to `Unboxed`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:1789:18: a reference to `Deep`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:1811:21: a reference to `Slotted`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:1830:20: a reference to `Shared`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:1847:20: a reference to `Inside`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:1860:26: a reference to `Inside`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:1875:22: a reference to `Compared`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:1892:22: a reference to `Enclosing`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:1908:17: a reference to `Chosen`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:1921:19: a reference to `[u8; 4]`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:1936:21: a reference to `Wrapped>`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there -- fixtures/reject/src/lib.rs:2110:13: a reference to `std::option::Option>`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1650:18: a reference to `std::cell::UnsafeCell`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1728:26: a reference to `[u8; 4]`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1746:22: a reference to `Behind`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1761:16: a reference to `Unboxed`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1782:18: a reference to `Deep`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1804:21: a reference to `Slotted`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1823:20: a reference to `Shared`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1840:20: a reference to `Inside`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1853:26: a reference to `Inside`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1868:22: a reference to `Compared`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1885:22: a reference to `Enclosing`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1901:17: a reference to `Chosen`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1914:19: a reference to `[u8; 4]`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:1929:21: a reference to `Wrapped>`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there +- fixtures/reject/src/lib.rs:2103:13: a reference to `std::option::Option>`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there
`_` with a mutable reference to a value JS copies, which its mapping would copy (5) -- fixtures/reject/src/lib.rs:1237:22: `std::iter::once` with a mutable reference to a value JS copies, which its mapping would copy -- fixtures/reject/src/lib.rs:1639:13: `core::str::::get_unchecked_mut` with a mutable reference to a value JS copies, which its mapping would copy -- fixtures/reject/src/lib.rs:1644:20: `std::str::from_utf8_mut` with a mutable reference to a value JS copies, which its mapping would copy -- fixtures/reject/src/lib.rs:2119:4: `std::collections::LinkedList::::retain` with a mutable reference to a value JS copies, which its mapping would copy -- fixtures/reject/src/lib.rs:2121:2: `std::default::Default::default` with a mutable reference to a value JS copies, which its mapping would copy +- fixtures/reject/src/lib.rs:1230:22: `std::iter::once` with a mutable reference to a value JS copies, which its mapping would copy +- fixtures/reject/src/lib.rs:1632:13: `core::str::::get_unchecked_mut` with a mutable reference to a value JS copies, which its mapping would copy +- fixtures/reject/src/lib.rs:1637:20: `std::str::from_utf8_mut` with a mutable reference to a value JS copies, which its mapping would copy +- fixtures/reject/src/lib.rs:2112:4: `std::collections::LinkedList::::retain` with a mutable reference to a value JS copies, which its mapping would copy +- fixtures/reject/src/lib.rs:2114:2: `std::default::Default::default` with a mutable reference to a value JS copies, which its mapping would copy
a raw pointer to `_` in an element, a payload, or a union field, which is not supported yet (5) -- fixtures/reject/src/lib.rs:681:10: a raw pointer to `(u32, u32)` in an element, a payload, or a union field, which is not supported yet -- fixtures/reject/src/lib.rs:1728:15: a raw pointer to `[u8; 3]` in an element, a payload, or a union field, which is not supported yet -- fixtures/reject/src/lib.rs:1728:18: a raw pointer to `[u8; 3]` in an element, a payload, or a union field, which is not supported yet -- fixtures/reject/src/lib.rs:1728:37: a raw pointer to `[u8; 2]` in an element, a payload, or a union field, which is not supported yet -- fixtures/reject/src/lib.rs:1728:44: a raw pointer to `[u8; 2]` in an element, a payload, or a union field, which is not supported yet +- fixtures/reject/src/lib.rs:674:10: a raw pointer to `(u32, u32)` in an element, a payload, or a union field, which is not supported yet +- fixtures/reject/src/lib.rs:1721:15: a raw pointer to `[u8; 3]` in an element, a payload, or a union field, which is not supported yet +- fixtures/reject/src/lib.rs:1721:18: a raw pointer to `[u8; 3]` in an element, a payload, or a union field, which is not supported yet +- fixtures/reject/src/lib.rs:1721:37: a raw pointer to `[u8; 2]` in an element, a payload, or a union field, which is not supported yet +- fixtures/reject/src/lib.rs:1721:44: a raw pointer to `[u8; 2]` in an element, a payload, or a union field, which is not supported yet
a variant of `_`, which is not supported: either is the same JS string (4) +- fixtures/reject/src/lib.rs:331:2: a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string +- fixtures/reject/src/lib.rs:332:30: a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string +- fixtures/reject/src/lib.rs:333:27: a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string - fixtures/reject/src/lib.rs:338:2: a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string -- fixtures/reject/src/lib.rs:339:30: a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string -- fixtures/reject/src/lib.rs:340:27: a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string -- fixtures/reject/src/lib.rs:345:2: a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string
a copy of a closure that changes what it captured (3) -- fixtures/reject/src/lib.rs:231:14: a copy of a closure that changes what it captured -- fixtures/reject/src/lib.rs:516:14: a copy of a closure that changes what it captured -- fixtures/reject/src/lib.rs:517:14: a copy of a closure that changes what it captured +- fixtures/reject/src/lib.rs:224:14: a copy of a closure that changes what it captured +- fixtures/reject/src/lib.rs:509:14: a copy of a closure that changes what it captured +- fixtures/reject/src/lib.rs:510:14: a copy of a closure that changes what it captured
an assignment through a reference to `_` (3) -- fixtures/reject/src/lib.rs:90:2: an assignment through a reference to `std::sync::MutexGuard<'_, u8>` -- fixtures/reject/src/lib.rs:114:2: an assignment through a reference to `std::pin::Pin>>` -- fixtures/reject/src/lib.rs:221:2: an assignment through a reference to `std::pin::Pin<&mut Noisy>` +- fixtures/reject/src/lib.rs:83:2: an assignment through a reference to `std::sync::MutexGuard<'_, u8>` +- fixtures/reject/src/lib.rs:107:2: an assignment through a reference to `std::pin::Pin>>` +- fixtures/reject/src/lib.rs:214:2: an assignment through a reference to `std::pin::Pin<&mut Noisy>`
replacing the value behind a reference to `_` (3) -- fixtures/reject/src/lib.rs:98:2: replacing the value behind a reference to `std::pin::Pin fn(&'a mut std::task::Context<'b>) -> std::task::Poll>>>` -- fixtures/reject/src/lib.rs:106:2: replacing the value behind a reference to `std::pin::Pin>` -- fixtures/reject/src/lib.rs:119:2: replacing the value behind a reference to `std::sync::MutexGuard<'_, u8>` +- fixtures/reject/src/lib.rs:91:2: replacing the value behind a reference to `std::pin::Pin fn(&'a mut std::task::Context<'b>) -> std::task::Poll>>>` +- fixtures/reject/src/lib.rs:99:2: replacing the value behind a reference to `std::pin::Pin>` +- fixtures/reject/src/lib.rs:112:2: replacing the value behind a reference to `std::sync::MutexGuard<'_, u8>`
@@ -624,7 +621,7 @@ The type or module each refused type or path belongs to. - fixtures/reject/src/lib.rs:7:14: unsupported type `f16` - fixtures/reject/src/lib.rs:7:25: unsupported type `f16` -- fixtures/reject/src/lib.rs:73:51: unsupported type `f16` +- fixtures/reject/src/lib.rs:66:51: unsupported type `f16` @@ -638,14 +635,14 @@ The type or module each refused type or path belongs to.
`_` of `_`, whose `None` is `rt.None`, which is not supported yet (2) - fixtures/reject/src/lib.rs:37:4: `Iterator::scan` of `Option>`, whose `None` is `rt.None`, which is not supported yet -- fixtures/reject/src/lib.rs:237:11: `Iterator::scan` of `Option<()>`, whose `None` is `rt.None`, which is not supported yet +- fixtures/reject/src/lib.rs:230:11: `Iterator::scan` of `Option<()>`, whose `None` is `rt.None`, which is not supported yet
`_` of `_`, whose `clone_from` is its own, which is not supported yet (2) - fixtures/reject/src/lib.rs:21:4: `slice::fill` of `Reused`, whose `clone_from` is its own, which is not supported yet -- fixtures/reject/src/lib.rs:293:4: `slice::clone_from_slice` of `Reused`, whose `clone_from` is its own, which is not supported yet +- fixtures/reject/src/lib.rs:286:4: `slice::clone_from_slice` of `Reused`, whose `clone_from` is its own, which is not supported yet
@@ -658,100 +655,100 @@ The type or module each refused type or path belongs to.
`_`, a trait object of the generic trait `_`, which is not supported yet (2) -- fixtures/reject/src/lib.rs:466:23: `dyn Scaled`, a trait object of the generic trait `Scaled`, which is not supported yet -- fixtures/reject/src/lib.rs:467:4: `dyn Scaled`, a trait object of the generic trait `Scaled`, which is not supported yet +- fixtures/reject/src/lib.rs:459:23: `dyn Scaled`, a trait object of the generic trait `Scaled`, which is not supported yet +- fixtures/reject/src/lib.rs:460:4: `dyn Scaled`, a trait object of the generic trait `Scaled`, which is not supported yet
a cast from a pointer to `_` to one to `_`, which reads the bytes of one type as another (2) -- fixtures/reject/src/lib.rs:557:27: a cast from a pointer to `u32` to one to `u8`, which reads the bytes of one type as another -- fixtures/reject/src/lib.rs:1715:17: a cast from a pointer to `[u8; 4]` to one to `u8`, which reads the bytes of one type as another +- fixtures/reject/src/lib.rs:550:27: a cast from a pointer to `u32` to one to `u8`, which reads the bytes of one type as another +- fixtures/reject/src/lib.rs:1708:17: a cast from a pointer to `[u8; 4]` to one to `u8`, which reads the bytes of one type as another
a coercion to `_`, which is not supported yet (2) -- fixtures/reject/src/lib.rs:457:40: a coercion to `std::sync::Weak`, which is not supported yet -- fixtures/reject/src/lib.rs:493:30: a coercion to `&Tail`, which is not supported yet +- fixtures/reject/src/lib.rs:450:40: a coercion to `std::sync::Weak`, which is not supported yet +- fixtures/reject/src/lib.rs:486:30: a coercion to `&Tail`, which is not supported yet
a raw pointer to a place of `()`, which has no address of its own (2) -- fixtures/reject/src/lib.rs:730:15: a raw pointer to a place of `()`, which has no address of its own -- fixtures/reject/src/lib.rs:730:29: a raw pointer to a place of `()`, which has no address of its own +- fixtures/reject/src/lib.rs:723:15: a raw pointer to a place of `()`, which has no address of its own +- fixtures/reject/src/lib.rs:723:29: a raw pointer to a place of `()`, which has no address of its own
an iterator of the crate implementing `_`, which is not supported yet (2) -- fixtures/reject/src/lib.rs:152:1: an iterator of the crate implementing `DoubleEndedIterator`, which is not supported yet -- fixtures/reject/src/lib.rs:200:1: an iterator of the crate implementing `FusedIterator`, which is not supported yet +- fixtures/reject/src/lib.rs:145:1: an iterator of the crate implementing `DoubleEndedIterator`, which is not supported yet +- fixtures/reject/src/lib.rs:193:1: an iterator of the crate implementing `FusedIterator`, which is not supported yet
comparing pointers to `_`, each a place JS makes of its own (2) -- fixtures/reject/src/lib.rs:598:2: comparing pointers to `u32`, each a place JS makes of its own -- fixtures/reject/src/lib.rs:2147:2: comparing pointers to `u32`, each a place JS makes of its own +- fixtures/reject/src/lib.rs:591:2: comparing pointers to `u32`, each a place JS makes of its own +- fixtures/reject/src/lib.rs:2140:2: comparing pointers to `u32`, each a place JS makes of its own
overriding `_`, which std's adaptors call in place of `next` or beside it (2) -- fixtures/reject/src/lib.rs:132:2: overriding `Iterator::fold`, which std's adaptors call in place of `next` or beside it -- fixtures/reject/src/lib.rs:180:2: overriding `Iterator::size_hint`, which std's adaptors call in place of `next` or beside it +- fixtures/reject/src/lib.rs:125:2: overriding `Iterator::fold`, which std's adaptors call in place of `next` or beside it +- fixtures/reject/src/lib.rs:173:2: overriding `Iterator::size_hint`, which std's adaptors call in place of `next` or beside it
passing `_`, which drops, to `_`, which is not supported yet (2) -- fixtures/reject/src/lib.rs:333:4: passing `{closure@fixtures/reject/src/lib.rs:333:13: 333:27}`, which drops, to `str::contains`, which is not supported yet -- fixtures/reject/src/lib.rs:786:4: passing `{closure@fixtures/reject/src/lib.rs:786:11: 786:19}`, which drops, to `String::retain`, which is not supported yet +- fixtures/reject/src/lib.rs:326:4: passing `{closure@fixtures/reject/src/lib.rs:326:13: 326:27}`, which drops, to `str::contains`, which is not supported yet +- fixtures/reject/src/lib.rs:779:4: passing `{closure@fixtures/reject/src/lib.rs:779:11: 779:19}`, which drops, to `String::retain`, which is not supported yet
unsupported type `_` from another crate (2) -- fixtures/reject/src/lib.rs:440:32: unsupported type `std::net::AddrParseError` from another crate -- fixtures/reject/src/lib.rs:440:32: unsupported type `std::net::Ipv4Addr` from another crate +- fixtures/reject/src/lib.rs:433:32: unsupported type `std::net::AddrParseError` from another crate +- fixtures/reject/src/lib.rs:433:32: unsupported type `std::net::Ipv4Addr` from another crate
`Buf::copy_to_bytes` of `_`, a value JS copies, which is not supported (1) -- fixtures/reject/src/lib.rs:763:2: `Buf::copy_to_bytes` of `Blank`, a value JS copies, which is not supported +- fixtures/reject/src/lib.rs:756:2: `Buf::copy_to_bytes` of `Blank`, a value JS copies, which is not supported
`BufMut::put` of `_` into a `BytesMut`, which picks the methods it calls by a capacity that depends on whether the other handles of its storage dropped, which is not supported (1) -- fixtures/reject/src/lib.rs:396:2: `BufMut::put` of `Counted` into a `BytesMut`, which picks the methods it calls by a capacity that depends on whether the other handles of its storage dropped, which is not supported +- fixtures/reject/src/lib.rs:389:2: `BufMut::put` of `Counted` into a `BytesMut`, which picks the methods it calls by a capacity that depends on whether the other handles of its storage dropped, which is not supported
`Bytes::from_owner` of `_`, which would drop with the last clone of what it makes, which is not supported (1) -- fixtures/reject/src/lib.rs:381:2: `Bytes::from_owner` of `std::sync::Arc<[u8]>`, which would drop with the last clone of what it makes, which is not supported +- fixtures/reject/src/lib.rs:374:2: `Bytes::from_owner` of `std::sync::Arc<[u8]>`, which would drop with the last clone of what it makes, which is not supported
`Extend` of `_` by `_`, whose `_` of `_` is not supported yet (1) -- fixtures/reject/src/lib.rs:1274:31: `Extend` of `(std::vec::Vec, Tens)` by `(u8, u8)`, whose `Tens` of `u8` is not supported yet +- fixtures/reject/src/lib.rs:1267:31: `Extend` of `(std::vec::Vec, Tens)` by `(u8, u8)`, whose `Tens` of `u8` is not supported yet
`Pointer` formatting, as in `{:p}`, is not supported (1) -- fixtures/reject/src/lib.rs:56:2: `Pointer` formatting, as in `{:p}`, is not supported +- fixtures/reject/src/lib.rs:49:2: `Pointer` formatting, as in `{:p}`, is not supported
`_` is not supported: its `Pending` and `Ready` would both be `rt.OuterPending` (1) -- fixtures/reject/src/lib.rs:79:20: `Poll>>>` is not supported: its `Pending` and `Ready` would both be `rt.OuterPending` +- fixtures/reject/src/lib.rs:72:20: `Poll>>>` is not supported: its `Pending` and `Ready` would both be `rt.OuterPending`
@@ -763,145 +760,145 @@ The type or module each refused type or path belongs to.
`_` is not supported: its field `_` is `_`, typed `_`, whose `Pending` would be `rt.OuterPending` as `_` (1) -- fixtures/reject/src/lib.rs:504:2: `Waiting>` is not supported: its field `poll` is `Poll`, typed `rt.Poll`, whose `Pending` would be `rt.OuterPending` as `Poll>` +- fixtures/reject/src/lib.rs:497:2: `Waiting>` is not supported: its field `poll` is `Poll`, typed `rt.Poll`, whose `Pending` would be `rt.OuterPending` as `Poll>`
`_` of `_` by `_`, which is not supported yet (1) -- fixtures/reject/src/lib.rs:260:6: `HashMap::contains_key` of `std::collections::HashMap` by `u8`, which is not supported yet +- fixtures/reject/src/lib.rs:253:6: `HashMap::contains_key` of `std::collections::HashMap` by `u8`, which is not supported yet
`_` of `_`, which is not supported yet (1) -- fixtures/reject/src/lib.rs:540:4: `std::any::Any::type_id` of `dyn std::any::Any`, which is not supported yet +- fixtures/reject/src/lib.rs:533:4: `std::any::Any::type_id` of `dyn std::any::Any`, which is not supported yet
`_`, which is not supported yet (1) -- fixtures/reject/src/lib.rs:268:9: `Hasher::write`, which is not supported yet +- fixtures/reject/src/lib.rs:261:9: `Hasher::write`, which is not supported yet
`_`, which reads a capacity that depends on whether the other handles of its storage dropped, which is not supported (1) -- fixtures/reject/src/lib.rs:390:6: `BytesMut::capacity`, which reads a capacity that depends on whether the other handles of its storage dropped, which is not supported +- fixtures/reject/src/lib.rs:383:6: `BytesMut::capacity`, which reads a capacity that depends on whether the other handles of its storage dropped, which is not supported
`clone_from` of `_`, whose items' `clone_from` is their own, which is not supported yet (1) -- fixtures/reject/src/lib.rs:2120:4: `clone_from` of `std::collections::LinkedList`, whose items' `clone_from` is their own, which is not supported yet +- fixtures/reject/src/lib.rs:2113:4: `clone_from` of `std::collections::LinkedList`, whose items' `clone_from` is their own, which is not supported yet
`collect` of `_`, which sorts by `_`'s own `Ord`, of entries that drop, which is not supported yet (1) -- fixtures/reject/src/lib.rs:957:22: `collect` of `std::collections::BTreeMap, Noisy>`, which sorts by `std::cell::Cell`'s own `Ord`, of entries that drop, which is not supported yet +- fixtures/reject/src/lib.rs:950:22: `collect` of `std::collections::BTreeMap, Noisy>`, which sorts by `std::cell::Cell`'s own `Ord`, of entries that drop, which is not supported yet
`fmt::Arguments` with a placeholder, or not made in place, written to `_`'s own `fmt::Write`, which is not supported yet: std splits what a placeholder writes into `write_str` calls the runtime does not make (1) -- fixtures/reject/src/lib.rs:62:10: `fmt::Arguments` with a placeholder, or not made in place, written to `Sink`'s own `fmt::Write`, which is not supported yet: std splits what a placeholder writes into `write_str` calls the runtime does not make +- fixtures/reject/src/lib.rs:55:10: `fmt::Arguments` with a placeholder, or not made in place, written to `Sink`'s own `fmt::Write`, which is not supported yet: std splits what a placeholder writes into `write_str` calls the runtime does not make
a `collect` in place of `_`, a zip std reads by index, holding values that drop, which is not supported yet (1) -- fixtures/reject/src/lib.rs:216:40: a `collect` in place of `std::iter::Map, {closure@fixtures/reject/src/lib.rs:215:32: 215:40}>, std::ops::Range>, {closure@fixtures/reject/src/lib.rs:216:24: 216:32}>`, a zip std reads by index, holding values that drop, which is not supported yet +- fixtures/reject/src/lib.rs:209:40: a `collect` in place of `std::iter::Map, {closure@fixtures/reject/src/lib.rs:208:32: 208:40}>, std::ops::Range>, {closure@fixtures/reject/src/lib.rs:209:24: 209:32}>`, a zip std reads by index, holding values that drop, which is not supported yet
a `skip` of `_`, a zip std reads by index, of items that drop, which is not supported yet (1) -- fixtures/reject/src/lib.rs:209:8: a `skip` of `std::iter::Zip, {closure@fixtures/reject/src/lib.rs:208:27: 208:31}>, std::iter::Map, {closure@fixtures/reject/src/lib.rs:208:59: 208:63}>>`, a zip std reads by index, of items that drop, which is not supported yet +- fixtures/reject/src/lib.rs:202:8: a `skip` of `std::iter::Zip, {closure@fixtures/reject/src/lib.rs:201:27: 201:31}>, std::iter::Map, {closure@fixtures/reject/src/lib.rs:201:59: 201:63}>>`, a zip std reads by index, of items that drop, which is not supported yet
a cast from `_` to `_` (1) -- fixtures/reject/src/lib.rs:75:2: a cast from `u64` to `f16` +- fixtures/reject/src/lib.rs:68:2: a cast from `u64` to `f16`
a cast from `_` to `_`, which reads the bytes of one type as another (1) -- fixtures/reject/src/lib.rs:1715:33: a cast from `*const [u8; 4]` to `*const u8`, which reads the bytes of one type as another +- fixtures/reject/src/lib.rs:1708:33: a cast from `*const [u8; 4]` to `*const u8`, which reads the bytes of one type as another
a coercion of `_` to `_`, a pointer to a slice (1) -- fixtures/reject/src/lib.rs:1716:28: a coercion of `*const [u8; 4]` to `*const [u8]`, a pointer to a slice +- fixtures/reject/src/lib.rs:1709:28: a coercion of `*const [u8; 4]` to `*const [u8]`, a pointer to a slice
a coercion to `_` (1) -- fixtures/reject/src/lib.rs:298:2: a coercion to `std::sync::Arc<[u8]>` +- fixtures/reject/src/lib.rs:291:2: a coercion to `std::sync::Arc<[u8]>`
a constant of type `_`, a pointer into memory translation can't name (1) -- fixtures/reject/src/lib.rs:780:3: a constant of type `&u32`, a pointer into memory translation can't name +- fixtures/reject/src/lib.rs:773:3: a constant of type `&u32`, a pointer into memory translation can't name
a dangling pointer to `_`, a value of no bytes made of more than structs and tuples (1) -- fixtures/reject/src/lib.rs:739:11: a dangling pointer to `Only`, a value of no bytes made of more than structs and tuples +- fixtures/reject/src/lib.rs:732:11: a dangling pointer to `Only`, a value of no bytes made of more than structs and tuples
a future of `_`, which can be `rt.Pending`, as the future's own `Pending` is (1) -- fixtures/reject/src/lib.rs:84:34: a future of `std::task::Poll`, which can be `rt.Pending`, as the future's own `Pending` is +- fixtures/reject/src/lib.rs:77:34: a future of `std::task::Poll`, which can be `rt.Pending`, as the future's own `Pending` is
a mapped guard of `_`, which JS can't write in place (1) -- fixtures/reject/src/lib.rs:2154:10: a mapped guard of `{closure@fixtures/reject/src/lib.rs:2153:38: 2153:50}`, which JS can't write in place +- fixtures/reject/src/lib.rs:2147:10: a mapped guard of `{closure@fixtures/reject/src/lib.rs:2146:38: 2146:50}`, which JS can't write in place
a mutable reference into a `Result`'s payload, passed on or kept (1) -- fixtures/reject/src/lib.rs:369:12: a mutable reference into a `Result`'s payload, passed on or kept +- fixtures/reject/src/lib.rs:362:12: a mutable reference into a `Result`'s payload, passed on or kept
a mutable static, which any code may write (1) -- fixtures/reject/src/lib.rs:68:11: a mutable static, which any code may write +- fixtures/reject/src/lib.rs:61:11: a mutable static, which any code may write
a pointer's address, which JS has no counterpart of (1) -- fixtures/reject/src/lib.rs:562:17: a pointer's address, which JS has no counterpart of +- fixtures/reject/src/lib.rs:555:17: a pointer's address, which JS has no counterpart of
a printable type must implement `Display` or `Debug` (1) -- fixtures/reject/src/lib.rs:71:1: a printable type must implement `Display` or `Debug` +- fixtures/reject/src/lib.rs:64:1: a printable type must implement `Display` or `Debug`
a raw pointer to `_` behind a reference, which is the object and not where it is kept (1) -- fixtures/reject/src/lib.rs:579:10: a raw pointer to `std::vec::Vec` behind a reference, which is the object and not where it is kept +- fixtures/reject/src/lib.rs:572:10: a raw pointer to `std::vec::Vec` behind a reference, which is the object and not where it is kept
a reference through which a raw pointer may be made into `_` in an element, a payload, or a union field, which is not supported yet (1) -- fixtures/reject/src/lib.rs:1366:11: a reference through which a raw pointer may be made into `InPayload` in an element, a payload, or a union field, which is not supported yet +- fixtures/reject/src/lib.rs:1359:11: a reference through which a raw pointer may be made into `InPayload` in an element, a payload, or a union field, which is not supported yet
@@ -913,19 +910,13 @@ The type or module each refused type or path belongs to.
a trait object of `_`, which is not supported yet (1) -- fixtures/reject/src/lib.rs:483:26: a trait object of `[u8; 4]`, which is not supported yet - -
- -
a zero-sized constant of type `_` (1) - -- fixtures/reject/src/lib.rs:50:2: a zero-sized constant of type `{async closure@fixtures/reject/src/lib.rs:49:10: 49:18}` +- fixtures/reject/src/lib.rs:476:26: a trait object of `[u8; 4]`, which is not supported yet
an upcast from `_` to `_`, which is not supported yet (1) -- fixtures/reject/src/lib.rs:534:32: an upcast from `dyn Keyed` to `dyn std::any::Any`, which is not supported yet +- fixtures/reject/src/lib.rs:527:32: an upcast from `dyn Keyed` to `dyn std::any::Any`, which is not supported yet
@@ -937,66 +928,66 @@ The type or module each refused type or path belongs to.
comparing `_` (1) -- fixtures/reject/src/lib.rs:1714:41: comparing `*mut [u8; 4]` +- fixtures/reject/src/lib.rs:1707:41: comparing `*mut [u8; 4]`
comparing `_` as a key, which is not supported yet (1) -- fixtures/reject/src/lib.rs:242:75: comparing `std::collections::BTreeSet` as a key, which is not supported yet +- fixtures/reject/src/lib.rs:235:75: comparing `std::collections::BTreeSet` as a key, which is not supported yet
comparing pointers to `_` in an atomic, which JS has no address of (1) -- fixtures/reject/src/lib.rs:779:15: comparing pointers to `u32` in an atomic, which JS has no address of +- fixtures/reject/src/lib.rs:772:15: comparing pointers to `u32` in an atomic, which JS has no address of
comparing pointers to `_`, which has no bytes and so no address of its own (1) -- fixtures/reject/src/lib.rs:730:70: comparing pointers to `Fused`, which has no bytes and so no address of its own +- fixtures/reject/src/lib.rs:723:70: comparing pointers to `Fused`, which has no bytes and so no address of its own
const generic types are not supported: `_` (1) -- fixtures/reject/src/lib.rs:2099:1: const generic types are not supported: `Block` +- fixtures/reject/src/lib.rs:2092:1: const generic types are not supported: `Block`
constructing `_` (1) -- fixtures/reject/src/lib.rs:356:53: constructing `std::borrow::Cow<'_, std::sync::Arc>` +- fixtures/reject/src/lib.rs:349:53: constructing `std::borrow::Cow<'_, std::sync::Arc>`
hashing `_` as a key, which is not supported yet (1) -- fixtures/reject/src/lib.rs:242:75: hashing `std::collections::BTreeSet` as a key, which is not supported yet +- fixtures/reject/src/lib.rs:235:75: hashing `std::collections::BTreeSet` as a key, which is not supported yet
hashing `_` by its address, which JS has no counterpart of (1) -- fixtures/reject/src/lib.rs:1718:5: hashing `*const [u8; 4]` by its address, which JS has no counterpart of +- fixtures/reject/src/lib.rs:1711:5: hashing `*const [u8; 4]` by its address, which JS has no counterpart of
hashing `_` through `_`'s own `Hash::hash_slice`, which is not supported yet (1) -- fixtures/reject/src/lib.rs:317:16: hashing `std::vec::Vec` through `Batched`'s own `Hash::hash_slice`, which is not supported yet +- fixtures/reject/src/lib.rs:310:16: hashing `std::vec::Vec` through `Batched`'s own `Hash::hash_slice`, which is not supported yet
passing `_`, a closure that owns a value that drops, to `_`, which is not supported yet (1) -- fixtures/reject/src/lib.rs:326:13: passing `{closure@fixtures/reject/src/lib.rs:326:28: 326:35}`, a closure that owns a value that drops, to `Entry::or_insert_with`, which is not supported yet +- fixtures/reject/src/lib.rs:319:13: passing `{closure@fixtures/reject/src/lib.rs:319:28: 319:35}`, a closure that owns a value that drops, to `Entry::or_insert_with`, which is not supported yet
union `_`, whose fields overlap in `_` and `f64`, which JS keeps apart (1) -- fixtures/reject/src/lib.rs:584:1: union `Bits`, whose fields overlap in `u32` and `f64`, which JS keeps apart +- fixtures/reject/src/lib.rs:577:1: union `Bits`, whose fields overlap in `u32` and `f64`, which JS keeps apart
diff --git a/ts/fixtures/reject/expected.txt b/ts/fixtures/reject/expected.txt index f194a04cf..fa889754b 100644 --- a/ts/fixtures/reject/expected.txt +++ b/ts/fixtures/reject/expected.txt @@ -1,8 +1,8 @@ no item `lopsided` in the crate no item `missing` in the crate no item `bound_ranges` in the crate -a root must not be generic at fixtures/reject/src/lib.rs:73:1 -a printable type must implement `Display` or `Debug` at fixtures/reject/src/lib.rs:71:1 +a root must not be generic at fixtures/reject/src/lib.rs:66:1 +a printable type must implement `Display` or `Debug` at fixtures/reject/src/lib.rs:64:1 unsupported type `f16` at fixtures/reject/src/lib.rs:7:14 a scalar constant of type `f16` at fixtures/reject/src/lib.rs:8:2 arithmetic on `f16` at fixtures/reject/src/lib.rs:8:2 @@ -14,204 +14,203 @@ unsupported type `f16` at fixtures/reject/src/lib.rs:7:25 `slice::fill` of `Reused`, whose `clone_from` is its own, which is not supported yet at fixtures/reject/src/lib.rs:21:4 `Iterator::scan` of `Option>`, whose `None` is `rt.None`, which is not supported yet at fixtures/reject/src/lib.rs:37:4 `Maybe<()>` is not supported: its field `value` is `Option`, typed `T | undefined`, whose `None` would be `rt.None` as `Option<()>` at fixtures/reject/src/lib.rs:31:2 -a zero-sized constant of type `{async closure@fixtures/reject/src/lib.rs:49:10: 49:18}` at fixtures/reject/src/lib.rs:50:2 -`Pointer` formatting, as in `{:p}`, is not supported at fixtures/reject/src/lib.rs:56:11 -`fmt::Arguments` with a placeholder, or not made in place, written to `Sink`'s own `fmt::Write`, which is not supported yet: std splits what a placeholder writes into `write_str` calls the runtime does not make at fixtures/reject/src/lib.rs:62:10 -a mutable static, which any code may write at fixtures/reject/src/lib.rs:68:11 -`Poll>>>` is not supported: its `Pending` and `Ready` would both be `rt.OuterPending` at fixtures/reject/src/lib.rs:79:20 -a future of `std::task::Poll`, which can be `rt.Pending`, as the future's own `Pending` is at fixtures/reject/src/lib.rs:84:34 -an assignment through a reference to `std::sync::MutexGuard<'_, u8>` at fixtures/reject/src/lib.rs:90:2 -replacing the value behind a reference to `std::sync::MutexGuard<'_, u8>` at fixtures/reject/src/lib.rs:119:2 -replacing the value behind a reference to `std::pin::Pin fn(&'a mut std::task::Context<'b>) -> std::task::Poll>>>` at fixtures/reject/src/lib.rs:98:2 -an assignment through a reference to `std::pin::Pin>>` at fixtures/reject/src/lib.rs:114:2 -replacing the value behind a reference to `std::pin::Pin>` at fixtures/reject/src/lib.rs:106:2 -unsupported call to `std::ops::Range::::contains::` at fixtures/reject/src/lib.rs:167:8 -unsupported call to `std::ops::RangeTo::::contains::` at fixtures/reject/src/lib.rs:986:11 -unsupported call to ` as std::ops::RangeBounds>::contains::` at fixtures/reject/src/lib.rs:986:32 -unsupported call to `std::ops::Range::<&mut u8>::is_empty` at fixtures/reject/src/lib.rs:991:9 -a `skip` of `std::iter::Zip, {closure@fixtures/reject/src/lib.rs:208:27: 208:31}>, std::iter::Map, {closure@fixtures/reject/src/lib.rs:208:59: 208:63}>>`, a zip std reads by index, of items that drop, which is not supported yet at fixtures/reject/src/lib.rs:209:8 -a `collect` in place of `std::iter::Map, {closure@fixtures/reject/src/lib.rs:215:32: 215:40}>, std::ops::Range>, {closure@fixtures/reject/src/lib.rs:216:24: 216:32}>`, a zip std reads by index, holding values that drop, which is not supported yet at fixtures/reject/src/lib.rs:216:40 -an assignment through a reference to `std::pin::Pin<&mut Noisy>` at fixtures/reject/src/lib.rs:221:2 -a copy of a closure that changes what it captured at fixtures/reject/src/lib.rs:231:14 -`Iterator::scan` of `Option<()>`, whose `None` is `rt.None`, which is not supported yet at fixtures/reject/src/lib.rs:237:11 -hashing `std::collections::BTreeSet` as a key, which is not supported yet at fixtures/reject/src/lib.rs:242:75 -comparing `std::collections::BTreeSet` as a key, which is not supported yet at fixtures/reject/src/lib.rs:242:75 -`HashMap::contains_key` of `std::collections::HashMap` by `u8`, which is not supported yet at fixtures/reject/src/lib.rs:260:6 -`slice::clone_from_slice` of `Reused`, whose `clone_from` is its own, which is not supported yet at fixtures/reject/src/lib.rs:293:4 -a coercion to `std::sync::Arc<[u8]>` at fixtures/reject/src/lib.rs:298:2 +`Pointer` formatting, as in `{:p}`, is not supported at fixtures/reject/src/lib.rs:49:11 +`fmt::Arguments` with a placeholder, or not made in place, written to `Sink`'s own `fmt::Write`, which is not supported yet: std splits what a placeholder writes into `write_str` calls the runtime does not make at fixtures/reject/src/lib.rs:55:10 +a mutable static, which any code may write at fixtures/reject/src/lib.rs:61:11 +`Poll>>>` is not supported: its `Pending` and `Ready` would both be `rt.OuterPending` at fixtures/reject/src/lib.rs:72:20 +a future of `std::task::Poll`, which can be `rt.Pending`, as the future's own `Pending` is at fixtures/reject/src/lib.rs:77:34 +an assignment through a reference to `std::sync::MutexGuard<'_, u8>` at fixtures/reject/src/lib.rs:83:2 +replacing the value behind a reference to `std::sync::MutexGuard<'_, u8>` at fixtures/reject/src/lib.rs:112:2 +replacing the value behind a reference to `std::pin::Pin fn(&'a mut std::task::Context<'b>) -> std::task::Poll>>>` at fixtures/reject/src/lib.rs:91:2 +an assignment through a reference to `std::pin::Pin>>` at fixtures/reject/src/lib.rs:107:2 +replacing the value behind a reference to `std::pin::Pin>` at fixtures/reject/src/lib.rs:99:2 +unsupported call to `std::ops::Range::::contains::` at fixtures/reject/src/lib.rs:160:8 +unsupported call to `std::ops::RangeTo::::contains::` at fixtures/reject/src/lib.rs:979:11 +unsupported call to ` as std::ops::RangeBounds>::contains::` at fixtures/reject/src/lib.rs:979:32 +unsupported call to `std::ops::Range::<&mut u8>::is_empty` at fixtures/reject/src/lib.rs:984:9 +a `skip` of `std::iter::Zip, {closure@fixtures/reject/src/lib.rs:201:27: 201:31}>, std::iter::Map, {closure@fixtures/reject/src/lib.rs:201:59: 201:63}>>`, a zip std reads by index, of items that drop, which is not supported yet at fixtures/reject/src/lib.rs:202:8 +a `collect` in place of `std::iter::Map, {closure@fixtures/reject/src/lib.rs:208:32: 208:40}>, std::ops::Range>, {closure@fixtures/reject/src/lib.rs:209:24: 209:32}>`, a zip std reads by index, holding values that drop, which is not supported yet at fixtures/reject/src/lib.rs:209:40 +an assignment through a reference to `std::pin::Pin<&mut Noisy>` at fixtures/reject/src/lib.rs:214:2 +a copy of a closure that changes what it captured at fixtures/reject/src/lib.rs:224:14 +`Iterator::scan` of `Option<()>`, whose `None` is `rt.None`, which is not supported yet at fixtures/reject/src/lib.rs:230:11 +hashing `std::collections::BTreeSet` as a key, which is not supported yet at fixtures/reject/src/lib.rs:235:75 +comparing `std::collections::BTreeSet` as a key, which is not supported yet at fixtures/reject/src/lib.rs:235:75 +`HashMap::contains_key` of `std::collections::HashMap` by `u8`, which is not supported yet at fixtures/reject/src/lib.rs:253:6 +`slice::clone_from_slice` of `Reused`, whose `clone_from` is its own, which is not supported yet at fixtures/reject/src/lib.rs:286:4 +a coercion to `std::sync::Arc<[u8]>` at fixtures/reject/src/lib.rs:291:2 +a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string at fixtures/reject/src/lib.rs:331:2 +a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string at fixtures/reject/src/lib.rs:333:27 +a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string at fixtures/reject/src/lib.rs:332:30 a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string at fixtures/reject/src/lib.rs:338:2 -a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string at fixtures/reject/src/lib.rs:340:27 -a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string at fixtures/reject/src/lib.rs:339:30 -a variant of `std::borrow::Cow<'_, str>`, which is not supported: either is the same JS string at fixtures/reject/src/lib.rs:345:2 -unsupported call to `std::borrow::Cow::<'_, [u8]>::is_borrowed` at fixtures/reject/src/lib.rs:350:2 -constructing `std::borrow::Cow<'_, std::sync::Arc>` at fixtures/reject/src/lib.rs:356:53 -hashing `std::vec::Vec` through `Batched`'s own `Hash::hash_slice`, which is not supported yet at fixtures/reject/src/lib.rs:317:16 -passing `{closure@fixtures/reject/src/lib.rs:326:28: 326:35}`, a closure that owns a value that drops, to `Entry::or_insert_with`, which is not supported yet at fixtures/reject/src/lib.rs:326:13 -passing `{closure@fixtures/reject/src/lib.rs:333:13: 333:27}`, which drops, to `str::contains`, which is not supported yet at fixtures/reject/src/lib.rs:333:4 -unsupported call to ` as std::iter::Iterator>::sum::` at fixtures/reject/src/lib.rs:436:17 -unsupported call to ` as std::iter::Iterator>::sum::` at fixtures/reject/src/lib.rs:436:38 -a mutable reference into a `Result`'s payload, passed on or kept at fixtures/reject/src/lib.rs:369:12 -unsupported call to ` as std::cmp::PartialEq>::eq` at fixtures/reject/src/lib.rs:376:2 -`Bytes::from_owner` of `std::sync::Arc<[u8]>`, which would drop with the last clone of what it makes, which is not supported at fixtures/reject/src/lib.rs:381:2 -`BytesMut::capacity`, which reads a capacity that depends on whether the other handles of its storage dropped, which is not supported at fixtures/reject/src/lib.rs:390:6 -`BufMut::put` of `Counted` into a `BytesMut`, which picks the methods it calls by a capacity that depends on whether the other handles of its storage dropped, which is not supported at fixtures/reject/src/lib.rs:396:2 -unsupported call to `core::str::::parse::` at fixtures/reject/src/lib.rs:441:4 -unsupported type `std::net::Ipv4Addr` from another crate at fixtures/reject/src/lib.rs:440:32 -unsupported type `std::net::AddrParseError` from another crate at fixtures/reject/src/lib.rs:440:32 -a coercion to `std::sync::Weak`, which is not supported yet at fixtures/reject/src/lib.rs:457:40 -`dyn Scaled`, a trait object of the generic trait `Scaled`, which is not supported yet at fixtures/reject/src/lib.rs:466:23 -`dyn Scaled`, a trait object of the generic trait `Scaled`, which is not supported yet at fixtures/reject/src/lib.rs:467:4 -a trait object of `[u8; 4]`, which is not supported yet at fixtures/reject/src/lib.rs:483:26 -a coercion to `&Tail`, which is not supported yet at fixtures/reject/src/lib.rs:493:30 -`Waiting>` is not supported: its field `poll` is `Poll`, typed `rt.Poll`, whose `Pending` would be `rt.OuterPending` as `Poll>` at fixtures/reject/src/lib.rs:504:2 -a copy of a closure that changes what it captured at fixtures/reject/src/lib.rs:516:14 -a copy of a closure that changes what it captured at fixtures/reject/src/lib.rs:517:14 -an upcast from `dyn Keyed` to `dyn std::any::Any`, which is not supported yet at fixtures/reject/src/lib.rs:534:32 -`std::any::Any::type_id` of `dyn std::any::Any`, which is not supported yet at fixtures/reject/src/lib.rs:540:4 -unsupported call to `std::any::TypeId::of::` at fixtures/reject/src/lib.rs:540:17 -unsupported call to `::eq` at fixtures/reject/src/lib.rs:540:2 -a cast from a pointer to `u32` to one to `u8`, which reads the bytes of one type as another at fixtures/reject/src/lib.rs:557:27 -a pointer's address, which JS has no counterpart of at fixtures/reject/src/lib.rs:562:17 -unsupported call to `std::alloc::Layout::new::` at fixtures/reject/src/lib.rs:567:15 -unsupported call to `std::alloc::alloc` at fixtures/reject/src/lib.rs:569:11 -unsupported call to `std::alloc::dealloc` at fixtures/reject/src/lib.rs:572:3 -a raw pointer to `std::vec::Vec` behind a reference, which is the object and not where it is kept at fixtures/reject/src/lib.rs:579:10 -union `Bits`, whose fields overlap in `u32` and `f64`, which JS keeps apart at fixtures/reject/src/lib.rs:590:10 -comparing pointers to `u32`, each a place JS makes of its own at fixtures/reject/src/lib.rs:598:2 -comparing pointers to `u32`, each a place JS makes of its own at fixtures/reject/src/lib.rs:2147:2 -a raw pointer to `(u32, u32)` in `Span2`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:610:10 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:618:10 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:626:10 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:635:10 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:643:10 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:652:10 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:660:10 -a reference to `std::cell::UnsafeCell`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1657:18 -a raw pointer to `Target` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1671:10 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1684:10 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1699:10 -a reference to `Behind`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1753:22 -a reference to `Unboxed`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1768:16 -a reference to `Deep`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1789:18 -a reference to `Slotted`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1811:21 -a reference to `Shared`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1830:20 -a reference to `Inside`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1847:20 -a reference to `Inside`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1860:26 -a reference to `Wrapped>`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1936:21 -a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Replaced`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1959:20 -a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Swapped`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1977:20 -a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Taken`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1995:20 -a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Assigned`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:2014:20 -a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Deeper`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:2040:22 -a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Dynamic`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:2064:20 -a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Closed`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:2080:15 -a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `[std::cell::UnsafeCell; 2]`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:2093:20 -a reference to `Compared`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1875:22 -a reference to `Enclosing`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1892:22 -a reference to `Chosen`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1908:17 -a reference to `[u8; 4]`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1921:19 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1003:26 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1016:22 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1026:12 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1035:10 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1045:17 -a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1050:10 -a raw pointer to `(u32, u32)` in `Window`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:671:2 -a raw pointer to `(u32, u32)` in an element, a payload, or a union field, which is not supported yet at fixtures/reject/src/lib.rs:681:10 -a raw pointer to `(u32, u32)` in `std::cell::UnsafeCell<(u32, u32)>`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:689:15 -a raw pointer to `std::cell::UnsafeCell` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:698:15 -a raw pointer to `std::cell::UnsafeCell` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:711:15 -a raw pointer to `std::cell::UnsafeCell` in `Hits`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:722:21 -a raw pointer to a place of `()`, which has no address of its own at fixtures/reject/src/lib.rs:730:15 -a raw pointer to a place of `()`, which has no address of its own at fixtures/reject/src/lib.rs:730:29 -comparing pointers to `Fused`, which has no bytes and so no address of its own at fixtures/reject/src/lib.rs:730:70 -a dangling pointer to `Only`, a value of no bytes made of more than structs and tuples at fixtures/reject/src/lib.rs:739:11 -`Buf::copy_to_bytes` of `Blank`, a value JS copies, which is not supported at fixtures/reject/src/lib.rs:763:2 -unsupported call to ` as std::iter::Iterator>::is_sorted` at fixtures/reject/src/lib.rs:768:15 -comparing pointers to `u32` in an atomic, which JS has no address of at fixtures/reject/src/lib.rs:779:15 -a constant of type `&u32`, a pointer into memory translation can't name at fixtures/reject/src/lib.rs:780:3 -passing `{closure@fixtures/reject/src/lib.rs:786:11: 786:19}`, which drops, to `String::retain`, which is not supported yet at fixtures/reject/src/lib.rs:786:4 -a raw pointer to `(u32, u32)` in `Plain`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:828:10 -a raw pointer to `(u32, u32)` in `Track`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:854:19 -a raw pointer to `(u32, u32)` in `Lane`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:874:19 -a raw pointer to `(u32, u32)` in `Gap`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:910:10 -a raw pointer to `(u32, u32)` in `Gap`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:911:10 -a raw pointer to `(u32, u32)` in `Gap`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:912:58 -a raw pointer to `std::mem::MaybeUninit<(u32, u32)>` in `Gap`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:924:19 -a raw pointer to `std::mem::MaybeUninit<(u32, u32)>` in `Gap`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:925:19 -`collect` of `std::collections::BTreeMap, Noisy>`, which sorts by `std::cell::Cell`'s own `Ord`, of entries that drop, which is not supported yet at fixtures/reject/src/lib.rs:957:22 -a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Looped`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1112:26 -a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Aliased`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1122:29 -a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Rewritten`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1132:47 -a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Loaded`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1144:29 -a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Mapped`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1189:39 -a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Repeated`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1223:18 -a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Onced`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1235:46 -`std::iter::once` with a mutable reference to a value JS copies, which its mapping would copy at fixtures/reject/src/lib.rs:1237:22 -a raw pointer to `(u16, u16)` in `Pushed`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1250:22 -`Extend` of `(std::vec::Vec, Tens)` by `(u8, u8)`, whose `Tens` of `u8` is not supported yet at fixtures/reject/src/lib.rs:1274:31 -unsupported call to `core::num::::is_ascii_octdigit` at fixtures/reject/src/lib.rs:1279:4 -a reference through which a raw pointer may be made into `InArray` in `[InArray; 2]`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1339:33 -a reference through which a raw pointer may be made into `InTuple` in `(u16, InTuple)`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1348:33 -a reference through which a raw pointer may be made into `Mid` in `Outer`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1357:34 -a reference through which a raw pointer may be made into `InPayload` in an element, a payload, or a union field, which is not supported yet at fixtures/reject/src/lib.rs:1366:11 -a reference through which a raw pointer may be made into `Mid` in `Outer`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1378:33 -a reference through which a raw pointer may be made into `Mid` in `Outer`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1391:35 -a reference through which a raw pointer may be made into `InWritten` in `[InWritten; 1]`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1400:35 -a raw pointer to `std::cell::UnsafeCell` in `ByRead`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1457:35 -a raw pointer to `std::cell::UnsafeCell` in `ByWrite`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1470:35 -a raw pointer to `std::cell::UnsafeCell` in `BySwap`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1483:35 -a raw pointer to `std::cell::UnsafeCell` in `ByReplace`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1495:35 -a raw pointer to `std::cell::UnsafeCell` in `ByBox`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1506:35 -a raw pointer to `std::cell::UnsafeCell` in `ByClosure`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1521:35 -a raw pointer to `std::cell::UnsafeCell` in `ByObject`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1534:35 -a raw pointer to `std::cell::UnsafeCell` in `ByInstance`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1547:35 -a raw pointer to `std::cell::UnsafeCell` in `BySwapped`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1556:76 -a raw pointer to `std::cell::UnsafeCell` in `ByExchanged`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1567:30 -a raw pointer to `ByRefReplace` in `(u16, ByRefReplace)`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1599:32 -a raw pointer to `ByRefTake` in `(u16, ByRefTake)`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1607:32 -a raw pointer to `ByKeySet` in `(u16, ByKeySet)`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1615:51 -a raw pointer to `ByKeyReplace` in `(u16, ByKeyReplace)`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1623:55 -a raw pointer to `ByKeyTake` in `(u16, ByKeyTake)`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1630:52 -unsupported call to `core::str::::as_bytes_mut` at fixtures/reject/src/lib.rs:1638:13 -`core::str::::get_unchecked_mut` with a mutable reference to a value JS copies, which its mapping would copy at fixtures/reject/src/lib.rs:1639:13 -`std::str::from_utf8_mut` with a mutable reference to a value JS copies, which its mapping would copy at fixtures/reject/src/lib.rs:1644:20 -unsupported call to `std::ptr::copy::<[u8; 4]>` at fixtures/reject/src/lib.rs:1712:3 -unsupported call to `std::ptr::copy_nonoverlapping::<[u8; 4]>` at fixtures/reject/src/lib.rs:1713:3 -unsupported call to `std::ptr::addr_eq::<[u8; 4], [u8; 4]>` at fixtures/reject/src/lib.rs:1714:14 -comparing `*mut [u8; 4]` at fixtures/reject/src/lib.rs:1714:41 -a cast from a pointer to `[u8; 4]` to one to `u8`, which reads the bytes of one type as another at fixtures/reject/src/lib.rs:1715:17 -a cast from `*const [u8; 4]` to `*const u8`, which reads the bytes of one type as another at fixtures/reject/src/lib.rs:1715:33 -unsupported call to `std::ptr::mut_ptr::::add` at fixtures/reject/src/lib.rs:1715:56 -unsupported call to `std::ptr::const_ptr::::offset` at fixtures/reject/src/lib.rs:1715:73 -a coercion of `*const [u8; 4]` to `*const [u8]`, a pointer to a slice at fixtures/reject/src/lib.rs:1716:28 -hashing `*const [u8; 4]` by its address, which JS has no counterpart of at fixtures/reject/src/lib.rs:1718:5 -unsupported call to `std::ptr::const_ptr::::len` at fixtures/reject/src/lib.rs:1719:58 -a raw pointer to `[u8; 3]` in an element, a payload, or a union field, which is not supported yet at fixtures/reject/src/lib.rs:1728:15 -a raw pointer to `[u8; 3]` in an element, a payload, or a union field, which is not supported yet at fixtures/reject/src/lib.rs:1728:18 -a raw pointer to `[u8; 2]` in an element, a payload, or a union field, which is not supported yet at fixtures/reject/src/lib.rs:1728:37 -a raw pointer to `[u8; 2]` in an element, a payload, or a union field, which is not supported yet at fixtures/reject/src/lib.rs:1728:44 -a reference to `[u8; 4]`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1735:26 -a raw pointer to `[u8; 4]` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1735:26 -a raw pointer to `[u8; 4]` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1736:10 -const generic types are not supported: `Block` at fixtures/reject/src/lib.rs:2103:21 -`std::collections::LinkedList::::retain` with a mutable reference to a value JS copies, which its mapping would copy at fixtures/reject/src/lib.rs:2119:4 -`clone_from` of `std::collections::LinkedList`, whose items' `clone_from` is their own, which is not supported yet at fixtures/reject/src/lib.rs:2120:4 -`std::default::Default::default` with a mutable reference to a value JS copies, which its mapping would copy at fixtures/reject/src/lib.rs:2121:2 -a mapped guard of `{closure@fixtures/reject/src/lib.rs:2153:38: 2153:50}`, which JS can't write in place at fixtures/reject/src/lib.rs:2154:10 -overriding `Iterator::fold`, which std's adaptors call in place of `next` or beside it at fixtures/reject/src/lib.rs:132:2 -an iterator of the crate implementing `DoubleEndedIterator`, which is not supported yet at fixtures/reject/src/lib.rs:152:1 -overriding `Iterator::size_hint`, which std's adaptors call in place of `next` or beside it at fixtures/reject/src/lib.rs:180:2 -an iterator of the crate implementing `FusedIterator`, which is not supported yet at fixtures/reject/src/lib.rs:200:1 -`Hasher::write`, which is not supported yet at fixtures/reject/src/lib.rs:268:9 -a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Escaped`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1074:43 -a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Called`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1088:28 -a raw pointer to `(u16, u16)` in `Copied`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1178:31 -a raw pointer to `std::cell::UnsafeCell` in `InArray`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1304:9 -a raw pointer to `std::cell::UnsafeCell` in `InTuple`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1308:9 -a raw pointer to `std::cell::UnsafeCell` in `InNested`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1312:9 -a raw pointer to `std::cell::UnsafeCell` in `InPayload`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1316:9 -a raw pointer to `std::cell::UnsafeCell` in `InField`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1320:9 -a raw pointer to `std::cell::UnsafeCell` in `InGeneric`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1324:9 -a raw pointer to `std::cell::UnsafeCell` in `InWritten`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1328:9 -a reference to `std::option::Option>`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:2110:13 +unsupported call to `std::borrow::Cow::<'_, [u8]>::is_borrowed` at fixtures/reject/src/lib.rs:343:2 +constructing `std::borrow::Cow<'_, std::sync::Arc>` at fixtures/reject/src/lib.rs:349:53 +hashing `std::vec::Vec` through `Batched`'s own `Hash::hash_slice`, which is not supported yet at fixtures/reject/src/lib.rs:310:16 +passing `{closure@fixtures/reject/src/lib.rs:319:28: 319:35}`, a closure that owns a value that drops, to `Entry::or_insert_with`, which is not supported yet at fixtures/reject/src/lib.rs:319:13 +passing `{closure@fixtures/reject/src/lib.rs:326:13: 326:27}`, which drops, to `str::contains`, which is not supported yet at fixtures/reject/src/lib.rs:326:4 +unsupported call to ` as std::iter::Iterator>::sum::` at fixtures/reject/src/lib.rs:429:17 +unsupported call to ` as std::iter::Iterator>::sum::` at fixtures/reject/src/lib.rs:429:38 +a mutable reference into a `Result`'s payload, passed on or kept at fixtures/reject/src/lib.rs:362:12 +unsupported call to ` as std::cmp::PartialEq>::eq` at fixtures/reject/src/lib.rs:369:2 +`Bytes::from_owner` of `std::sync::Arc<[u8]>`, which would drop with the last clone of what it makes, which is not supported at fixtures/reject/src/lib.rs:374:2 +`BytesMut::capacity`, which reads a capacity that depends on whether the other handles of its storage dropped, which is not supported at fixtures/reject/src/lib.rs:383:6 +`BufMut::put` of `Counted` into a `BytesMut`, which picks the methods it calls by a capacity that depends on whether the other handles of its storage dropped, which is not supported at fixtures/reject/src/lib.rs:389:2 +unsupported call to `core::str::::parse::` at fixtures/reject/src/lib.rs:434:4 +unsupported type `std::net::Ipv4Addr` from another crate at fixtures/reject/src/lib.rs:433:32 +unsupported type `std::net::AddrParseError` from another crate at fixtures/reject/src/lib.rs:433:32 +a coercion to `std::sync::Weak`, which is not supported yet at fixtures/reject/src/lib.rs:450:40 +`dyn Scaled`, a trait object of the generic trait `Scaled`, which is not supported yet at fixtures/reject/src/lib.rs:459:23 +`dyn Scaled`, a trait object of the generic trait `Scaled`, which is not supported yet at fixtures/reject/src/lib.rs:460:4 +a trait object of `[u8; 4]`, which is not supported yet at fixtures/reject/src/lib.rs:476:26 +a coercion to `&Tail`, which is not supported yet at fixtures/reject/src/lib.rs:486:30 +`Waiting>` is not supported: its field `poll` is `Poll`, typed `rt.Poll`, whose `Pending` would be `rt.OuterPending` as `Poll>` at fixtures/reject/src/lib.rs:497:2 +a copy of a closure that changes what it captured at fixtures/reject/src/lib.rs:509:14 +a copy of a closure that changes what it captured at fixtures/reject/src/lib.rs:510:14 +an upcast from `dyn Keyed` to `dyn std::any::Any`, which is not supported yet at fixtures/reject/src/lib.rs:527:32 +`std::any::Any::type_id` of `dyn std::any::Any`, which is not supported yet at fixtures/reject/src/lib.rs:533:4 +unsupported call to `std::any::TypeId::of::` at fixtures/reject/src/lib.rs:533:17 +unsupported call to `::eq` at fixtures/reject/src/lib.rs:533:2 +a cast from a pointer to `u32` to one to `u8`, which reads the bytes of one type as another at fixtures/reject/src/lib.rs:550:27 +a pointer's address, which JS has no counterpart of at fixtures/reject/src/lib.rs:555:17 +unsupported call to `std::alloc::Layout::new::` at fixtures/reject/src/lib.rs:560:15 +unsupported call to `std::alloc::alloc` at fixtures/reject/src/lib.rs:562:11 +unsupported call to `std::alloc::dealloc` at fixtures/reject/src/lib.rs:565:3 +a raw pointer to `std::vec::Vec` behind a reference, which is the object and not where it is kept at fixtures/reject/src/lib.rs:572:10 +union `Bits`, whose fields overlap in `u32` and `f64`, which JS keeps apart at fixtures/reject/src/lib.rs:583:10 +comparing pointers to `u32`, each a place JS makes of its own at fixtures/reject/src/lib.rs:591:2 +comparing pointers to `u32`, each a place JS makes of its own at fixtures/reject/src/lib.rs:2140:2 +a raw pointer to `(u32, u32)` in `Span2`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:603:10 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:611:10 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:619:10 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:628:10 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:636:10 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:645:10 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:653:10 +a reference to `std::cell::UnsafeCell`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1650:18 +a raw pointer to `Target` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1664:10 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1677:10 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1692:10 +a reference to `Behind`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1746:22 +a reference to `Unboxed`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1761:16 +a reference to `Deep`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1782:18 +a reference to `Slotted`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1804:21 +a reference to `Shared`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1823:20 +a reference to `Inside`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1840:20 +a reference to `Inside`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1853:26 +a reference to `Wrapped>`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1929:21 +a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Replaced`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1952:20 +a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Swapped`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1970:20 +a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Taken`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1988:20 +a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Assigned`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:2007:20 +a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Deeper`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:2033:22 +a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Dynamic`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:2057:20 +a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `Closed`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:2073:15 +a reference through which a raw pointer may be made into `std::cell::UnsafeCell` in `[std::cell::UnsafeCell; 2]`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:2086:20 +a reference to `Compared`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1868:22 +a reference to `Enclosing`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1885:22 +a reference to `Chosen`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1901:17 +a reference to `[u8; 4]`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1914:19 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:996:26 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1009:22 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1019:12 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1028:10 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1038:17 +a raw pointer to `(u32, u32)` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1043:10 +a raw pointer to `(u32, u32)` in `Window`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:664:2 +a raw pointer to `(u32, u32)` in an element, a payload, or a union field, which is not supported yet at fixtures/reject/src/lib.rs:674:10 +a raw pointer to `(u32, u32)` in `std::cell::UnsafeCell<(u32, u32)>`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:682:15 +a raw pointer to `std::cell::UnsafeCell` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:691:15 +a raw pointer to `std::cell::UnsafeCell` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:704:15 +a raw pointer to `std::cell::UnsafeCell` in `Hits`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:715:21 +a raw pointer to a place of `()`, which has no address of its own at fixtures/reject/src/lib.rs:723:15 +a raw pointer to a place of `()`, which has no address of its own at fixtures/reject/src/lib.rs:723:29 +comparing pointers to `Fused`, which has no bytes and so no address of its own at fixtures/reject/src/lib.rs:723:70 +a dangling pointer to `Only`, a value of no bytes made of more than structs and tuples at fixtures/reject/src/lib.rs:732:11 +`Buf::copy_to_bytes` of `Blank`, a value JS copies, which is not supported at fixtures/reject/src/lib.rs:756:2 +unsupported call to ` as std::iter::Iterator>::is_sorted` at fixtures/reject/src/lib.rs:761:15 +comparing pointers to `u32` in an atomic, which JS has no address of at fixtures/reject/src/lib.rs:772:15 +a constant of type `&u32`, a pointer into memory translation can't name at fixtures/reject/src/lib.rs:773:3 +passing `{closure@fixtures/reject/src/lib.rs:779:11: 779:19}`, which drops, to `String::retain`, which is not supported yet at fixtures/reject/src/lib.rs:779:4 +a raw pointer to `(u32, u32)` in `Plain`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:821:10 +a raw pointer to `(u32, u32)` in `Track`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:847:19 +a raw pointer to `(u32, u32)` in `Lane`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:867:19 +a raw pointer to `(u32, u32)` in `Gap`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:903:10 +a raw pointer to `(u32, u32)` in `Gap`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:904:10 +a raw pointer to `(u32, u32)` in `Gap`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:905:58 +a raw pointer to `std::mem::MaybeUninit<(u32, u32)>` in `Gap`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:917:19 +a raw pointer to `std::mem::MaybeUninit<(u32, u32)>` in `Gap`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:918:19 +`collect` of `std::collections::BTreeMap, Noisy>`, which sorts by `std::cell::Cell`'s own `Ord`, of entries that drop, which is not supported yet at fixtures/reject/src/lib.rs:950:22 +a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Looped`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1105:26 +a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Aliased`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1115:29 +a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Rewritten`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1125:47 +a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Loaded`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1137:29 +a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Mapped`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1182:39 +a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Repeated`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1216:18 +a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Onced`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1228:46 +`std::iter::once` with a mutable reference to a value JS copies, which its mapping would copy at fixtures/reject/src/lib.rs:1230:22 +a raw pointer to `(u16, u16)` in `Pushed`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1243:22 +`Extend` of `(std::vec::Vec, Tens)` by `(u8, u8)`, whose `Tens` of `u8` is not supported yet at fixtures/reject/src/lib.rs:1267:31 +unsupported call to `core::num::::is_ascii_octdigit` at fixtures/reject/src/lib.rs:1272:4 +a reference through which a raw pointer may be made into `InArray` in `[InArray; 2]`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1332:33 +a reference through which a raw pointer may be made into `InTuple` in `(u16, InTuple)`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1341:33 +a reference through which a raw pointer may be made into `Mid` in `Outer`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1350:34 +a reference through which a raw pointer may be made into `InPayload` in an element, a payload, or a union field, which is not supported yet at fixtures/reject/src/lib.rs:1359:11 +a reference through which a raw pointer may be made into `Mid` in `Outer`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1371:33 +a reference through which a raw pointer may be made into `Mid` in `Outer`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1384:35 +a reference through which a raw pointer may be made into `InWritten` in `[InWritten; 1]`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1393:35 +a raw pointer to `std::cell::UnsafeCell` in `ByRead`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1450:35 +a raw pointer to `std::cell::UnsafeCell` in `ByWrite`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1463:35 +a raw pointer to `std::cell::UnsafeCell` in `BySwap`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1476:35 +a raw pointer to `std::cell::UnsafeCell` in `ByReplace`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1488:35 +a raw pointer to `std::cell::UnsafeCell` in `ByBox`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1499:35 +a raw pointer to `std::cell::UnsafeCell` in `ByClosure`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1514:35 +a raw pointer to `std::cell::UnsafeCell` in `ByObject`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1527:35 +a raw pointer to `std::cell::UnsafeCell` in `ByInstance`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1540:35 +a raw pointer to `std::cell::UnsafeCell` in `BySwapped`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1549:76 +a raw pointer to `std::cell::UnsafeCell` in `ByExchanged`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1560:30 +a raw pointer to `ByRefReplace` in `(u16, ByRefReplace)`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1592:32 +a raw pointer to `ByRefTake` in `(u16, ByRefTake)`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1600:32 +a raw pointer to `ByKeySet` in `(u16, ByKeySet)`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1608:51 +a raw pointer to `ByKeyReplace` in `(u16, ByKeyReplace)`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1616:55 +a raw pointer to `ByKeyTake` in `(u16, ByKeyTake)`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1623:52 +unsupported call to `core::str::::as_bytes_mut` at fixtures/reject/src/lib.rs:1631:13 +`core::str::::get_unchecked_mut` with a mutable reference to a value JS copies, which its mapping would copy at fixtures/reject/src/lib.rs:1632:13 +`std::str::from_utf8_mut` with a mutable reference to a value JS copies, which its mapping would copy at fixtures/reject/src/lib.rs:1637:20 +unsupported call to `std::ptr::copy::<[u8; 4]>` at fixtures/reject/src/lib.rs:1705:3 +unsupported call to `std::ptr::copy_nonoverlapping::<[u8; 4]>` at fixtures/reject/src/lib.rs:1706:3 +unsupported call to `std::ptr::addr_eq::<[u8; 4], [u8; 4]>` at fixtures/reject/src/lib.rs:1707:14 +comparing `*mut [u8; 4]` at fixtures/reject/src/lib.rs:1707:41 +a cast from a pointer to `[u8; 4]` to one to `u8`, which reads the bytes of one type as another at fixtures/reject/src/lib.rs:1708:17 +a cast from `*const [u8; 4]` to `*const u8`, which reads the bytes of one type as another at fixtures/reject/src/lib.rs:1708:33 +unsupported call to `std::ptr::mut_ptr::::add` at fixtures/reject/src/lib.rs:1708:56 +unsupported call to `std::ptr::const_ptr::::offset` at fixtures/reject/src/lib.rs:1708:73 +a coercion of `*const [u8; 4]` to `*const [u8]`, a pointer to a slice at fixtures/reject/src/lib.rs:1709:28 +hashing `*const [u8; 4]` by its address, which JS has no counterpart of at fixtures/reject/src/lib.rs:1711:5 +unsupported call to `std::ptr::const_ptr::::len` at fixtures/reject/src/lib.rs:1712:58 +a raw pointer to `[u8; 3]` in an element, a payload, or a union field, which is not supported yet at fixtures/reject/src/lib.rs:1721:15 +a raw pointer to `[u8; 3]` in an element, a payload, or a union field, which is not supported yet at fixtures/reject/src/lib.rs:1721:18 +a raw pointer to `[u8; 2]` in an element, a payload, or a union field, which is not supported yet at fixtures/reject/src/lib.rs:1721:37 +a raw pointer to `[u8; 2]` in an element, a payload, or a union field, which is not supported yet at fixtures/reject/src/lib.rs:1721:44 +a reference to `[u8; 4]`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:1728:26 +a raw pointer to `[u8; 4]` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1728:26 +a raw pointer to `[u8; 4]` in a variable assigned again while it may point there at fixtures/reject/src/lib.rs:1729:10 +const generic types are not supported: `Block` at fixtures/reject/src/lib.rs:2096:21 +`std::collections::LinkedList::::retain` with a mutable reference to a value JS copies, which its mapping would copy at fixtures/reject/src/lib.rs:2112:4 +`clone_from` of `std::collections::LinkedList`, whose items' `clone_from` is their own, which is not supported yet at fixtures/reject/src/lib.rs:2113:4 +`std::default::Default::default` with a mutable reference to a value JS copies, which its mapping would copy at fixtures/reject/src/lib.rs:2114:2 +a mapped guard of `{closure@fixtures/reject/src/lib.rs:2146:38: 2146:50}`, which JS can't write in place at fixtures/reject/src/lib.rs:2147:10 +overriding `Iterator::fold`, which std's adaptors call in place of `next` or beside it at fixtures/reject/src/lib.rs:125:2 +an iterator of the crate implementing `DoubleEndedIterator`, which is not supported yet at fixtures/reject/src/lib.rs:145:1 +overriding `Iterator::size_hint`, which std's adaptors call in place of `next` or beside it at fixtures/reject/src/lib.rs:173:2 +an iterator of the crate implementing `FusedIterator`, which is not supported yet at fixtures/reject/src/lib.rs:193:1 +`Hasher::write`, which is not supported yet at fixtures/reject/src/lib.rs:261:9 +a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Escaped`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1067:43 +a raw pointer to `std::cell::UnsafeCell<(u16, u16)>` in `Called`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1081:28 +a raw pointer to `(u16, u16)` in `Copied`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1171:31 +a raw pointer to `std::cell::UnsafeCell` in `InArray`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1297:9 +a raw pointer to `std::cell::UnsafeCell` in `InTuple`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1301:9 +a raw pointer to `std::cell::UnsafeCell` in `InNested`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1305:9 +a raw pointer to `std::cell::UnsafeCell` in `InPayload`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1309:9 +a raw pointer to `std::cell::UnsafeCell` in `InField`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1313:9 +a raw pointer to `std::cell::UnsafeCell` in `InGeneric`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1317:9 +a raw pointer to `std::cell::UnsafeCell` in `InWritten`, which the crate may put another object in place of at fixtures/reject/src/lib.rs:1321:9 +a reference to `std::option::Option>`, through which a raw pointer may be made, in a variable assigned again while that pointer may point there at fixtures/reject/src/lib.rs:2103:13 diff --git a/ts/fixtures/reject/src/lib.rs b/ts/fixtures/reject/src/lib.rs index 279bfe6e7..ceb01a3dc 100644 --- a/ts/fixtures/reject/src/lib.rs +++ b/ts/fixtures/reject/src/lib.rs @@ -44,13 +44,6 @@ impl Drop for Noisy { fn drop(&mut self) {} } -/// An async closure is a coroutine closure, not an async body. -pub fn async_closure() -> u8 { - let f = async || 1u8; - drop(f); - 0 -} - /// A pointer's address, which JS has no counterpart of. pub fn pointer(n: u8) -> String { format!("{:p}", &n) diff --git a/ts/fixtures/reject/ts.toml b/ts/fixtures/reject/ts.toml index 532e7378e..3cee45be3 100644 --- a/ts/fixtures/reject/ts.toml +++ b/ts/fixtures/reject/ts.toml @@ -7,7 +7,6 @@ roots = [ "scanned", "generic_unit", "Noisy", - "async_closure", "pointer", "written", "statics", diff --git a/ts/fixtures/task/expected/closures.ts b/ts/fixtures/task/expected/closures.ts new file mode 100644 index 000000000..875bb2df5 --- /dev/null +++ b/ts/fixtures/task/expected/closures.ts @@ -0,0 +1,1390 @@ +// Generated by rust2-ts. Do not edit. + +import * as rt from "./rt.ts"; +import { unwrapOr$1tvry1i as option_unwrapOr$1tvry1i, map$1cf8u0y as option_map$1cf8u0y } from "./core/option.ts"; +import { recvFuture$kio_Consumer } from "./kio.ts"; +import type * as Consumer from "./kio.Consumer.ts"; +import * as Log from "./log.Log.ts"; +import * as Guard from "./model.Guard.ts"; + +/** + * Values read from the channel through async closures, summed. A closure that borrows + * the channel, a list, and a count mutably is called directly and through `AsyncFnMut`; + * one that owns a count changes its own; an owning one, called through `AsyncFnOnce`, + * moves its guard into its future, which drops it as it returns or is cancelled; one + * that only borrows is called through `AsyncFn` and through `Fn`, a future of its own + * each call, and so is one that captures nothing; one that moves its guard out is called + * once; one made by a function holds a copy of its argument; one that owns a guard, + * called through `AsyncFn`, is then consumed through `FnOnce`; a box of one that owns + * a guard is consumed through `AsyncFnOnce`; and ones that own guards are consumed by + * `Option::get_or_insert_with` and through a `dyn FnOnce`, their futures awaited or + * dropped before their first poll. A clone of the one that owns a count changes its own. A + * cancel drops what the future in flight holds, then the closures, in reverse. + */ +export function closures(rx: Consumer.Consumer, guard: Guard.Guard): rt.Future { + return new closuresFuture(rx, guard); +} + +export class closuresFuture { + #state: number = 0; + #rx: Consumer.Consumer; + #guard: Guard.Guard; + #id!: rt.u32; + #log!: Log.Log; + #seen!: Array; + #reads!: rt.u32; + #next!: (a0: rt.u64) => rt.Future; + #first!: rt.u64 | undefined; + #awaitee!: rt.Future; + #second!: rt.u64 | undefined; + #count!: rt.u32; + #tally!: (a0: rt.u32) => rt.Future; + #awaitee$2!: rt.Future; + #copy!: (a0: rt.u32) => rt.Future; + #tallied!: [rt.u32, rt.u32, rt.u32]; + #saved!: rt.u32; + #saved$2!: rt.u32; + #third!: rt.u64; + #awaitee$3!: rt.Future; + #lent!: Guard.Guard; + #peek!: (a0: rt.u64) => rt.Future; + #fourth!: rt.u64; + #add!: (a0: rt.u64) => rt.Future; + #finish!: (a0: rt.u64) => rt.Future; + #fifth!: rt.u64; + #saved$3!: (a0: rt.u64) => rt.Future; + #sixth!: rt.u64; + #unpolled!: Guard.Guard; + #slot!: rt.Future | undefined; + #saved$4!: boolean; + + constructor(rx: Consumer.Consumer, guard: Guard.Guard) { + this.#rx = rx; + this.#guard = guard; + } + + [Symbol.dispose](): void { + b0: { + b1: { + if (this.#state === 0) { + this.#rx[Symbol.dispose](); + this.#guard[Symbol.dispose](); + return; + } + if (this.#state === 3) { + rt.drop(this.#awaitee); + break b0; + } + if (this.#state === 4) { + rt.drop(this.#awaitee); + break b0; + } + if (this.#state === 5) { + rt.drop(this.#awaitee$2); + break b0; + } + if (this.#state === 6) { + rt.drop(this.#awaitee$2); + break b0; + } + if (this.#state === 7) { + rt.drop(this.#awaitee$2); + break b0; + } + if (this.#state === 8) { + rt.drop(this.#awaitee$3); + break b0; + } + if (this.#state === 9) { + rt.drop(this.#awaitee$3); + break b1; + } + if (this.#state === 10) { + rt.drop(this.#awaitee$3); + break b1; + } + if (this.#state === 11) { + rt.drop(this.#awaitee$3); + break b1; + } + if (this.#state === 12) { + rt.drop(this.#awaitee$2); + break b1; + } + if (this.#state === 13) { + rt.drop(this.#awaitee$3); + } else if (this.#state === 14) { + rt.drop(this.#awaitee$3); + } else if (this.#state === 15) { + rt.drop(this.#awaitee); + rt.drop(this.#saved$3); + } else if (this.#state === 16) { + rt.drop(this.#awaitee$3); + } else if (this.#state === 17) { + rt.drop(this.#awaitee$3); + } else if (this.#state === 18) { + rt.drop(this.#awaitee$2); + this.#unpolled[Symbol.dispose](); + } else { + return; + } + if (this.#saved$4) { + rt.drop(this.#finish); + } + this.#saved$4 = false; + } + this.#lent[Symbol.dispose](); + } + this.#log[Symbol.dispose](); + this.#guard[Symbol.dispose](); + this.#rx[Symbol.dispose](); + } + + poll(_2: rt.Context): rt.Poll { + b0: { + b1: { + b2: { + b3: { + b4: { + b5: { + b6: { + b7: { + b8: { + b9: { + b10: { + b11: { + b12: { + b13: { + b14: { + if (this.#state === 0) { + this.#saved$4 = false; + const _3: [rt.u32, Log.Log] = [Guard.id(this.#guard), Log.clone$Clone(Guard.log(this.#guard))]; + this.#id = _3[0]; + this.#log = _3[1]; + this.#seen = []; + this.#reads = 0; + this.#next = (scale: rt.u64): rt.Future => { + return new closuresFuture$closure0_closure0(scale, this.#rx, this.#seen, rt.place(() => this.#reads, (value) => this.#reads = value)); + }; + this.#awaitee = this.#next(1); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } else if (this.#state !== 3) { + if (this.#state === 4) { + break b14; + } + if (this.#state === 5) { + break b13; + } + if (this.#state === 6) { + break b12; + } + if (this.#state === 7) { + break b11; + } + if (this.#state === 8) { + break b10; + } + if (this.#state === 9) { + break b9; + } + if (this.#state === 10) { + break b8; + } + if (this.#state === 11) { + break b7; + } + if (this.#state === 12) { + break b6; + } + if (this.#state === 13) { + break b5; + } + if (this.#state === 14) { + break b4; + } + if (this.#state === 15) { + break b3; + } + if (this.#state === 16) { + break b2; + } + if (this.#state === 17) { + break b1; + } + break b0; + } + const _16: rt.Poll = this.#awaitee.poll(_2); + if (_16 !== rt.Pending) { + this.#first = _16; + rt.drop(this.#awaitee); + this.#awaitee = new twiceFuture$closures_closures_closure0_closure0(this.#next); + } else { + this.#state = 3; + return rt.Pending; + } + } + const _27: rt.Poll = this.#awaitee.poll(_2); + if (_27 !== rt.Pending) { + this.#second = _27; + rt.drop(this.#awaitee); + this.#count = this.#reads; + const make2 = (captured: rt.u32): (a0: rt.u32) => rt.Future => { + return rt.cloning((by: rt.u32): rt.Future => { + return new closuresFuture$closure1_closure0(by, rt.place(() => captured, (value2) => captured = value2)); + }, () => make2(captured)); + }; + this.#tally = make2(this.#count); + this.#awaitee$2 = this.#tally(10); + } else { + this.#state = 4; + return rt.Pending; + } + } + const _39: rt.Poll = this.#awaitee$2.poll(_2); + if (_39 !== rt.Pending) { + const once: rt.u32 = _39; + rt.drop(this.#awaitee$2); + this.#copy = rt.closureClone(this.#tally); + this.#saved = once; + this.#awaitee$2 = this.#copy(100); + } else { + this.#state = 5; + return rt.Pending; + } + } + const _52: rt.Poll = this.#awaitee$2.poll(_2); + if (_52 !== rt.Pending) { + this.#saved$2 = _52; + rt.drop(this.#awaitee$2); + this.#awaitee$2 = this.#tally(1000); + } else { + this.#state = 6; + return rt.Pending; + } + } + const _64: rt.Poll = this.#awaitee$2.poll(_2); + if (_64 !== rt.Pending) { + const result4: rt.u32 = _64; + rt.drop(this.#awaitee$2); + this.#tallied = [this.#saved, this.#saved$2, result4] as [rt.u32, rt.u32, rt.u32]; + const arg = this.#seen; + const _87: rt.Fmt = (f: rt.Formatter) => rt.fmtList(arg, f, (value: rt.u64 | undefined, f: rt.Formatter) => rt.fmtOption(value, f, rt.u64Debug)); + const arg2 = this.#first; + const _88: rt.Fmt = (f: rt.Formatter) => rt.fmtOption(arg2, f, rt.u64Debug); + const arg3 = this.#second; + const _89: rt.Fmt = (f: rt.Formatter) => rt.fmtOption(arg3, f, rt.u64Debug); + const arg4 = this.#reads; + const _90: rt.Fmt = (f: rt.Formatter) => rt.u32Display(arg4, f); + const arg5 = this.#tallied; + const _91: rt.Fmt = (f: rt.Formatter) => rt.fmtTuple([(f: rt.Formatter) => rt.u32Debug(arg5[0], f), (f: rt.Formatter) => rt.u32Debug(arg5[1], f), (f: rt.Formatter) => rt.u32Debug(arg5[2], f)], f); + const arg6 = this.#count; + const args2: rt.Fmt[] = [_87, _88, _89, _90, _91, (f: rt.Formatter) => rt.u32Display(arg6, f)]; + const _74: string = rt.fmtFormat(["seen ", args2[0], " first ", args2[1], " second ", args2[2], " reads ", args2[3], " tallied ", args2[4], " count ", args2[5]]); + Guard.note(this.#guard, _74); + const captured2 = Guard.new(rt.u32Add(this.#id, 500), Log.clone$Clone(this.#log)); + this.#awaitee$3 = new callOnceFuture$closures_closures_closure0_closure2(rt.closure(rt.byMove((rx: Consumer.Consumer): rt.Future => { + return new closuresFuture$closure2_closure0(rx, captured2); + }, (_22: Consumer.Consumer): rt.Future => { + return new closuresFuture$closure2_closure0_once(_22, captured2); + }), (): void => { + captured2[Symbol.dispose](); + }), this.#rx); + } else { + this.#state = 7; + return rt.Pending; + } + } + const _105: rt.Poll = this.#awaitee$3.poll(_2); + if (_105 !== rt.Pending) { + this.#third = _105; + rt.drop(this.#awaitee$3); + const arg7 = this.#third; + const args4: rt.Fmt[] = [(f: rt.Formatter) => rt.u64Display(arg7, f)]; + const _115: string = rt.fmtFormat(["third ", args4[0]]); + Guard.note(this.#guard, _115); + this.#lent = Guard.new(rt.u32Add(this.#id, 600), Log.clone$Clone(this.#log)); + this.#peek = (value3: rt.u64): rt.Future => { + return new closuresFuture$closure3_closure0(value3, this.#lent); + }; + this.#awaitee$3 = new callFuture$closures_closures_closure0_closure3(this.#peek, 4); + } else { + this.#state = 8; + return rt.Pending; + } + } + const _135: rt.Poll = this.#awaitee$3.poll(_2); + if (_135 !== rt.Pending) { + this.#fourth = _135; + rt.drop(this.#awaitee$3); + this.#awaitee$3 = new throughFnFuture$ref_closures_closures_closure0_closure3_closures_closures_closure0_closure3_closure0(this.#peek, 5); + } else { + this.#state = 9; + return rt.Pending; + } + } + const _146: rt.Poll = this.#awaitee$3.poll(_2); + if (_146 !== rt.Pending) { + const result7: rt.u64 = _146; + rt.drop(this.#awaitee$3); + this.#fourth = rt.u64Add(this.#fourth, result7); + this.#awaitee$3 = new throughFnFuture$closures_closures_closure0_closure4_closures_closures_closure0_closure4_closure0((value4: rt.u64): rt.Future => { + return new closuresFuture$closure4_closure0(value4); + }, 6); + } else { + this.#state = 10; + return rt.Pending; + } + } + const _158: rt.Poll = this.#awaitee$3.poll(_2); + if (_158 !== rt.Pending) { + const result8: rt.u64 = _158; + rt.drop(this.#awaitee$3); + this.#fourth = rt.u64Add(this.#fourth, result8); + const captured3 = Guard.new(rt.u32Add(this.#id, 700), Log.clone$Clone(this.#log)); + this.#awaitee$2 = rt.closure((): rt.Future => { + return new closuresFuture$closure5_closure0(captured3); + }, (): void => { + captured3[Symbol.dispose](); + })(); + } else { + this.#state = 11; + return rt.Pending; + } + } + const _178: rt.Poll = this.#awaitee$2.poll(_2); + if (_178 !== rt.Pending) { + const result9: rt.u32 = _178; + rt.drop(this.#awaitee$2); + this.#add = adder(result9 as rt.u64); + const last: Guard.Guard = Guard.new(rt.u32Add(this.#id, 800), Log.clone$Clone(this.#log)); + this.#saved$4 = true; + const captured4 = last; + this.#finish = rt.closure(rt.byMove((value5: rt.u64): rt.Future => { + return new closuresFuture$closure6_closure0(value5, captured4); + }, (_26: rt.u64): rt.Future => { + return new closuresFuture$closure6_closure0_once(_26, captured4); + }), (): void => { + captured4[Symbol.dispose](); + }); + this.#awaitee$3 = new callFuture$closures_adder_closure0(this.#add, 10); + } else { + this.#state = 12; + return rt.Pending; + } + } + const _195: rt.Poll = this.#awaitee$3.poll(_2); + if (_195 !== rt.Pending) { + this.#fifth = _195; + rt.drop(this.#awaitee$3); + this.#awaitee$3 = new callFuture$closures_closures_closure0_closure6(this.#finish, 20); + } else { + this.#state = 13; + return rt.Pending; + } + } + const _206: rt.Poll = this.#awaitee$3.poll(_2); + if (_206 !== rt.Pending) { + const result11: rt.u64 = _206; + rt.drop(this.#awaitee$3); + this.#fifth = rt.u64Add(this.#fifth, result11); + this.#saved$4 = false; + this.#saved$3 = this.#finish; + this.#awaitee = new recvFuture$kio_Consumer(this.#rx); + } else { + this.#state = 14; + return rt.Pending; + } + } + const _221: rt.Poll = this.#awaitee.poll(_2); + if (_221 !== rt.Pending) { + const result12: rt.u64 | undefined = _221; + rt.drop(this.#awaitee); + const _217: rt.u64 = option_unwrapOr$1tvry1i(result12, 0); + this.#awaitee$3 = new throughFnOnceFuture$closures_closures_closure0_closure6_closures_closures_closure0_closure6_closure0(this.#saved$3, _217); + } else { + this.#state = 15; + return rt.Pending; + } + } + const _229: rt.Poll = this.#awaitee$3.poll(_2); + if (_229 !== rt.Pending) { + const result13: rt.u64 = _229; + rt.drop(this.#awaitee$3); + this.#fifth = rt.u64Add(this.#fifth, result13); + const arg8 = this.#fourth; + const _249: rt.Fmt = (f: rt.Formatter) => rt.u64Display(arg8, f); + const arg9 = this.#fifth; + const args6: rt.Fmt[] = [_249, (f: rt.Formatter) => rt.u64Display(arg9, f)]; + const _240: string = rt.fmtFormat(["fourth ", args6[0], " fifth ", args6[1]]); + Guard.note(this.#guard, _240); + const captured5 = Guard.new(rt.u32Add(this.#id, 900), Log.clone$Clone(this.#log)); + this.#awaitee$3 = new callOnceFuture$boxed_Box_closures_closures_closure0_closure7(rt.closure(rt.byMove((rx2: Consumer.Consumer): rt.Future => { + return new closuresFuture$closure7_closure0(rx2, captured5); + }, (_29: Consumer.Consumer): rt.Future => { + return new closuresFuture$closure7_closure0_once(_29, captured5); + }), (): void => { + captured5[Symbol.dispose](); + }), this.#rx); + } else { + this.#state = 16; + return rt.Pending; + } + } + const _264: rt.Poll = this.#awaitee$3.poll(_2); + if (_264 !== rt.Pending) { + this.#sixth = _264; + rt.drop(this.#awaitee$3); + const _274: [Guard.Guard, Guard.Guard, Guard.Guard] = [Guard.new(rt.u32Add(this.#id, 1000), Log.clone$Clone(this.#log)), Guard.new(rt.u32Add(this.#id, 1100), Log.clone$Clone(this.#log)), Guard.new(rt.u32Add(this.#id, 1200), Log.clone$Clone(this.#log))]; + const made: Guard.Guard = _274[0]; + const erased: Guard.Guard = _274[1]; + this.#unpolled = _274[2]; + const captured6 = made; + this.#slot = undefined as rt.Future | undefined; + const make: () => rt.Future = rt.closure(rt.byMove((): rt.Future => { + return new closuresFuture$closure8_closure0(captured6); + }, (): rt.Future => { + return new closuresFuture$closure8_closure0_once(captured6); + }), (): void => { + captured6[Symbol.dispose](); + }); + if (this.#slot === undefined) { + this.#slot = rt.callOnce(make); + } else { + rt.drop(make); + } + rt.drop(this.#slot); + const captured7 = erased; + this.#awaitee$2 = erase$closures_closures_closure0_closure9_closures_closures_closure0_closure9_closure0(rt.closure(rt.byMove((): rt.Future => { + return new closuresFuture$closure9_closure0(captured7); + }, (): rt.Future => { + return new closuresFuture$closure9_closure0_once(captured7); + }), (): void => { + captured7[Symbol.dispose](); + }))(); + } else { + this.#state = 17; + return rt.Pending; + } + } + const _304: rt.Poll = this.#awaitee$2.poll(_2); + if (_304 !== rt.Pending) { + const seventh: rt.u32 = _304; + rt.drop(this.#awaitee$2); + const captured8 = this.#unpolled; + rt.drop(erase$closures_closures_closure0_closure10_closures_closures_closure0_closure10_closure0(rt.closure(rt.byMove((): rt.Future => { + return new closuresFuture$closure10_closure0(captured8); + }, (): rt.Future => { + return new closuresFuture$closure10_closure0_once(captured8); + }), (): void => { + captured8[Symbol.dispose](); + }))()); + const arg10 = this.#sixth; + const args8: rt.Fmt[] = [(f: rt.Formatter) => rt.u64Display(arg10, f), (f: rt.Formatter) => rt.u32Display(seventh, f)]; + const _319: string = rt.fmtFormat(["sixth ", args8[0], " seventh ", args8[1]]); + Guard.note(this.#guard, _319); + const _360: rt.u64 = rt.u64Add(rt.u64Add(rt.u64Add(rt.u64Add(rt.u64Add(option_unwrapOr$1tvry1i(this.#first, 0), option_unwrapOr$1tvry1i(this.#second, 0)), this.#third), this.#fourth), this.#fifth), this.#sixth); + this.#saved$4 = false; + this.#lent[Symbol.dispose](); + this.#log[Symbol.dispose](); + this.#guard[Symbol.dispose](); + this.#rx[Symbol.dispose](); + this.#state = 1; + return _360; + } + this.#state = 18; + return rt.Pending; + } +} + +export class closuresFuture$closure0_closure0 { + #state: number = 0; + #scale: rt.u64; + #rx: Consumer.Consumer; + #seen: Array; + #reads: rt.Place; + #awaitee!: rt.Future; + + constructor(scale: rt.u64, rx: Consumer.Consumer, seen: Array, reads: rt.Place) { + this.#scale = scale; + this.#rx = rx; + this.#seen = seen; + this.#reads = reads; + } + + [Symbol.dispose](): void { + if (this.#state === 3) { + rt.drop(this.#awaitee); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#awaitee = new recvFuture$kio_Consumer(this.#rx); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } + const _5: rt.Poll = this.#awaitee.poll(_2); + if (_5 !== rt.Pending) { + const value: rt.u64 | undefined = _5; + rt.drop(this.#awaitee); + this.#seen.push(value); + this.#reads.v = rt.u32Add(this.#reads.v, 1); + const _0: rt.Poll = option_map$1cf8u0y(value, (value2: rt.u64): rt.u64 => { + return rt.u64Mul(value2, this.#scale); + }); + this.#state = 1; + return _0; + } + this.#state = 3; + return rt.Pending; + } +} + +export class closuresFuture$closure1_closure0 { + #state: number = 0; + #by: rt.u32; + #count: rt.Place; + + constructor(by: rt.u32, count: rt.Place) { + this.#by = by; + this.#count = count; + } + + [Symbol.dispose](): void { + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#count.v = rt.u32Add(this.#count.v, this.#by); + const _0: rt.Poll = this.#count.v; + this.#state = 1; + return _0; + } + rt.asyncFnResumed(); + } +} + +export class closuresFuture$closure2_closure0 { + #state: number = 0; + #rx: Consumer.Consumer; + #owned: Guard.Guard; + #awaitee!: rt.Future; + + constructor(rx: Consumer.Consumer, owned: Guard.Guard) { + this.#rx = rx; + this.#owned = owned; + } + + [Symbol.dispose](): void { + if (this.#state === 3) { + rt.drop(this.#awaitee); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#awaitee = new recvFuture$kio_Consumer(this.#rx); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } + const _7: rt.Poll = this.#awaitee.poll(_2); + if (_7 !== rt.Pending) { + const value: rt.u64 | undefined = _7; + rt.drop(this.#awaitee); + const _27: Guard.Guard = this.#owned; + const args2: rt.Fmt[] = [(f: rt.Formatter) => rt.fmtOption(value, f, rt.u64Debug)]; + Guard.note(_27, rt.fmtFormat(["once ", args2[0]])); + const _0: rt.Poll = option_unwrapOr$1tvry1i(value, 0); + this.#state = 1; + return _0; + } + this.#state = 3; + return rt.Pending; + } +} + +export class closuresFuture$closure2_closure0_once { + #state: number = 0; + #rx: Consumer.Consumer; + #owned: Guard.Guard; + #awaitee!: rt.Future; + + constructor(rx: Consumer.Consumer, owned: Guard.Guard) { + this.#rx = rx; + this.#owned = owned; + } + + [Symbol.dispose](): void { + if (this.#state === 0) { + this.#owned[Symbol.dispose](); + } else if (this.#state === 3) { + rt.drop(this.#awaitee); + this.#owned[Symbol.dispose](); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#awaitee = new recvFuture$kio_Consumer(this.#rx); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } + const _7: rt.Poll = this.#awaitee.poll(_2); + if (_7 !== rt.Pending) { + const value: rt.u64 | undefined = _7; + rt.drop(this.#awaitee); + const args2: rt.Fmt[] = [(f: rt.Formatter) => rt.fmtOption(value, f, rt.u64Debug)]; + const _17: string = rt.fmtFormat(["once ", args2[0]]); + Guard.note(this.#owned, _17); + const _29: rt.u64 = option_unwrapOr$1tvry1i(value, 0); + this.#owned[Symbol.dispose](); + this.#state = 1; + return _29; + } + this.#state = 3; + return rt.Pending; + } +} + +export class closuresFuture$closure3_closure0 { + #state: number = 0; + #value: rt.u64; + #lent: Guard.Guard; + + constructor(value: rt.u64, lent: Guard.Guard) { + this.#value = value; + this.#lent = lent; + } + + [Symbol.dispose](): void { + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + const value: rt.u64 = this.#value; + const _17: Guard.Guard = this.#lent; + const args2: rt.Fmt[] = [(f: rt.Formatter) => rt.u64Display(value, f)]; + Guard.note(_17, rt.fmtFormat(["peek ", args2[0]])); + const _0: rt.Poll = rt.u64Add(value, 1); + this.#state = 1; + return _0; + } + rt.asyncFnResumed(); + } +} + +export class closuresFuture$closure4_closure0 { + #state: number = 0; + #value: rt.u64; + + constructor(value: rt.u64) { + this.#value = value; + } + + [Symbol.dispose](): void { + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + const _0: rt.Poll = rt.u64Mul(this.#value, 3); + this.#state = 1; + return _0; + } + rt.asyncFnResumed(); + } +} + +export class closuresFuture$closure5_closure0 { + #state: number = 0; + #moved: Guard.Guard; + + constructor(moved: Guard.Guard) { + this.#moved = moved; + } + + [Symbol.dispose](): void { + if (this.#state === 0) { + this.#moved[Symbol.dispose](); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + const id: rt.u32 = Guard.id(this.#moved); + this.#moved[Symbol.dispose](); + this.#state = 1; + return id; + } + rt.asyncFnResumed(); + } +} + +export class closuresFuture$closure6_closure0 { + #state: number = 0; + #value: rt.u64; + #last: Guard.Guard; + + constructor(value: rt.u64, last: Guard.Guard) { + this.#value = value; + this.#last = last; + } + + [Symbol.dispose](): void { + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + const value: rt.u64 = this.#value; + const _16: Guard.Guard = this.#last; + const args2: rt.Fmt[] = [(f: rt.Formatter) => rt.u64Display(value, f)]; + Guard.note(_16, rt.fmtFormat(["last ", args2[0]])); + this.#state = 1; + return value; + } + rt.asyncFnResumed(); + } +} + +export class closuresFuture$closure6_closure0_once { + #state: number = 0; + #value: rt.u64; + #last: Guard.Guard; + + constructor(value: rt.u64, last: Guard.Guard) { + this.#value = value; + this.#last = last; + } + + [Symbol.dispose](): void { + if (this.#state === 0) { + this.#last[Symbol.dispose](); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + const value: rt.u64 = this.#value; + const args2: rt.Fmt[] = [(f: rt.Formatter) => rt.u64Display(value, f)]; + const _6: string = rt.fmtFormat(["last ", args2[0]]); + Guard.note(this.#last, _6); + this.#last[Symbol.dispose](); + this.#state = 1; + return value; + } + rt.asyncFnResumed(); + } +} + +export class closuresFuture$closure7_closure0 { + #state: number = 0; + #rx: Consumer.Consumer; + #boxed: Guard.Guard; + #awaitee!: rt.Future; + + constructor(rx: Consumer.Consumer, boxed: Guard.Guard) { + this.#rx = rx; + this.#boxed = boxed; + } + + [Symbol.dispose](): void { + if (this.#state === 3) { + rt.drop(this.#awaitee); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#awaitee = new recvFuture$kio_Consumer(this.#rx); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } + const _7: rt.Poll = this.#awaitee.poll(_2); + if (_7 !== rt.Pending) { + const value: rt.u64 | undefined = _7; + rt.drop(this.#awaitee); + const _27: Guard.Guard = this.#boxed; + const args2: rt.Fmt[] = [(f: rt.Formatter) => rt.fmtOption(value, f, rt.u64Debug)]; + Guard.note(_27, rt.fmtFormat(["boxed ", args2[0]])); + const _0: rt.Poll = option_unwrapOr$1tvry1i(value, 0); + this.#state = 1; + return _0; + } + this.#state = 3; + return rt.Pending; + } +} + +export class closuresFuture$closure7_closure0_once { + #state: number = 0; + #rx: Consumer.Consumer; + #boxed: Guard.Guard; + #awaitee!: rt.Future; + + constructor(rx: Consumer.Consumer, boxed: Guard.Guard) { + this.#rx = rx; + this.#boxed = boxed; + } + + [Symbol.dispose](): void { + if (this.#state === 0) { + this.#boxed[Symbol.dispose](); + } else if (this.#state === 3) { + rt.drop(this.#awaitee); + this.#boxed[Symbol.dispose](); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#awaitee = new recvFuture$kio_Consumer(this.#rx); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } + const _7: rt.Poll = this.#awaitee.poll(_2); + if (_7 !== rt.Pending) { + const value: rt.u64 | undefined = _7; + rt.drop(this.#awaitee); + const args2: rt.Fmt[] = [(f: rt.Formatter) => rt.fmtOption(value, f, rt.u64Debug)]; + const _17: string = rt.fmtFormat(["boxed ", args2[0]]); + Guard.note(this.#boxed, _17); + const _29: rt.u64 = option_unwrapOr$1tvry1i(value, 0); + this.#boxed[Symbol.dispose](); + this.#state = 1; + return _29; + } + this.#state = 3; + return rt.Pending; + } +} + +export class closuresFuture$closure8_closure0 { + #state: number = 0; + #made: Guard.Guard; + + constructor(made: Guard.Guard) { + this.#made = made; + } + + [Symbol.dispose](): void { + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + Guard.note(this.#made, "made"); + this.#state = 1; + return undefined; + } + rt.asyncFnResumed(); + } +} + +export class closuresFuture$closure8_closure0_once { + #state: number = 0; + #made: Guard.Guard; + + constructor(made: Guard.Guard) { + this.#made = made; + } + + [Symbol.dispose](): void { + if (this.#state === 0) { + this.#made[Symbol.dispose](); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + Guard.note(this.#made, "made"); + this.#made[Symbol.dispose](); + this.#state = 1; + return undefined; + } + rt.asyncFnResumed(); + } +} + +export class closuresFuture$closure9_closure0 { + #state: number = 0; + #erased: Guard.Guard; + + constructor(erased: Guard.Guard) { + this.#erased = erased; + } + + [Symbol.dispose](): void { + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + const _0: rt.Poll = Guard.id(this.#erased); + this.#state = 1; + return _0; + } + rt.asyncFnResumed(); + } +} + +export class closuresFuture$closure9_closure0_once { + #state: number = 0; + #erased: Guard.Guard; + + constructor(erased: Guard.Guard) { + this.#erased = erased; + } + + [Symbol.dispose](): void { + if (this.#state === 0) { + this.#erased[Symbol.dispose](); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + const _4: rt.u32 = Guard.id(this.#erased); + this.#erased[Symbol.dispose](); + this.#state = 1; + return _4; + } + rt.asyncFnResumed(); + } +} + +export class closuresFuture$closure10_closure0 { + #state: number = 0; + #unpolled: Guard.Guard; + + constructor(unpolled: Guard.Guard) { + this.#unpolled = unpolled; + } + + [Symbol.dispose](): void { + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + const _0: rt.Poll = Guard.id(this.#unpolled); + this.#state = 1; + return _0; + } + rt.asyncFnResumed(); + } +} + +export class closuresFuture$closure10_closure0_once { + #state: number = 0; + #unpolled: Guard.Guard; + + constructor(unpolled: Guard.Guard) { + this.#unpolled = unpolled; + } + + [Symbol.dispose](): void { + if (this.#state === 0) { + this.#unpolled[Symbol.dispose](); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + const _4: rt.u32 = Guard.id(this.#unpolled); + this.#unpolled[Symbol.dispose](); + this.#state = 1; + return _4; + } + rt.asyncFnResumed(); + } +} + +export class twiceFuture$closures_closures_closure0_closure0 { + #state: number = 0; + #f: (a0: rt.u64) => rt.Future; + #saved!: rt.u64; + #awaitee!: rt.Future; + + constructor(f: (a0: rt.u64) => rt.Future) { + this.#f = f; + } + + [Symbol.dispose](): void { + if (this.#state === 3) { + rt.drop(this.#awaitee); + } else if (this.#state === 4) { + rt.drop(this.#awaitee); + } else { + return; + } + } + + poll(_2: rt.Context): rt.Poll { + let _35!: rt.u64 | undefined; + b0: { + b1: { + if (this.#state === 0) { + this.#awaitee = this.#f(2); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } else if (this.#state !== 3) { + break b1; + } + const _8: rt.Poll = this.#awaitee.poll(_2); + if (_8 !== rt.Pending) { + const result: rt.u64 | undefined = _8; + rt.drop(this.#awaitee); + const _4: rt.u64 | undefined = result; + if (_4 !== undefined) { + this.#saved = _4; + this.#awaitee = this.#f(3); + } else { + _35 = undefined; + break b0; + } + } else { + this.#state = 3; + return rt.Pending; + } + } + const _23: rt.Poll = this.#awaitee.poll(_2); + if (_23 !== rt.Pending) { + const result2: rt.u64 | undefined = _23; + rt.drop(this.#awaitee); + const _19: rt.u64 | undefined = result2; + if (_19 !== undefined) { + _35 = rt.u64Add(this.#saved, _19); + } else { + _35 = undefined; + } + } else { + this.#state = 4; + return rt.Pending; + } + } + this.#state = 1; + return _35; + } +} + +export class callOnceFuture$boxed_Box_closures_closures_closure0_closure7 { + #state: number = 0; + #f: (a0: Consumer.Consumer) => rt.Future; + #rx: Consumer.Consumer; + #awaitee!: rt.Future; + + constructor(f: (a0: Consumer.Consumer) => rt.Future, rx: Consumer.Consumer) { + this.#f = f; + this.#rx = rx; + } + + [Symbol.dispose](): void { + if (this.#state === 0) { + rt.drop(this.#f); + } else if (this.#state === 3) { + rt.drop(this.#awaitee); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#awaitee = rt.callOnce(this.#f, this.#rx); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } + const _8: rt.Poll = this.#awaitee.poll(_2); + if (_8 !== rt.Pending) { + rt.drop(this.#awaitee); + this.#state = 1; + return _8; + } + this.#state = 3; + return rt.Pending; + } +} + +export class callOnceFuture$closures_closures_closure0_closure2 { + #state: number = 0; + #f: (a0: Consumer.Consumer) => rt.Future; + #rx: Consumer.Consumer; + #awaitee!: rt.Future; + + constructor(f: (a0: Consumer.Consumer) => rt.Future, rx: Consumer.Consumer) { + this.#f = f; + this.#rx = rx; + } + + [Symbol.dispose](): void { + if (this.#state === 0) { + rt.drop(this.#f); + } else if (this.#state === 3) { + rt.drop(this.#awaitee); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#awaitee = rt.callOnce(this.#f, this.#rx); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } + const _8: rt.Poll = this.#awaitee.poll(_2); + if (_8 !== rt.Pending) { + rt.drop(this.#awaitee); + this.#state = 1; + return _8; + } + this.#state = 3; + return rt.Pending; + } +} + +export class callFuture$closures_adder_closure0 { + #state: number = 0; + #f: (a0: rt.u64) => rt.Future; + #value: rt.u64; + #awaitee!: rt.Future; + + constructor(f: (a0: rt.u64) => rt.Future, value: rt.u64) { + this.#f = f; + this.#value = value; + } + + [Symbol.dispose](): void { + if (this.#state === 3) { + rt.drop(this.#awaitee); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#awaitee = this.#f(this.#value); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } + const _8: rt.Poll = this.#awaitee.poll(_2); + if (_8 !== rt.Pending) { + rt.drop(this.#awaitee); + this.#state = 1; + return _8; + } + this.#state = 3; + return rt.Pending; + } +} + +export class callFuture$closures_closures_closure0_closure3 { + #state: number = 0; + #f: (a0: rt.u64) => rt.Future; + #value: rt.u64; + #awaitee!: rt.Future; + + constructor(f: (a0: rt.u64) => rt.Future, value: rt.u64) { + this.#f = f; + this.#value = value; + } + + [Symbol.dispose](): void { + if (this.#state === 3) { + rt.drop(this.#awaitee); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#awaitee = this.#f(this.#value); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } + const _8: rt.Poll = this.#awaitee.poll(_2); + if (_8 !== rt.Pending) { + rt.drop(this.#awaitee); + this.#state = 1; + return _8; + } + this.#state = 3; + return rt.Pending; + } +} + +export class callFuture$closures_closures_closure0_closure6 { + #state: number = 0; + #f: (a0: rt.u64) => rt.Future; + #value: rt.u64; + #awaitee!: rt.Future; + + constructor(f: (a0: rt.u64) => rt.Future, value: rt.u64) { + this.#f = f; + this.#value = value; + } + + [Symbol.dispose](): void { + if (this.#state === 3) { + rt.drop(this.#awaitee); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#awaitee = this.#f(this.#value); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } + const _8: rt.Poll = this.#awaitee.poll(_2); + if (_8 !== rt.Pending) { + rt.drop(this.#awaitee); + this.#state = 1; + return _8; + } + this.#state = 3; + return rt.Pending; + } +} + +export class throughFnFuture$closures_closures_closure0_closure4_closures_closures_closure0_closure4_closure0 { + #state: number = 0; + #f: (a0: rt.u64) => rt.Future; + #value: rt.u64; + #awaitee!: rt.Future; + + constructor(f: (a0: rt.u64) => rt.Future, value: rt.u64) { + this.#f = f; + this.#value = value; + } + + [Symbol.dispose](): void { + if (this.#state !== 0) { + if (this.#state === 3) { + rt.drop(this.#awaitee); + } + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#awaitee = this.#f(this.#value); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } + const _8: rt.Poll = this.#awaitee.poll(_2); + if (_8 !== rt.Pending) { + rt.drop(this.#awaitee); + this.#state = 1; + return _8; + } + this.#state = 3; + return rt.Pending; + } +} + +export class throughFnFuture$ref_closures_closures_closure0_closure3_closures_closures_closure0_closure3_closure0 { + #state: number = 0; + #f: (a0: rt.u64) => rt.Future; + #value: rt.u64; + #awaitee!: rt.Future; + + constructor(f: (a0: rt.u64) => rt.Future, value: rt.u64) { + this.#f = f; + this.#value = value; + } + + [Symbol.dispose](): void { + if (this.#state !== 0) { + if (this.#state === 3) { + rt.drop(this.#awaitee); + } + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#awaitee = this.#f(this.#value); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } + const _8: rt.Poll = this.#awaitee.poll(_2); + if (_8 !== rt.Pending) { + rt.drop(this.#awaitee); + this.#state = 1; + return _8; + } + this.#state = 3; + return rt.Pending; + } +} + +export class throughFnOnceFuture$closures_closures_closure0_closure6_closures_closures_closure0_closure6_closure0 { + #state: number = 0; + #f: (a0: rt.u64) => rt.Future; + #value: rt.u64; + #awaitee!: rt.Future; + + constructor(f: (a0: rt.u64) => rt.Future, value: rt.u64) { + this.#f = f; + this.#value = value; + } + + [Symbol.dispose](): void { + if (this.#state === 0) { + rt.drop(this.#f); + } else if (this.#state === 3) { + rt.drop(this.#awaitee); + } + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + this.#awaitee = rt.callOnce(this.#f, this.#value); + } else if (this.#state === 1) { + rt.asyncFnResumed(); + } + const _8: rt.Poll = this.#awaitee.poll(_2); + if (_8 !== rt.Pending) { + rt.drop(this.#awaitee); + this.#state = 1; + return _8; + } + this.#state = 3; + return rt.Pending; + } +} + +/** `f` as a `dyn FnOnce`. */ +export function erase$closures_closures_closure0_closure10_closures_closures_closure0_closure10_closure0(f: () => rt.Future): () => rt.Future { + return rt.once(f); +} + +/** `f` as a `dyn FnOnce`. */ +export function erase$closures_closures_closure0_closure9_closures_closures_closure0_closure9_closure0(f: () => rt.Future): () => rt.Future { + return rt.once(f); +} + +/** An async closure adding `n`. */ +export function adder(n: rt.u64): (a0: rt.u64) => rt.Future { + const captured = n; + return (value: rt.u64): rt.Future => { + return new adderFuture$closure0_closure0(value, captured); + }; +} + +export class adderFuture$closure0_closure0 { + #state: number = 0; + #value: rt.u64; + #n: rt.u64; + + constructor(value: rt.u64, n: rt.u64) { + this.#value = value; + this.#n = n; + } + + [Symbol.dispose](): void { + } + + poll(_2: rt.Context): rt.Poll { + if (this.#state === 0) { + const _0: rt.Poll = rt.u64Add(this.#value, this.#n); + this.#state = 1; + return _0; + } + rt.asyncFnResumed(); + } +} + +//# sourceMappingURL=closures.ts.map diff --git a/ts/fixtures/task/expected/core/option.ts b/ts/fixtures/task/expected/core/option.ts index 4fd25b2a8..792b983f1 100644 --- a/ts/fixtures/task/expected/core/option.ts +++ b/ts/fixtures/task/expected/core/option.ts @@ -157,6 +157,13 @@ export function map$0upmgd9(self: rt.u64 | undefined, f: (a0: rt.u64) => rt.Resu return f(self); } +export function map$1cf8u0y(self: rt.u64 | undefined, f: (a0: rt.u64) => rt.u64): rt.u64 | undefined { + if (self === undefined) { + return undefined; + } + return f(self); +} + export function mapOr$0vxyhav(self: Guard.Guard[] | undefined, default_: rt.usize, f: (a0: Guard.Guard[]) => rt.usize): rt.usize { if (self === undefined) { return default_; diff --git a/ts/fixtures/task/src/closures.rs b/ts/fixtures/task/src/closures.rs new file mode 100644 index 000000000..e48b17b94 --- /dev/null +++ b/ts/fixtures/task/src/closures.rs @@ -0,0 +1,132 @@ +//! Async closures over a channel: called directly, as moq-net's tests call them, and +//! through `AsyncFn`, `AsyncFnMut`, `AsyncFnOnce`, and `Fn`, each borrowing what it +//! captured or owning it. + +use std::future::Future; + +use kio::Consumer; + +use crate::model::Guard; + +/// Values read from the channel through async closures, summed. A closure that borrows +/// the channel, a list, and a count mutably is called directly and through `AsyncFnMut`; +/// one that owns a count changes its own; an owning one, called through `AsyncFnOnce`, +/// moves its guard into its future, which drops it as it returns or is cancelled; one +/// that only borrows is called through `AsyncFn` and through `Fn`, a future of its own +/// each call, and so is one that captures nothing; one that moves its guard out is called +/// once; one made by a function holds a copy of its argument; one that owns a guard, +/// called through `AsyncFn`, is then consumed through `FnOnce`; a box of one that owns +/// a guard is consumed through `AsyncFnOnce`; and ones that own guards are consumed by +/// `Option::get_or_insert_with` and through a `dyn FnOnce`, their futures awaited or +/// dropped before their first poll. A clone of the one that owns a count changes its own. A +/// cancel drops what the future in flight holds, then the closures, in reverse. +pub async fn closures(mut rx: Consumer, guard: Guard) -> u64 { + let (id, log) = (guard.id(), guard.log().clone()); + let mut seen = Vec::new(); + let mut reads = 0; + let mut next = async |scale: u64| { + let value = rx.recv().await; + seen.push(value); + reads += 1; + value.map(|value| value * scale) + }; + let first = next(1).await; + let second = twice(&mut next).await; + let mut count = reads; + let mut tally = async move |by: u32| { + count += by; + count + }; + let once = tally(10).await; + let mut copy = tally.clone(); + let tallied = (once, copy(100).await, tally(1000).await); + guard.note(&format!( + "seen {seen:?} first {first:?} second {second:?} reads {reads} tallied {tallied:?} count {count}" + )); + let owned = Guard::new(id + 500, log.clone()); + let once = async move |rx: &mut Consumer| { + let value = rx.recv().await; + owned.note(&format!("once {value:?}")); + value.unwrap_or(0) + }; + let third = call_once(once, &mut rx).await; + guard.note(&format!("third {third}")); + let lent = Guard::new(id + 600, log.clone()); + let peek = async |value: u64| { + lent.note(&format!("peek {value}")); + value + 1 + }; + let fourth = call(&peek, 4).await + through_fn(&peek, 5).await + through_fn(async |value| value * 3, 6).await; + let moved = Guard::new(id + 700, log.clone()); + let consume = async move || { + let id = moved.id(); + drop(moved); + id + }; + let add = adder(u64::from(consume().await)); + let last = Guard::new(id + 800, log.clone()); + let finish = async move |value: u64| { + last.note(&format!("last {value}")); + value + }; + let fifth = + call(&add, 10).await + call(&finish, 20).await + through_fn_once(finish, rx.recv().await.unwrap_or(0)).await; + guard.note(&format!("fourth {fourth} fifth {fifth}")); + let boxed = Guard::new(id + 900, log.clone()); + let wait = Box::new(async move |rx: &mut Consumer| { + let value = rx.recv().await; + boxed.note(&format!("boxed {value:?}")); + value.unwrap_or(0) + }); + let sixth = call_once(wait, &mut rx).await; + let (made, erased, unpolled) = ( + Guard::new(id + 1000, log.clone()), + Guard::new(id + 1100, log.clone()), + Guard::new(id + 1200, log.clone()), + ); + let make = async move || made.note("made"); + let mut slot = None; + slot.get_or_insert_with(make); + drop(slot); + let read = async move || erased.id(); + let seventh = erase(read)().await; + let skip = async move || unpolled.id(); + drop(erase(skip)()); + guard.note(&format!("sixth {sixth} seventh {seventh}")); + first.unwrap_or(0) + second.unwrap_or(0) + third + fourth + fifth + sixth +} + +/// Two calls of `f`, through `AsyncFnMut`. +async fn twice(f: &mut impl AsyncFnMut(u64) -> Option) -> Option { + Some(f(2).await? + f(3).await?) +} + +/// One call of `f`, through `AsyncFnOnce`. +async fn call_once(f: impl AsyncFnOnce(&mut Consumer) -> u64, rx: &mut Consumer) -> u64 { + f(rx).await +} + +/// One call of `f`, through `AsyncFn`. +async fn call(f: &impl AsyncFn(u64) -> u64, value: u64) -> u64 { + f(value).await +} + +/// One call of `f`, through `Fn` returning a future. +async fn through_fn R, R: Future>(f: F, value: u64) -> u64 { + f(value).await +} + +/// One call of `f`, through `FnOnce` returning a future. +async fn through_fn_once R, R: Future>(f: F, value: u64) -> u64 { + f(value).await +} + +/// `f` as a `dyn FnOnce`. +fn erase<'a, F: FnOnce() -> R + 'a, R>(f: F) -> Box R + 'a> { + Box::new(f) +} + +/// An async closure adding `n`. +fn adder(n: u64) -> impl AsyncFn(u64) -> u64 { + async move |value| value + n +} diff --git a/ts/fixtures/task/src/harness.rs b/ts/fixtures/task/src/harness.rs index 10462d8ac..cf1c279cc 100644 --- a/ts/fixtures/task/src/harness.rs +++ b/ts/fixtures/task/src/harness.rs @@ -6,6 +6,7 @@ //! how many there are; a step with nothing to pick does nothing. Once the script ends, //! every task drops in order, then every channel. +use crate::closures; use crate::drops; use crate::exec::Executor; use crate::futures; @@ -158,6 +159,12 @@ fn steps() -> Vec<(&'static str, Step)> { ("lists", |log, exec, _, arg| { drops::lists(log, 1000 * exec.len() as u32, arg) }), + ("closures", |log, exec, channels, arg| { + if let Some(c) = pick(channels.len(), arg) { + let guard = Guard::new(exec.len() as u32, log.clone()); + exec.spawn(closures::closures(channels[c].consumer(), guard)); + } + }), ] } diff --git a/ts/fixtures/task/src/lib.rs b/ts/fixtures/task/src/lib.rs index 692c5a838..d1fd96767 100644 --- a/ts/fixtures/task/src/lib.rs +++ b/ts/fixtures/task/src/lib.rs @@ -6,7 +6,8 @@ //! The `kio` dependency trims moq's kio to what its futures hinge on: a `Waiter` holding //! the task's waker behind an `Arc` that `WaiterList`s hold weakly, `Task`, `Pending`, //! `wait`, and a channel whose last producer closes it on drop. `model` holds the async -//! functions, and `futures` one over std's future helpers. `exec` is a deterministic FIFO executor that logs every +//! functions, `futures` one over std's future helpers, and `closures` one over async +//! closures. `exec` is a deterministic FIFO executor that logs every //! poll, wake, and waker clone and drop, and `harness` runs a script of executor steps //! through it; `tests/task.ts` runs the same script on the translation with its own //! executor. `bench` holds the handoff `just ts bench` times. None of `exec`, `harness`, @@ -15,6 +16,7 @@ #![feature(iter_order_by)] pub mod bench; +pub mod closures; pub mod drops; pub mod exec; pub mod futures; diff --git a/ts/fixtures/task/ts.toml b/ts/fixtures/task/ts.toml index d4f180181..69ad0ae2e 100644 --- a/ts/fixtures/task/ts.toml +++ b/ts/fixtures/task/ts.toml @@ -23,4 +23,5 @@ roots = [ "futures::helpers", "futures::boxed", "futures::wakers", + "closures::closures", ] diff --git a/ts/runtime/rt/task.ts b/ts/runtime/rt/task.ts index 0359945d1..b2cc0df99 100644 --- a/ts/runtime/rt/task.ts +++ b/ts/runtime/rt/task.ts @@ -50,8 +50,24 @@ export function closureClone(f: F): F { return (f as F & { [CLONE]: () => F })[CLONE](); } -/** `FnOnce::call_once` of a closure that `Fn` or `FnMut` call: `f(...args)`, then `f` drops. */ +/** What makes the future of a call that consumes an async closure. */ +const BY_MOVE: unique symbol = /* @__PURE__ */ Symbol("byMove"); + +/** + * An async closure `f` that `Fn` or `FnMut` call and that owns what drops: a call that + * consumes it calls `once`, whose future owns what `f`'s would borrow. + */ +export function byMove unknown>(f: F, once: F): F { + return Object.assign(f, { [BY_MOVE]: once }); +} + +/** + * `FnOnce::call_once` of a closure that `Fn` or `FnMut` call: `f(...args)`, then `f` + * drops; or, of an async closure `byMove` made, the future that owns what it captured. + */ export function callOnce(f: (...args: A) => R, ...args: A): R { + const once = (f as { [BY_MOVE]?: (...args: A) => R })[BY_MOVE]; + if (once !== undefined) return once(...args); const r = f(...args); drop(f); return r; @@ -1191,10 +1207,12 @@ export function asyncFnResumedPanic(): never { /** * Run `future` to completion on the microtask queue, as a promise of its output. A - * panic rejects the promise with the `Panic`. + * panic rejects the promise with the `Panic`. Aborting `signal` cancels it: the future + * drops as Rust drops a future, at once, or as the poll it aborts in returns pending, + * and the promise rejects with the signal's reason. A future that is ready first wins. */ -export function spawn(future: Future): Promise { - return new Promise((resolve, reject) => new Task(future, resolve, reject).schedule()); +export function spawn(future: Future, signal?: AbortSignal): Promise { + return new Promise((resolve, reject) => new Task(future, resolve, reject, signal).schedule()); } /** How many polls one microtask runs before it yields to a macrotask, so a task that keeps waking itself cannot starve I/O. */ @@ -1224,11 +1242,44 @@ class Task implements Waker { #resolve: (value: T) => void; #reject: (err: unknown) => void; #queued = false; + #signal: AbortSignal | undefined; + /** Whether a poll is running, which an abort waits out, as Rust can't drop a future it polls. */ + #polling = false; - constructor(future: Future, resolve: (value: T) => void, reject: (err: unknown) => void) { + constructor(future: Future, resolve: (value: T) => void, reject: (err: unknown) => void, signal?: AbortSignal) { this.#future = future; this.#resolve = resolve; this.#reject = reject; + if (signal === undefined) return; + this.#signal = signal; + if (signal.aborted) this.#cancel(); + else signal.addEventListener("abort", this); + } + + /** The signal's abort: cancel now, or once the running poll returns. */ + handleEvent(): void { + if (!this.#polling) this.#cancel(); + } + + /** Drop the future and reject with the signal's reason, or with a panic its drop throws. */ + #cancel(): void { + const future = this.#future; + if (future === undefined) return; + this.#finish(); + try { + future[Symbol.dispose](); + } catch (err) { + this.#reject(err); + if (!(err instanceof Panic)) throw err; + return; + } + this.#reject(this.#signal!.reason); + } + + /** Settle: no poll, wake, or abort reaches the future again. */ + #finish(): void { + this.#future = undefined; + this.#signal?.removeEventListener("abort", this); } schedule(): void { @@ -1247,17 +1298,22 @@ class Task implements Waker { if (future === undefined) return; let output: Poll; try { + this.#polling = true; output = future.poll(this); - if (output === Pending) return; - this.#future = undefined; - future[Symbol.dispose](); + this.#polling = false; + if (output !== Pending) { + this.#finish(); + future[Symbol.dispose](); + } } catch (err) { - this.#future = undefined; + this.#polling = false; + this.#finish(); this.#reject(err); if (!(err instanceof Panic)) throw err; return; } - this.#resolve(output); + if (output !== Pending) this.#resolve(output); + else if (this.#signal?.aborted) this.#cancel(); } wake(): void { diff --git a/ts/src/lower/collections.rs b/ts/src/lower/collections.rs index 8dec6e020..c22f253d6 100644 --- a/ts/src/lower/collections.rs +++ b/ts/src/lower/collections.rs @@ -2550,7 +2550,7 @@ pub fn clone_fn<'tcx>(b: &mut Body<'_, '_, 'tcx>, ty: Ty<'tcx>, span: Span) -> E if library::clone_copies(b.t, env, ty) || library::clone_shares(b.t, env, ty) { return Expr::undefined(); } - if let ty::Closure(def_id, _) = ty.kind() { + if let ty::Closure(def_id, _) | ty::CoroutineClosure(def_id, _) = ty.kind() { b.t.clone_closure(*def_id); return Expr::Rt("closureClone".into()); } diff --git a/ts/src/lower/drop.rs b/ts/src/lower/drop.rs index b9e990ed2..a46d90dfc 100644 --- a/ts/src/lower/drop.rs +++ b/ts/src/lower/drop.rs @@ -96,7 +96,9 @@ impl<'a, 'tcx> Translator<'a, 'tcx> { ty::Tuple(tys) => tys.iter().any(|t| self.drops(t)), // A slice, which a box owns. ty::Array(elem, _) | ty::Slice(elem) => self.drops(*elem), - ty::Closure(_, args) => args.as_closure().upvar_tys().iter().any(|t| self.drops(t)), + ty::Closure(..) | ty::CoroutineClosure(..) => { + super::captured(ty).is_some_and(|tys| tys.iter().any(|t| self.drops(t))) + } // Whatever it was made of may drop. ty::Coroutine(..) | ty::Param(_) | ty::Dynamic(..) => true, _ => false, @@ -184,7 +186,7 @@ impl<'a, 'tcx> Translator<'a, 'tcx> { }, // A closure's `[Symbol.dispose]` drops what it owns, a `dyn Future`'s what it is, and // another trait object's what it wraps. - ty::Closure(..) | ty::Coroutine(..) | ty::Param(_) | ty::Dynamic(..) => true, + ty::Closure(..) | ty::CoroutineClosure(..) | ty::Coroutine(..) | ty::Param(_) | ty::Dynamic(..) => true, _ => false, } } @@ -229,7 +231,7 @@ impl<'a, 'tcx> Translator<'a, 'tcx> { }; let holds = super::iter::holds_closure(self.tcx, adt.did()); args.types().all(|t| match t.kind() { - ty::Closure(..) => holds || !self.drops(t), + ty::Closure(..) | ty::CoroutineClosure(..) => holds || !self.drops(t), _ => self.closures_held(t), }) } @@ -492,11 +494,9 @@ impl<'a, 'tcx> Translator<'a, 'tcx> { /// each that drops, in order, as rustc's glue drops a closure. Its `[Symbol.dispose]`, and what ends an `FnOnce` body that drops /// its closure whole. pub fn closure_glue(&mut self, ty: Ty<'tcx>, captures: &[Capture], span: Span) -> Vec { - let ty::Closure(_, args) = ty.kind() else { - unreachable!("closure glue of a closure") - }; + let upvars = super::captured(ty).expect("closure glue of a closure"); let mut steps = Vec::new(); - for (capture, ty) in captures.iter().zip(args.as_closure().upvar_tys()) { + for (capture, ty) in captures.iter().zip(upvars) { if let Some(dropped) = self.drop_value(capture.value.clone(), ty, span) { steps.push(StmtKind::Expr(dropped).at(None)); } diff --git a/ts/src/lower/dynamic.rs b/ts/src/lower/dynamic.rs index 092903ddd..2d73493a2 100644 --- a/ts/src/lower/dynamic.rs +++ b/ts/src/lower/dynamic.rs @@ -78,7 +78,8 @@ impl<'tcx> Translator<'_, 'tcx> { }) } - /// The function trait that calls the closure or `dyn Fn*` that `ty` is, or boxes. + /// The function trait that calls the closure, async closure, or `dyn Fn*` that `ty` is, + /// or boxes. pub fn owned_fn(&self, mut ty: Ty<'tcx>) -> Option { while let ty::Adt(adt, args) = ty.kind() && Std::of(self.tcx, adt.did()) == Some(Std::Box) @@ -86,7 +87,7 @@ impl<'tcx> Translator<'_, 'tcx> { ty = args.type_at(0); } match ty.kind() { - ty::Closure(_, args) => Some(args.as_closure().kind()), + ty::Closure(..) | ty::CoroutineClosure(..) => super::closure_kind(ty), ty::Dynamic(..) => self.dyn_fn(ty).map(|f| f.kind), _ => None, } diff --git a/ts/src/lower/library.rs b/ts/src/lower/library.rs index 146f4bc77..5240052c3 100644 --- a/ts/src/lower/library.rs +++ b/ts/src/lower/library.rs @@ -631,9 +631,9 @@ pub fn clone_copies<'tcx>(t: &super::Translator<'_, 'tcx>, env: TypingEnv<'tcx>, pub fn clone_shares<'tcx>(t: &super::Translator<'_, 'tcx>, env: TypingEnv<'tcx>, ty: Ty<'tcx>) -> bool { match ty.kind() { ty::FnDef(..) => true, - ty::Closure(_, args) => { + ty::Closure(..) | ty::CoroutineClosure(..) => { !super::mir::writes_captures(t.tcx, ty) - && (args.as_closure().upvar_tys().iter()) + && (super::captured(ty).unwrap_or_default().iter()) .all(|capture| clone_copies(t, env, capture) || clone_shares(t, env, capture)) } _ => string(t.tcx, ty), @@ -1536,7 +1536,9 @@ fn mapping<'tcx>( // Through the reference, a slice of the bytes. _ if super::byte_array(ty) => Expr::rt("byteSliceToArray", vec![value]), _ if b.t.std_iter(ty) => return super::iter::clone(b, ty, value, span), - ty::Closure(def_id, _) if !clone_shares(b.t, b.t.typing_env_pub(), ty) => { + ty::Closure(def_id, _) | ty::CoroutineClosure(def_id, _) + if !clone_shares(b.t, b.t.typing_env_pub(), ty) => + { b.t.clone_closure(*def_id); Expr::rt("closureClone", vec![value]) } diff --git a/ts/src/lower/mir/call.rs b/ts/src/lower/mir/call.rs index e54baba62..90976478e 100644 --- a/ts/src/lower/mir/call.rs +++ b/ts/src/lower/mir/call.rs @@ -229,9 +229,12 @@ impl<'m, 'b, 'a, 'tcx> Fx<'m, 'b, 'a, 'tcx> { out: &mut Vec, ) -> Expr { let tcx = self.tcx; - // Calling a closure or function value: `FnOnce::call_once(f, (args,))`. + // Calling a closure or function value: `FnOnce::call_once(f, (args,))`, or + // `AsyncFnOnce::async_call_once`. if let Some(trait_id) = tcx.trait_of_assoc(def_id) - && tcx.is_fn_trait(trait_id) + && let Some(kind) = tcx + .fn_trait_kind_from_def_id(trait_id) + .or_else(|| tcx.async_fn_trait_kind_from_def_id(trait_id)) && let [callee, tupled] = args { let callee_ty = gargs.type_at(0); @@ -274,8 +277,9 @@ impl<'m, 'b, 'a, 'tcx> Fx<'m, 'b, 'a, 'tcx> { } // `FnOnce::call_once` of a closure that `Fn` or `FnMut` call, or of a box of one, // drops it after, as rustc's shim does, where an `FnOnce` closure's body drops - // what it owns. - if tcx.fn_trait_kind_from_def_id(trait_id) == Some(ty::ClosureKind::FnOnce) + // what it owns; of an async closure, it makes the future of rustc's by-move body, + // which owns what the closure captured. + if kind == ty::ClosureKind::FnOnce && self .b .t diff --git a/ts/src/lower/mir/coroutine.rs b/ts/src/lower/mir/coroutine.rs index a613b651e..8be980276 100644 --- a/ts/src/lower/mir/coroutine.rs +++ b/ts/src/lower/mir/coroutine.rs @@ -44,6 +44,16 @@ pub fn info<'tcx>(t: &mut Translator<'_, 'tcx>, def_id: DefId, args: GenericArgs return info.clone(); } let tcx = t.tcx; + // The future of a call that consumes an async closure `Fn` or `FnMut` call owns what the + // closure captured: its body is rustc's by-move one, and its class one of its own. + let by_move = match tcx.type_of(def_id).skip_binder().kind() { + ty::Coroutine(_, identity) => identity.as_coroutine().kind_ty() != args.as_coroutine().kind_ty(), + _ => false, + }; + let body_id = match by_move { + true => tcx.coroutine_by_move_body_def_id(def_id), + false => def_id, + }; let parent = tcx.typeck_root_def_id(def_id); let base = crate::lower::names::future_base(tcx.item_name(parent).as_str()); // The suffix of the instance of `parent` it is part of, in `parent`'s Rust module, then @@ -66,6 +76,9 @@ pub fn info<'tcx>(t: &mut Translator<'_, 'tcx>, def_id: DefId, args: GenericArgs at = tcx.parent(at); } parts.extend(within.into_iter().rev()); + if by_move { + parts.push("once".into()); + } parts.retain(|part| !part.is_empty()); let suffix = parts.join("_"); let sym = t.program.sym(Symbol { @@ -124,7 +137,7 @@ pub fn info<'tcx>(t: &mut Translator<'_, 'tcx>, def_id: DefId, args: GenericArgs }; } }; - let resume = super::instance_mir(t, instance, span); + let resume = super::instance_mir(t, Instance::new_raw(body_id, args), span); let moved = resume .as_ref() .map(|mir| moved_upvars(mir, def_id, layout)) @@ -230,7 +243,7 @@ pub fn info<'tcx>(t: &mut Translator<'_, 'tcx>, def_id: DefId, args: GenericArgs name: String::new(), alias: None, }); - let drop = tcx.optimized_mir(def_id).coroutine_drop().cloned(); + let drop = tcx.optimized_mir(body_id).coroutine_drop().cloned(); let body: Vec = match drop { Some(drop) => { let mir = instance.instantiate_mir_and_normalize_erasing_regions( diff --git a/ts/src/lower/mir/mod.rs b/ts/src/lower/mir/mod.rs index 3de8956e0..8ac42d553 100644 --- a/ts/src/lower/mir/mod.rs +++ b/ts/src/lower/mir/mod.rs @@ -1563,13 +1563,14 @@ impl<'m, 'b, 'a, 'tcx> Fx<'m, 'b, 'a, 'tcx> { // A closure that captures nothing holds nothing, so MIR never assigns it: JS needs // its function. for local in self.mir.local_decls.indices() { - if let ty::Closure(def_id, args) = *self.mir.local_decls[local].ty.kind() + let ty = self.mir.local_decls[local].ty; + if matches!(ty.kind(), ty::Closure(..) | ty::CoroutineClosure(..)) && self.defs[local] == 0 && !self.is_arg(local) && self.uses[local] > 0 && let Slot::Var(name) = self.slots[local].clone() { - let f = self.bare_closure(def_id, args, self.span); + let f = self.bare_closure(ty, self.span); self.assigned[local] = true; entry.push(StmtKind::Expr(Expr::ident(&name).assign(f)).at(None)); } @@ -2641,7 +2642,7 @@ impl<'m, 'b, 'a, 'tcx> Fx<'m, 'b, 'a, 'tcx> { if let Env::Closure(captures) = &self.env && place.local.as_u32() == 1 && place.projection.is_empty() - && matches!(ty.kind(), ty::Closure(..)) + && matches!(ty.kind(), ty::Closure(..) | ty::CoroutineClosure(..)) { let mut glue = self.b.t.closure_glue(ty, &captures.clone(), span); // In a block of its own, whose variable no other drop's can clash with. @@ -3098,7 +3099,9 @@ impl<'tcx> Fx<'_, '_, '_, 'tcx> { stack.extend(adt.all_fields().map(|field| self.b.t.field_ty(field.did, args))) } ty::Adt(_, args) => stack.extend(args.types()), - ty::Closure(_, args) => stack.extend(args.as_closure().upvar_tys()), + ty::Closure(..) | ty::CoroutineClosure(..) => { + stack.extend(crate::lower::captured(ty).unwrap_or_default()) + } _ => {} } } diff --git a/ts/src/lower/mir/place.rs b/ts/src/lower/mir/place.rs index c1e42f8fa..6896c4640 100644 --- a/ts/src/lower/mir/place.rs +++ b/ts/src/lower/mir/place.rs @@ -1384,13 +1384,13 @@ impl<'m, 'b, 'a, 'tcx> Fx<'m, 'b, 'a, 'tcx> { let mir::TerminatorKind::Call { args, .. } = &bb.terminator().kind else { return None; }; - args.iter().find_map(|a| match a.node.constant()?.ty().kind() { - ty::Closure(def_id, args) => Some((*def_id, *args)), - _ => None, + args.iter().find_map(|a| { + let ty = a.node.constant()?.ty(); + matches!(ty.kind(), ty::Closure(..)).then_some(ty) }) }); - if let Some((def_id, args)) = lazy { - return (self.bare_closure(def_id, args, span), true); + if let Some(ty) = lazy { + return (self.bare_closure(ty, span), true); } // A `const` one's `EagerStorage` holds the value of the `const` the macro declares in // the key's own initializer, so defined after the key and before its accessor. The @@ -1533,7 +1533,7 @@ impl<'m, 'b, 'a, 'tcx> Fx<'m, 'b, 'a, 'tcx> { self.b.t.construct(info.sym, &crate::ts::Ctor::Unit, &[], Vec::new()) } ty::Array(..) => Expr::Array(Vec::new()), - ty::Closure(def_id, args) => self.bare_closure(def_id, args, span), + ty::Closure(..) | ty::CoroutineClosure(..) => self.bare_closure(ty, span), ty::Adt(adt, _) if Std::of(tcx, adt.did()) == Some(Std::RangeFull) => Expr::undefined(), _ => self.err(span, format!("a zero-sized constant of type `{ty}`")), }, @@ -1653,14 +1653,14 @@ impl<'m, 'b, 'a, 'tcx> Fx<'m, 'b, 'a, 'tcx> { let tcx = self.tcx; match instance.def { ty::InstanceKind::Item(def_id) if tcx.is_closure_like(def_id) => { - self.bare_closure(def_id, instance.args, span) + self.bare_closure(Ty::new_closure(tcx, def_id, instance.args), span) } ty::InstanceKind::Item(def_id) | ty::InstanceKind::Shim(ty::ShimKind::Reify(def_id, _)) => { self.b.fn_value(def_id, instance.args, span) } // A closure coerced to a function pointer calls it once. ty::InstanceKind::Shim(ty::ShimKind::ClosureOnce { .. }) => match instance.args.type_at(0).kind() { - ty::Closure(def_id, args) => self.bare_closure(*def_id, args, span), + ty::Closure(..) => self.bare_closure(instance.args.type_at(0), span), _ => self.err(span, format!("a pointer to `{instance}`")), }, _ => self.err(span, format!("a pointer to `{instance}`")), @@ -1863,10 +1863,9 @@ pub fn transparent<'tcx>(t: &crate::lower::Translator<'_, 'tcx>, ty: Ty<'tcx>) - /// nothing when written. fn changes_captures<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> bool { match ty.kind() { - ty::Closure(_, args) => { - let closure = args.as_closure(); - let writes = closure.kind() == ty::ClosureKind::FnMut && writes_captures(tcx, ty); - writes || closure.upvar_tys().iter().any(|t| changes_captures(tcx, t)) + ty::Closure(..) | ty::CoroutineClosure(..) => { + let writes = crate::lower::closure_kind(ty) == Some(ty::ClosureKind::FnMut) && writes_captures(tcx, ty); + writes || crate::lower::captured(ty).is_some_and(|tys| tys.iter().any(|t| changes_captures(tcx, t))) } ty::Tuple(tys) => tys.iter().any(|t| changes_captures(tcx, t)), ty::Array(t, _) => changes_captures(tcx, *t), @@ -1878,10 +1877,10 @@ fn changes_captures<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> bool { /// Whether the body of `ty`, a closure, writes a capture that holds state, which a JS /// closure sharing its variables would write for each copy of it. pub fn writes_captures<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> bool { - let ty::Closure(def_id, args) = ty.kind() else { + let (ty::Closure(def_id, _) | ty::CoroutineClosure(def_id, _)) = ty.kind() else { return false; }; - let upvars = args.as_closure().upvar_tys(); + let upvars = crate::lower::captured(ty).unwrap_or_default(); !tcx.is_mir_available(*def_id) || written_captures(tcx.optimized_mir(*def_id)) .into_iter() @@ -1892,7 +1891,7 @@ pub fn writes_captures<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> bool { fn stateless(ty: Ty<'_>) -> bool { match ty.kind() { ty::FnDef(..) => true, - ty::Closure(_, args) => args.as_closure().upvar_tys().is_empty(), + ty::Closure(..) | ty::CoroutineClosure(..) => crate::lower::captured(ty).is_some_and(|tys| tys.is_empty()), ty::Tuple(tys) => tys.is_empty(), _ => false, } diff --git a/ts/src/lower/mir/rvalue.rs b/ts/src/lower/mir/rvalue.rs index 78108edf7..771f1a143 100644 --- a/ts/src/lower/mir/rvalue.rs +++ b/ts/src/lower/mir/rvalue.rs @@ -460,11 +460,15 @@ impl<'m, 'b, 'a, 'tcx> Fx<'m, 'b, 'a, 'tcx> { out: &mut Vec, ) -> Option { match kind { - AggregateKind::Closure(def_id, args) => return Some(self.closure(*def_id, args, ops, span, out)), + AggregateKind::Closure(def_id, args) => { + return Some(self.closure(Ty::new_closure(self.tcx, *def_id, args), ops, span, out)); + } + AggregateKind::CoroutineClosure(def_id, args) => { + return Some(self.closure(Ty::new_coroutine_closure(self.tcx, *def_id, args), ops, span, out)); + } AggregateKind::Coroutine(def_id, args) => { return Some(super::coroutine::construct(self, *def_id, args, ops, span, out)); } - AggregateKind::CoroutineClosure(..) => return Some(self.err(span, "async closures are not supported")), AggregateKind::RawPtr(..) => return Some(self.err(span, "a raw pointer made from parts")), _ => {} } @@ -725,25 +729,25 @@ impl<'m, 'b, 'a, 'tcx> Fx<'m, 'b, 'a, 'tcx> { } /// A closure that captures nothing, as an arrow function. - pub(super) fn bare_closure( - &mut self, - def_id: rustc_hir::def_id::DefId, - args: ty::GenericArgsRef<'tcx>, - span: Span, - ) -> Expr { - self.closure(def_id, args, &IndexVec::new(), span, &mut Vec::new()) + pub(super) fn bare_closure(&mut self, ty: Ty<'tcx>, span: Span) -> Expr { + self.closure(ty, &IndexVec::new(), span, &mut Vec::new()) } - /// A closure, as an arrow function over what it captured. + /// A closure, as an arrow function over what it captured. An async closure's makes the + /// future of a call, borrowing what it captured, and one that owns what drops and that + /// `Fn` or `FnMut` call also carries what makes the future of a call that consumes it, + /// which owns what it captured, as rustc's by-move body does. fn closure( &mut self, - def_id: rustc_hir::def_id::DefId, - args: ty::GenericArgsRef<'tcx>, + ty: Ty<'tcx>, ops: &IndexVec>, span: Span, out: &mut Vec, ) -> Expr { let tcx = self.tcx; + let (ty::Closure(def_id, args) | ty::CoroutineClosure(def_id, args)) = *ty.kind() else { + unreachable!("a closure") + }; let instance = Instance::new_raw(def_id, args); let Some(mir) = super::instance_mir(self.b.t, instance, span) else { return Expr::undefined(); @@ -813,25 +817,46 @@ impl<'m, 'b, 'a, 'tcx> Fx<'m, 'b, 'a, 'tcx> { }; captures.push(Capture { value, pointee: false }); } - let sig = tcx.instantiate_bound_regions_with_erased(args.as_closure().sig()); // A value, whose `()` result is `undefined` as its type says. let ret = self .b .t - .ty(sig.output(), mir.local_decls[mir::RETURN_PLACE].source_info.span); - let ty = Ty::new_closure(tcx, def_id, args); - let glue = match self.b.t.drops(ty) { - true => Some(self.b.t.closure_glue(ty, &captures, span)), - false => None, + .ty(mir.return_ty(), mir.local_decls[mir::RETURN_PLACE].source_info.span); + let drops = self.b.t.drops(ty); + let glue = drops.then(|| self.b.t.closure_glue(ty, &captures, span)); + let by_move = match ty.kind() { + ty::CoroutineClosure(_, args) if drops && args.as_coroutine_closure().kind() != ty::ClosureKind::FnOnce => { + let shim = Instance { + def: ty::InstanceKind::Shim(ty::ShimKind::ConstructCoroutineInClosure { + coroutine_closure_def_id: def_id, + receiver_by_ref: false, + }), + args, + }; + let mir = shim.instantiate_mir_and_normalize_erasing_regions( + tcx, + self.b.t.typing_env_pub(), + ty::EarlyBinder::bind(tcx, tcx.instance_mir(shim.def).clone()), + ); + let ret = self.b.t.ty(mir.return_ty(), span); + let mut inner = Fx::new(&mut *self.b, &mir, Env::Closure(captures.clone()), span); + let inputs = inner.params(); + let body = inner.lower(); + Some(Expr::Arrow(inputs, ret, body)) + } + _ => None, }; let mut inner = Fx::new(&mut *self.b, &mir, Env::Closure(captures), span); let inputs = inner.params(); let body = inner.lower(); let mut f = Expr::Arrow(inputs, ret, body); + if let Some(once) = by_move { + f = Expr::rt("byMove", vec![f, once]); + } let make = made.then(|| self.b.fresh("make")); if let Some(make) = &make { // Its clone, made again of each capture's, in order, as rustc's clones them. - let upvars = args.as_closure().upvar_tys(); + let upvars = crate::lower::captured(ty).unwrap_or_default(); let clones = std::iter::zip(¶ms, upvars) .map(|(param, ty)| { let value = Expr::ident(¶m.name); diff --git a/ts/src/lower/mod.rs b/ts/src/lower/mod.rs index 0c0675494..7b45a068f 100644 --- a/ts/src/lower/mod.rs +++ b/ts/src/lower/mod.rs @@ -1309,7 +1309,7 @@ impl<'a, 'tcx> Translator<'a, 'tcx> { None => None, }, // Its captures change through it, as a JS function's do. - ty::Closure(..) => Some(ObjectKind::Closure), + ty::Closure(..) | ty::CoroutineClosure(..) => Some(ObjectKind::Closure), ty::Coroutine(..) | ty::Dynamic(..) => Some(ObjectKind::Class), _ if self.deferred(ty) => Some(ObjectKind::Class), _ => None, @@ -1454,6 +1454,18 @@ impl<'a, 'tcx> Translator<'a, 'tcx> { }; self.fn_ty(&inputs, sig.output(), span) } + // A function returning the future of each call. + ty::CoroutineClosure(_, args) => { + let sig = + tcx.instantiate_bound_regions_with_erased(args.as_coroutine_closure().coroutine_closure_sig()); + let params = sig + .tupled_inputs_ty + .tuple_fields() + .iter() + .map(|t| self.ty(t, span)) + .collect(); + Type::Func(params, Box::new(self.future_ty(sig.return_ty, span))) + } ty::Adt(adt, args) => self.adt_ty(*adt, args, span), ty::Pat(base, _) => self.ty(*base, span), ty::Coroutine(_, args) => self.future_ty(args.as_coroutine().return_ty(), span), @@ -2053,6 +2065,24 @@ impl<'a, 'tcx> Translator<'a, 'tcx> { } } +/// What the closure or async closure `ty` captured, in order. +pub fn captured<'tcx>(ty: Ty<'tcx>) -> Option<&'tcx ty::List>> { + match ty.kind() { + ty::Closure(_, args) => Some(args.as_closure().upvar_tys()), + ty::CoroutineClosure(_, args) => Some(args.as_coroutine_closure().upvar_tys()), + _ => None, + } +} + +/// The function trait that calls the closure or async closure `ty`. +pub fn closure_kind(ty: Ty<'_>) -> Option { + match ty.kind() { + ty::Closure(_, args) => Some(args.as_closure().kind()), + ty::CoroutineClosure(_, args) => Some(args.as_coroutine_closure().kind()), + _ => None, + } +} + /// Whether `ty` is `[u8; N]`, which is a `Uint8Array`. pub fn byte_array(ty: Ty<'_>) -> bool { matches!(ty.kind(), ty::Array(elem, _) if matches!(elem.kind(), ty::Uint(ty::UintTy::U8))) diff --git a/ts/tests/fixtures.rs b/ts/tests/fixtures.rs index c73a6de37..79b3b00fa 100644 --- a/ts/tests/fixtures.rs +++ b/ts/tests/fixtures.rs @@ -420,10 +420,11 @@ import * as Guard from "./model.Guard.ts"; import {{ blocks, drain, front, sum, watch }} from "./model.ts"; import * as drops from "./drops.ts"; import * as futures from "./futures.ts"; +import * as closures from "./closures.ts"; import {{ harness }} from {harness:?}; export {{ cases, steps }} from {harness:?}; -const fixture = {{ Pending: rt.Pending, u64: {{ of: rt.u64Of }}, Log, Channel, Guard, sum, drain, blocks, watch, front, drops, futures }}; +const fixture = {{ Pending: rt.Pending, u64: {{ of: rt.u64Of }}, Log, Channel, Guard, sum, drain, blocks, watch, front, drops, futures, closures }}; const script = harness(fixture); export const run = (input: rt.ByteSlice) => script(rt.byteSliceView(input)); "# diff --git a/ts/tests/runtime.rs b/ts/tests/runtime.rs index 27993c910..07e642470 100644 --- a/ts/tests/runtime.rs +++ b/ts/tests/runtime.rs @@ -3,9 +3,9 @@ use std::path::PathBuf; use std::process::Command; -/// `rt.spawn` yields to a macrotask once a batch spends its poll budget. +/// `rt.spawn` yields to a macrotask once a batch spends its poll budget, and a signal cancels it. #[test] -fn spawn_budget() { +fn spawn() { let script = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests").join("spawn.ts"); let output = Command::new("node") .arg(script) diff --git a/ts/tests/spawn.ts b/ts/tests/spawn.ts index 8a8cdaeef..862466386 100644 --- a/ts/tests/spawn.ts +++ b/ts/tests/spawn.ts @@ -1,4 +1,4 @@ -// `rt.spawn` on futures that misbehave: one that keeps waking itself yields to a timer +// `rt.spawn` on futures that misbehave, and cancelled: one that keeps waking itself yields to a timer // queued before it once a batch spends its budget of 128 polls, so it cannot starve // timers and I/O, and one that panics as it drops rejects its promise. // @@ -26,8 +26,108 @@ const panicsOnDrop: rt.Future = { poll: () => 1, [Symbol.dispose]: () => rt.panic("drop failed"), }; -const settled = await rt.spawn(panicsOnDrop).then( - () => "resolved", - (err: unknown) => (err instanceof rt.Panic ? err.message : `threw ${err}`), +const settled = await outcome(rt.spawn(panicsOnDrop)); +if (settled !== "panic drop failed") throw new Error(`a panic in drop settled the promise as ${settled}`); + +// Cancelling through an `AbortSignal`: the future drops as Rust drops one, at once and +// never polled again, or as the poll the abort comes from returns pending, and the +// promise rejects with the signal's reason; one ready in that poll resolves instead. +const log: string[] = []; +/** The waker of the last poll that returned pending. */ +let parked: rt.Waker | undefined; + +/** A future that logs each poll and its drop, ready on poll `ready`, and runs `during` in each poll. */ +function logged(name: string, ready = Infinity, during?: () => void): rt.Future { + let polls = 0; + return { + poll(cx: rt.Context): rt.Poll { + log.push(`${name} poll`); + during?.(); + if (++polls >= ready) return name; + parked = cx.clone(); + return rt.Pending; + }, + [Symbol.dispose](): void { + log.push(`${name} drop`); + }, + }; +} + +/** How `promise` settles. */ +function outcome(promise: Promise): Promise { + return promise.then( + (value) => `resolved ${value}`, + (err: unknown) => (err instanceof rt.Panic ? `panic ${err.message}` : `rejected ${err}`), + ); +} + +async function expect(name: string, run: () => Promise, expected: string[]): Promise { + log.length = 0; + log.push(await run()); + if (log.join("; ") !== expected.join("; ")) throw new Error(`${name}: ${log.join("; ")}, not ${expected.join("; ")}`); +} + +await expect("aborted before", async () => outcome(rt.spawn(logged("a"), AbortSignal.abort("early"))), ["a drop", "rejected early"]); +await expect( + "aborted before its first poll", + async () => { + const abort = new AbortController(); + const done = rt.spawn(logged("a"), abort.signal); + abort.abort("now"); + log.push("aborted"); + return outcome(done); + }, + ["a drop", "aborted", "rejected now"], +); +await expect( + "aborted while pending", + async () => { + const abort = new AbortController(); + const done = rt.spawn(logged("a"), abort.signal); + await Promise.resolve(); + abort.abort("later"); + log.push("aborted"); + // A wake after the drop polls nothing. + parked?.wake(); + await Promise.resolve(); + return outcome(done); + }, + ["a poll", "a drop", "aborted", "rejected later"], +); +await expect( + "aborted in its own poll", + async () => { + const abort = new AbortController(); + return outcome(rt.spawn(logged("a", Infinity, () => abort.abort("inside")), abort.signal)); + }, + ["a poll", "a drop", "rejected inside"], +); +await expect( + "aborted in the poll it is ready in", + async () => { + const abort = new AbortController(); + return outcome(rt.spawn(logged("a", 1, () => abort.abort("inside")), abort.signal)); + }, + ["a poll", "a drop", "resolved a"], +); +await expect( + "aborted after it returned", + async () => { + const abort = new AbortController(); + const done = await outcome(rt.spawn(logged("a", 1), abort.signal)); + abort.abort("late"); + return done; + }, + ["a poll", "a drop", "resolved a"], +); +await expect( + "aborted with a drop that panics", + async () => { + const abort = new AbortController(); + const future = logged("a"); + const done = rt.spawn({ poll: (cx) => future.poll(cx), [Symbol.dispose]: () => rt.panic("drop failed") }, abort.signal); + abort.abort("now"); + return outcome(done); + }, + ["panic drop failed"], ); -if (settled !== "drop failed") throw new Error(`a panic in drop settled the promise as ${settled}`); diff --git a/ts/tests/task.ts b/ts/tests/task.ts index bc89d1eaf..78ba2e729 100644 --- a/ts/tests/task.ts +++ b/ts/tests/task.ts @@ -66,6 +66,7 @@ export interface Fixture { boxed(rx: Consumer, guard: Guard): Future; wakers(rx: Consumer, guard: Guard): Future; }; + closures: { closures(rx: Consumer, guard: Guard): Future }; } /** What every waker of one task points at. */ @@ -330,6 +331,13 @@ export const steps: [string, (r: Run, arg: number) => void][] = [ }, ], ["lists", (r, arg) => r.f.drops.lists(r.log, 1000 * r.exec.tasks.length, arg)], + [ + "closures", + (r, arg) => { + const c = pick(r.channels.length, arg); + if (c !== undefined) r.exec.spawn(r.f.closures.closures(r.f.Channel.consumer(r.channels[c]), guard(r))); + }, + ], ]; /** The script runner, as `harness.rs` runs it natively. */ @@ -426,4 +434,12 @@ export const cases: Uint8Array[] = [ // another task's in between. script(["open", 0], ["wakers", 0], ["run", 0], ["send", 3], ["run", 0], ["close", 0], ["run", 0]), script(["open", 0], ["wakers", 0], ["wakers", 0], ["run", 0], ["send", 2], ["step", 0], ["step", 0], ["drop", 1], ["send", 5], ["run", 0], ["drop", 0]), + // Async closures, cancelled at each await in turn: a borrowing closure's own future, + // one through `AsyncFnMut`, the future that owns a consumed closure's guard, a read + // beside closures that borrow and own, and the future of a consumed box of a closure; + // then returning, and closed early. + ...Array.from({ length: 7 }, (_, sends) => + script(["open", 0], ["closures", 0], ["run", 0], ...Array.from({ length: sends }, (_, i): [string, number][] => [["send", i + 1], ["run", 0]]).flat(), ["drop", 0]), + ), + script(["open", 0], ["closures", 0], ["run", 0], ["send", 6], ["run", 0], ["close", 0], ["run", 0]), ];