Rust IDE not detecting Result from error_chain, thinks I'm using the std::result::Result

Viewed 312

I have an errors.rs file with error_chain! {}, which exports Result, ResultExt, Error and ErrorKind.

If I use self::errors::*, IntelliJ thinks that I'm using the default Result (std::result::Result, I think). However, if I explicitly import the types using use self::errors::{Result, ...}, everything works out hunky dory.

I can tell because the standard result has two type params, but the error_chain one has only one.

In either case, it still compiles.

I'm using the standard Rust IntelliJ plugin, version 0.1.0.1991.

Help! Does anyone know how to get the plugin to understand what the macro is doing?

1 Answers
Related