forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--print option to list available feature gates
The option is only made available on nightly builds, for the obvious reason. While we're here, also prevent the unstable `target-spec-json` (tracking issue rust-lang#38338) from showing up in the --help on stable builds (although the way in which we accomplish this is slightly clumsy for lifetime reasons, as noted in the FIXME). We make REMOVED_FEATURES, ACCEPTED_FEATURES, &c. public for consistency, even though the functionality at issue only needs ACTIVE_FEATURES. The UI test will add a little bit of friction for future feature developers, but it's better than under-testing. Resolves rust-lang#38768.
- Loading branch information
1 parent
cbf5d39
commit cfe0033
Showing
5 changed files
with
185 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
// compile-flags: --print unstable-features | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
| feature | version | issue | | ||
----------------------------------------------------- | ||
| abi_msp430_interrupt | 1.16.0 | 38487 | | ||
| abi_ptx | 1.15.0 | — | | ||
| abi_sysv64 | 1.13.0 | 36167 | | ||
| abi_thiscall | 1.19.0 | — | | ||
| abi_unadjusted | 1.16.0 | — | | ||
| abi_vectorcall | 1.7.0 | — | | ||
| abi_x86_interrupt | 1.17.0 | 40180 | | ||
| advanced_slice_patterns | 1.0.0 | 23121 | | ||
| allocator_internals | 1.20.0 | — | | ||
| allow_fail | 1.19.0 | 42219 | | ||
| allow_internal_unsafe | 1.0.0 | — | | ||
| allow_internal_unstable | 1.0.0 | — | | ||
| asm | 1.0.0 | 29722 | | ||
| associated_type_defaults | 1.2.0 | 29661 | | ||
| attr_literals | 1.13.0 | 34981 | | ||
| box_patterns | 1.0.0 | 29641 | | ||
| box_syntax | 1.0.0 | 27779 | | ||
| catch_expr | 1.17.0 | 31436 | | ||
| cfg_target_feature | 1.4.0 | 29717 | | ||
| cfg_target_has_atomic | 1.9.0 | 32976 | | ||
| cfg_target_thread_local | 1.7.0 | 29594 | | ||
| cfg_target_vendor | 1.5.0 | 29718 | | ||
| clone_closures | 1.22.0 | 44490 | | ||
| compiler_builtins | 1.13.0 | — | | ||
| concat_idents | 1.0.0 | 29599 | | ||
| conservative_impl_trait | 1.12.0 | 34511 | | ||
| const_fn | 1.2.0 | 24111 | | ||
| const_indexing | 1.4.0 | 29947 | | ||
| copy_closures | 1.22.0 | 44490 | | ||
| custom_attribute | 1.0.0 | 29642 | | ||
| custom_derive | 1.0.0 | 29644 | | ||
| decl_macro | 1.17.0 | 39412 | | ||
| default_type_parameter_fallback | 1.3.0 | 27336 | | ||
| doc_cfg | 1.21.0 | 43781 | | ||
| doc_masked | 1.21.0 | 44027 | | ||
| dotdoteq_in_patterns | 1.22.0 | 28237 | | ||
| dropck_eyepatch | 1.10.0 | 34761 | | ||
| dropck_parametricity | 1.3.0 | 28498 | | ||
| exclusive_range_pattern | 1.11.0 | 37854 | | ||
| fn_must_use | 1.21.0 | 43302 | | ||
| fundamental | 1.0.0 | 29635 | | ||
| generators | 1.21.0 | — | | ||
| generic_param_attrs | 1.11.0 | 34761 | | ||
| global_allocator | 1.20.0 | — | | ||
| global_asm | 1.18.0 | 35119 | | ||
| i128_type | 1.16.0 | 35118 | | ||
| inclusive_range_syntax | 1.7.0 | 28237 | | ||
| intrinsics | 1.0.0 | — | | ||
| lang_items | 1.0.0 | — | | ||
| link_args | 1.0.0 | 29596 | | ||
| link_cfg | 1.14.0 | 37406 | | ||
| link_llvm_intrinsics | 1.0.0 | 29602 | | ||
| linkage | 1.0.0 | 29603 | | ||
| log_syntax | 1.0.0 | 29598 | | ||
| macro_reexport | 1.0.0 | 29638 | | ||
| macro_vis_matcher | 1.18.0 | 41022 | | ||
| main | 1.0.0 | 29634 | | ||
| match_beginning_vert | 1.21.0 | 44101 | | ||
| match_default_bindings | 1.22.0 | 42640 | | ||
| naked_functions | 1.9.0 | 32408 | | ||
| needs_allocator | 1.4.0 | 27389 | | ||
| needs_panic_runtime | 1.10.0 | 32837 | | ||
| never_type | 1.13.0 | 35121 | | ||
| no_core | 1.3.0 | 29639 | | ||
| no_debug | 1.5.0 | 29721 | | ||
| non_ascii_idents | 1.0.0 | 28979 | | ||
| omit_gdb_pretty_printer_section | 1.5.0 | — | | ||
| on_unimplemented | 1.0.0 | 29628 | | ||
| optin_builtin_traits | 1.0.0 | 13231 | | ||
| overlapping_marker_traits | 1.18.0 | 29864 | | ||
| panic_runtime | 1.10.0 | 32837 | | ||
| placement_in_syntax | 1.0.0 | 27779 | | ||
| platform_intrinsics | 1.4.0 | 27731 | | ||
| plugin | 1.0.0 | 29597 | | ||
| plugin_registrar | 1.0.0 | 29597 | | ||
| prelude_import | 1.2.0 | — | | ||
| proc_macro | 1.16.0 | 38356 | | ||
| profiler_runtime | 1.18.0 | — | | ||
| quote | 1.0.0 | 29601 | | ||
| repr128 | 1.16.0 | 35118 | | ||
| repr_align | 1.17.0 | 33626 | | ||
| repr_simd | 1.4.0 | 27731 | | ||
| rustc_attrs | 1.0.0 | 29642 | | ||
| rustc_const_unstable | 1.0.0 | — | | ||
| rustc_diagnostic_macros | 1.0.0 | — | | ||
| sanitizer_runtime | 1.17.0 | — | | ||
| simd | 1.0.0 | 27731 | | ||
| simd_ffi | 1.0.0 | 27731 | | ||
| slice_patterns | 1.0.0 | 23121 | | ||
| specialization | 1.7.0 | 31844 | | ||
| staged_api | 1.0.0 | — | | ||
| start | 1.0.0 | 29633 | | ||
| static_nobundle | 1.16.0 | 37403 | | ||
| stmt_expr_attributes | 1.6.0 | 15701 | | ||
| structural_match | 1.8.0 | 31434 | | ||
| target_feature | 1.15.0 | — | | ||
| thread_local | 1.0.0 | 29594 | | ||
| trace_macros | 1.0.0 | 29598 | | ||
| type_ascription | 1.6.0 | 23416 | | ||
| unboxed_closures | 1.0.0 | 29625 | | ||
| underscore_lifetimes | 1.22.0 | 44524 | | ||
| unsized_tuple_coercion | 1.20.0 | 42877 | | ||
| untagged_unions | 1.13.0 | 32836 | | ||
| unwind_attributes | 1.4.0 | — | | ||
| use_extern_macros | 1.15.0 | 35896 | | ||
| used | 1.18.0 | 40289 | |