Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupport box_syntax feature #10276

Closed
neonaot opened this issue Mar 20, 2023 · 0 comments · Fixed by #10572
Closed

Unsupport box_syntax feature #10276

neonaot opened this issue Mar 20, 2023 · 0 comments · Fixed by #10572
Assignees
Labels
subsystem::code insight General label for issues related to code understanding: highlighting, completion, annotation, etc.

Comments

@neonaot
Copy link
Member

neonaot commented Mar 20, 2023

Environment

  • IntelliJ Rust plugin version: 0.4.191.5270-231-nightly
  • Rust toolchain version: 1.70.0-nightly (22f247c6f 2023-03-13) x86_64-apple-darwin
  • IDE name and version: CLion 2023.1 Beta (CL-231.8109.80)
  • Operating system: macOS 12.5.1
  • Macro expansion: enabled
  • Additional experimental features: org.rust.cargo.emulate.terminal

Problem description

See rust-lang/rust#108471
image
We suggest adding this feature for let b = box 5; and we use (support) it in type inference.

It will be helpful to have a quick to transform let a = box 5 to let a = Box::new(5).

Steps to reproduce

#![feature(box_syntax)]

fn main() {
    let b = box 5;
}
@neonaot neonaot added the subsystem::type inference & name resolution Issues related to name resolution and/or type inference label Mar 20, 2023
@mchernyavsky mchernyavsky added subsystem::code insight General label for issues related to code understanding: highlighting, completion, annotation, etc. and removed subsystem::type inference & name resolution Issues related to name resolution and/or type inference labels Apr 20, 2023
@bors bors bot closed this as completed in f121641 Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subsystem::code insight General label for issues related to code understanding: highlighting, completion, annotation, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants