Skip to content

Conversation

@dianne
Copy link
Contributor

@dianne dianne commented Nov 4, 2025

Three things:

  • I've added some text to expr.deref reenforcing that the * operator's behavior on boxes is built into the language.
  • I've added a rule under expr.deref specifying that * may move out of boxes (linking to lang-types.box and expr.move.movable-place where this is also specified).
  • To get the places where that rule is printed interconnected, I've added a link from lang-types.box.deref to expr.move.movable-place and redirected the Box<T> link on expr.move.movable-place to lang-types.box (which has a link to its old referent in the alloc docs). lang-types.box.deref and expr.move.movable-place already both linked to expr.deref.

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Nov 4, 2025
@dianne dianne force-pushed the deref-box-special-case branch from 956fa97 to d740b23 Compare November 4, 2025 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: The marked PR is awaiting review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants