File tree 1 file changed +4
-5
lines changed
compiler/rustc_codegen_ssa/src/traits
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,14 @@ pub trait CodegenBackend {
45
45
46
46
fn print ( & self , _req : & PrintRequest , _out : & mut String , _sess : & Session ) { }
47
47
48
- /// Returns two feature sets:
49
- /// - The first has the features that should be set in `cfg(target_features)`.
50
- /// - The second is like the first, but also includes unstable features.
51
- ///
52
- /// RUSTC_SPECIFIC_FEATURES should be skipped here, those are handled outside codegen.
48
+ /// Collect target-specific options that should be set in `cfg(...)`, including
49
+ /// `target_feature` and support for unstable float types.
53
50
fn target_config ( & self , _sess : & Session ) -> TargetConfig {
54
51
TargetConfig {
55
52
target_features : vec ! [ ] ,
56
53
unstable_target_features : vec ! [ ] ,
54
+ // `true` is used as a default so backends need to acknowledge when they do not
55
+ // support the float types, rather than accidentally quietly skipping all tests.
57
56
has_reliable_f16 : true ,
58
57
has_reliable_f16_math : true ,
59
58
has_reliable_f128 : true ,
You can’t perform that action at this time.
0 commit comments