Intellij-rust: Autocompletion for builtin macros

Created on 24 Mar 2019  路  1Comment  路  Source: intellij-rust/intellij-rust

Environment

  • Intellij-Rust plugin version: v0.2.94.2119-191
  • Rust toolchain version: 1.33.0 (2aa4c46cf 2019-02-28)
  • IDE name and version: IntelliJ IDEA 2019.1 (Ultimate Edition) Build #IU-191.6183.62, built on March 21, 2019
  • Operating system: macOS 10.14.3

Problem description

There is no assert! macro complete suggestion:
image

Also, it's impossible to navigate to its definition.
This seems to be strange, since if you use the assert_ne! macro and navigate to its declaration, the file macros.rs opens and there's an assert macro declaration in the bottom of it.

Would be also good to double check the other macros.

bug code insight

Most helpful comment

assert! macro is builtin. Definition in macros.rs exists only for documentation generation (pay attention to #[cfg(rustdoc)] on the module and the absence of #[macro_use]. So we can't navigate to it. BUT it is true that we should be able to complete builtin macros.

>All comments

assert! macro is builtin. Definition in macros.rs exists only for documentation generation (pay attention to #[cfg(rustdoc)] on the module and the absence of #[macro_use]. So we can't navigate to it. BUT it is true that we should be able to complete builtin macros.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

es50678 picture es50678  路  3Comments

joslopgar picture joslopgar  路  3Comments

Juici picture Juici  路  3Comments

evanjpw picture evanjpw  路  3Comments

stonenice picture stonenice  路  3Comments