Closed
Description
I was sloppy when I implemented #22173 and did not include a test. So, surprise, a follow-on commit a few days later broke it.
As self-punishment for neglecting to include a regression test, I am assigning myself the task of reviewing our test suite to make sure that every feature-gate has a test.
Here is a transcribed list of feature gates, based on feature_gate.rs, that I have annotated according to whether the feature is Accepted/Removed (and thus needs no tests), Active/Deprecated but has tests already (marked with an x
, or Active/Deprecated but has no tests that I saw via a cursory grep/skim.
- -
("globs", "1.0.0", Accepted), - -
("macro_rules", "1.0.0", Accepted), - -
("struct_variant", "1.0.0", Accepted), - - ("asm", "1.0.0", Active),
- -
("managed_boxes", "1.0.0", Removed), - - ("non_ascii_idents", "1.0.0", Active),
- - ("thread_local", "1.0.0", Active),
- - ("link_args", "1.0.0", Active),
- -
("phase", "1.0.0", Removed), - - ("plugin_registrar", "1.0.0", Active),
- gated-plugin_registrar.rs but it is not clear whether this is testing the
plugin
gate or theplugin_registrar
gate. From the error message it seems like theplugin_registrar
gate is firing.
- gated-plugin_registrar.rs but it is not clear whether this is testing the
- - ("log_syntax", "1.0.0", Active),
- - ("trace_macros", "1.0.0", Active),
- - ("concat_idents", "1.0.0", Active),
- - ("unsafe_destructor", "1.0.0", Active),
- - ("intrinsics", "1.0.0", Active),
- - ("lang_items", "1.0.0", Active),
- - ("simd", "1.0.0", Active),
- -
("default_type_params", "1.0.0", Accepted), - - ("quote", "1.0.0", Active),
- - ("link_llvm_intrinsics", "1.0.0", Active),
- - ("linkage", "1.0.0", Active),
- -
("struct_inherit", "1.0.0", Removed), - -
("quad_precision_float", "1.0.0", Removed), - - ("rustc_diagnostic_macros", "1.0.0", Active),
- - ("unboxed_closures", "1.0.0", Active),
- -
("import_shadowing", "1.0.0", Removed), - - ("advanced_slice_patterns", "1.0.0", Active),
- -
("tuple_indexing", "1.0.0", Accepted), - -
("associated_types", "1.0.0", Accepted), - - ("visible_private_types", "1.0.0", Active),
- -
("slicing_syntax", "1.0.0", Accepted), - - ("box_syntax", "1.0.0", Active), gated-box-syntax.rs
- - ("on_unimplemented", "1.0.0", Active),
- - ("simd_ffi", "1.0.0", Active), gated-simd-ffi.rs
- -
("if_let", "1.0.0", Accepted), - -
("while_let", "1.0.0", Accepted), - - ("plugin", "1.0.0", Active),
- gated-plugin_registrar.rs but it is not clear whether this is testing the
plugin
gate or theplugin_registrar
gate
- gated-plugin_registrar.rs but it is not clear whether this is testing the
- - ("start", "1.0.0", Active),
- - ("main", "1.0.0", Active),
- -
("issue_5723_bootstrap", "1.0.0", Accepted), - -
("opt_out_copy", "1.0.0", Removed), - - ("old_orphan_check", "1.0.0", Deprecated),
- - ("old_impl_check", "1.0.0", Deprecated),
- - ("optin_builtin_traits", "1.0.0", Active),
- - ("int_uint", "1.0.0", Active),
- - ("macro_reexport", "1.0.0", Active), gated-macro-reexports.rs
- -
("test_accepted_feature", "1.0.0", Accepted), - -
("test_removed_feature", "1.0.0", Removed), - - ("staged_api", "1.0.0", Active), staged_api.rs
- - ("unmarked_api", "1.0.0", Active),
- - ("no_std", "1.0.0", Active),
- - ("box_patterns", "1.0.0", Active), gated-box-patterns.rs
- - ("unsafe_no_drop_flag", "1.0.0", Active),
- - ("custom_attribute", "1.0.0", Active),
- - ("custom_derive", "1.0.0", Active), single-derive-attr.rs
- - ("rustc_attrs", "1.0.0", Active),
- - ("static_assert", "1.0.0", Active),
- - ("allow_internal_unstable", "1.0.0", Active),