Intellij-rust: Support const generics

Created on 7 Jun 2019  路  3Comments  路  Source: intellij-rust/intellij-rust


Now that const generics (rust-lang/rust#44580) is usable in nightly, it would be great if it could be supported in intellij-rust, at least the syntax if not completion etc. Right now they don't seem to parse correctly and produce errors including the two shown below as well as breaking indentation in struct declarations. This code compiles on recent nightlies (2019-06-05).

Screen Shot 2019-06-07 at 7 59 56 AM
Screen Shot 2019-06-07 at 8 04 30 AM

  • [x] parsing
  • [x] name resolution/completion
  • [x] type inference
  • [ ] annotations & inspections

    • [x] "experimental feature" annotation

    • [ ] fix "X must be declared prior to Y" inspection

    • [ ] "wrong number of const arguments" inspection

  • [x] basic const evaluation
  • [x] check types of const arguments
  • [x] special highlighting
E-hard feature meta rust

Most helpful comment

Ooooooooooooohhhhhhhhhhhh noooooooooooooooo 馃槥馃槥馃槥

All 3 comments

Ooooooooooooohhhhhhhhhhhh noooooooooooooooo 馃槥馃槥馃槥

@mchernyavsky would you like to implement it ?)?)?) :):):)

Hey @mchernyavsky @vlad20012 , what's the status of this issue? Can I offer help in order to resolve it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HighCommander4 picture HighCommander4  路  3Comments

itmuckel picture itmuckel  路  3Comments

SomeoneToIgnore picture SomeoneToIgnore  路  3Comments

evanjpw picture evanjpw  路  3Comments

Undin picture Undin  路  3Comments