about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-13 10:41:50 +0000
committerbors <bors@rust-lang.org>2023-03-13 10:41:50 +0000
commitff23e48c30909ea75e71a5755513b55cdbac0ca7 (patch)
treedb665b356706297ba1fdb86e348f6e431b22fb1d /tests/rustdoc-js-std/parser-errors.js
parente07c6b48994909dca1b80f64923a471795870abb (diff)
parent15f24234c874df0f5225229a6fd5c0514f2c7ceb (diff)
downloadrust-ff23e48c30909ea75e71a5755513b55cdbac0ca7.tar.gz
rust-ff23e48c30909ea75e71a5755513b55cdbac0ca7.zip
Auto merge of #108471 - clubby789:unbox-the-syntax, r=Nilstrieb,est31
Remove `box_syntax`

r? `@Nilstrieb`

This removes the feature `box_syntax`, which allows the use of `box <expr>` to create a Box, and finalises removing use of the feature from the compiler. `box_patterns` (allowing the use of `box <pat>` in a pattern) is unaffected.
It also removes `ast::ExprKind::Box` - the only way to create a 'box' expression now is with the rustc-internal `#[rustc_box]` attribute.
As a temporary measure to help users move away, `box <expr>` now parses the inner expression, and emits a `MachineApplicable` lint to replace it with `Box::new`

Closes #49733
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions