Rust errors / Attributes, macros and features
Rust compiler error · checked with rustc 1.99.0
Rust error E0779: #### Note: this error code is no longer emitted by the compiler An unknown argument was given to the `instruction_set` attribute
What it means#### Note: this error code is no longer emitted by the compiler An unknown argument was given to the instruction_set attribute.
Retired: rustc no longer emits this error code. You may still see it in old answers, books and CI logs from older toolchains; the explanation below is kept for reference.
The compiler team's explanation
Note: this error code is no longer emitted by the compiler
An unknown argument was given to the instruction_set attribute.
Erroneous code example:
#![feature(isa_attribute)]
#[instruction_set(intel::x64)] // error: invalid argument
pub fn something() {}
fn main() {}
The instruction_set attribute only supports two arguments currently:
- arm::a32
- arm::t32
All other arguments given to the instruction_set attribute will return this error. Example:
#![feature(isa_attribute)]
#[cfg_attr(target_arch="arm", instruction_set(arm::a32))] // ok!
pub fn something() {}
fn main() {}
For more information see the instruction_set attribute section of the Reference.
From rustc --explain E0779 (1.99.0), part of the Rust project, MIT or Apache-2.0. Official page.
Related errors
Up next
Often hit nextE0658: is unstableA related error from the same family.Read it next →Did this answer your question?