Login
You're viewing the techdon.dev public feed.
  • Mar 17, 2026, 11:05 AM

    The message on an invalid target feature now suggests the most similar valid target feature names, for when it's been a while and you can't quite remember the exact target feature name.

    github.com/rust-lang/rust/pull

    You can often make improvements like this by pattern matching on the surrounding code, you should give it a go when there are errors you run into that could be more helpful.

    #rustlang

    The new error message text that includes valid suggestions:

error: the feature named `avx511` is not valid for this target
 --> src/main.rs:1:18
  |
1 | #[target_feature(enable = "avx511")]
  |                  ^^^^^^^^^^^^^^^^^ `avx511` is not valid for this target
  |
  = help: valid names are: `avx512f`, `avx`, `avx10.1`, `avx2`, and `avx512bw` and 74 more
    💬 0🔄 7⭐ 14