Skip to content

remove Box::pin_in - #166672

Open
maxdexh wants to merge 1 commit into
rust-lang:mainfrom
maxdexh:who-u-callin-pinhead
Open

maxdexh wants to merge 1 commit into
rust-lang:mainfrom
maxdexh:who-u-callin-pinhead

Conversation

@maxdexh

@maxdexh maxdexh commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Alternative to #166218.

r? JohnTitor

@rustbot rustbot added A-box Area: Our favorite opsem complication S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 27, 2026
@maxdexh maxdexh added the S-waiting-on-t-libs Status: Awaiting decision from T-libs label Nov 27, 2026
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job test-aarch64-gnu-llvm-22-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
-   --> $DIR/157089-box-pin-in.rs:18:59
+ error[E0599]: no associated function or constant named `pin_in` found for struct `Box<_, _>` in the current scope
+   --> $DIR/157089-box-pin-in.rs:18:49
3    |
4 LL |     let _: Pin<Box<i32, UntrustedAlloc>> = Box::pin_in(1, UntrustedAlloc);
-    |                                            -----------    ^^^^^^^^^^^^^^ unsatisfied trait bound
-    |                                            |
-    |                                            required by a bound introduced by this call
+    |                                                 ^^^^^^ associated function or constant not found in `Box<_, _>`
8    |
---
To only update this specific test, also pass `--test-args allocator/157089-box-pin-in.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR LD_LIBRARY_PATH="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/lib:/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/allocator/157089-box-pin-in/auxiliary:" RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/allocator/157089-box-pin-in.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "-Zthreads=1" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/allocator/157089-box-pin-in" "-Znext-solver=coherence" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2015"
stdout: none
--- stderr -------------------------------
error[E0599]: no associated function or constant named `pin_in` found for struct `Box<_, _>` in the current scope
##[error]  --> /checkout/tests/ui/allocator/157089-box-pin-in.rs:18:49
   |
LL |     let _: Pin<Box<i32, UntrustedAlloc>> = Box::pin_in(1, UntrustedAlloc);
   |                                                 ^^^^^^ associated function or constant not found in `Box<_, _>`
   |
note: if you're trying to build a new `Box<_, _>` consider using one of the following associated functions:
      Box::<T>::new
      Box::<T>::new_uninit
      Box::<T>::new_zeroed

@maxdexh maxdexh added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 29, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-box Area: Our favorite opsem complication S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. S-waiting-on-t-libs Status: Awaiting decision from T-libs T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants