Unable to compile hello world due to "ANOMALY: meaningless REX prefix used"

Hi there. Can't build hello world with pretty cryptic error message. Here is my:

main.rs:

fn main() {
    println!("Hello, world!");
}

Cargo.toml

[package]
name = "hello_cargo"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]

Full error log:

[ERROR rust_analyzer::main_loop] FetchWorkspaceError:
rust-analyzer failed to load workspace: Failed to load the project at D:\Coding\rust-test\hello_cargo\Cargo.toml: Failed to read Cargo metadata from Cargo.toml file D:\Coding\rust-test\hello_cargo\Cargo.toml, Some(Version { major: 1, minor: 74, patch: 0 }): Failed to run `"cargo" "metadata" "--format-version" "1" "--manifest-path" "D:\\Coding\\rust-test\\hello_cargo\\Cargo.toml" "--filter-platform" "x86_64-pc-windows-msvc"`: `cargo metadata` exited with an error: error: failed to parse the cfg from `rustc --print=cfg`, got:
___.exe
lib___.rlib
___.dll
___.dll
___.lib
___.dll
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-msvc
packed
___
debug_assertions
panic="unwind"
proc_macro
target_arch="x86_64"
target_endian="little"
target_env="msvc"
target_family="windows"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_os="windows"
target_pointer_width="64"
target_vendor="pc"
windows
[0x7FFFDF225B20] ANOMALY: meaningless REX prefix used
[0x7FFFDF223EB0] ANOMALY: meaningless REX prefix used
[0x7FFFDF250C80] ANOMALY: meaningless REX prefix used
[0x7FFFDF225000] ANOMALY: meaningless REX prefix used
[0x7FFFDF234010] ANOMALY: meaningless REX prefix used
[0x7FFFDD79A3F0] ANOMALY: meaningless REX prefix used
[0x7FFFDFF0C450] ANOMALY: meaningless REX prefix used


Caused by:
  failed to parse `[0x7FFFDF225B20] ANOMALY: meaningless REX prefix used` as a cfg expression: unexpected character `[` in cfg, expected parens, a comma, an identifier, or a string


It's not related to Rust. It seems that it's about faulty GPU drivers: c++ - ANOMALY: meaningless REX prefix used - Stack Overflow

1 Like