File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
compiler/rustc_target/src Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,14 @@ macro_rules! target_spec_enum {
137137 $( #[ $variant_attr: meta] ) *
138138 $Variant,
139139 ) *
140+ /// The vast majority of the time, the compiler deals with a fixed
141+ /// set of values, so it is convenient for them to be represented in
142+ /// an enum. However, it is possible to have arbitrary values in a
143+ /// target JSON file (which can be parsed when `--target` is
144+ /// specified). This might occur, for example, for an out-of-tree
145+ /// codegen backend that supports a value (e.g. architecture or OS)
146+ /// that rustc currently doesn't know about. This variant exists as
147+ /// an escape hatch for such cases.
140148 $( #[ $other_variant_attr] ) *
141149 $OtherVariant( crate :: spec:: StaticCow <str >) ,
142150 }
Original file line number Diff line number Diff line change @@ -1884,13 +1884,6 @@ crate::target_spec_enum! {
18841884 X86_64 = "x86_64" ,
18851885 Xtensa = "xtensa" ,
18861886 }
1887- /// The vast majority of the time, the compiler deals with a fixed set of
1888- /// target architectures, so it is convenient for them to be represented in
1889- /// an enum. However, it is possible to have arbitrary values for the "arch"
1890- /// field in a target JSON file (which can be parsed when `--target` is
1891- /// specified). This might occur, for example, for an out-of-tree codegen
1892- /// backend that supports an architecture that rustc currently doesn't know
1893- /// about. This variant exists as an escape hatch for such cases.
18941887 other_variant = Unknown ;
18951888}
18961889
You can’t perform that action at this time.
0 commit comments