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

Enabled unstable feature marked as en error #5684

Open
krojew opened this issue Jul 1, 2020 · 3 comments
Open

Enabled unstable feature marked as en error #5684

krojew opened this issue Jul 1, 2020 · 3 comments
Labels
bug subsystem::code insight General label for issues related to code understanding: highlighting, completion, annotation, etc.

Comments

@krojew
Copy link

krojew commented Jul 1, 2020

Environment

  • IntelliJ Rust plugin version: 0.2.125.3191-201
  • Rust toolchain version: 1.46 nightly
  • IDE name and version: CLion 2020.1
  • Operating system: Windows 10

Problem description

Enabled unstable features are still underlined in red with X is unstable [E0658] error.

Steps to reproduce

Enable an unstable feature, e.g. #![feature(total_cmp)] and compare two f32:

let o = 1f32.total_cmp(&2f32);

@Undin Undin added bug subsystem::code insight General label for issues related to code understanding: highlighting, completion, annotation, etc. labels Jul 1, 2020
@Undin
Copy link
Member

Undin commented Jul 1, 2020

@krojew Could you provide an exact code example?
I can't reproduce it for the following code:

#![feature(total_cmp)]

fn main() {
    let o = 1f32.total_cmp(&2f32);
}

@krojew
Copy link
Author

krojew commented Jul 1, 2020

Managed to replicate with trivial lib crate:

image

@cwfitzgerald
Copy link

Most experimental features I use are marked this way by CLion, and it's quite annoying. While a full fix would be preferred of course, in the interim, if some way to disable this specific check was added, it would allow time for this to be properly fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug subsystem::code insight General label for issues related to code understanding: highlighting, completion, annotation, etc.
Projects
None yet
Development

No branches or pull requests

3 participants