rust/src/test/ui/feature-gates
Florian Warzecha 3948b054dc
add rustc_allow_const_fn_unstable attribute
allow_internal_unstable is currently used
to side-step feature gate and stability checks.
While it was originally only meant to be used
only on macros, its use was expanded to
const functions.

This commit prepares stricter checks for the usage of allow_internal_unstable (only on macros)
and introduces the rustc_allow_const_fn_unstable attribute for usage on functions.

See rust-lang/rust#69399
2020-10-21 18:04:18 +02:00
..
auxiliary
bench.rs
bench.stderr
feature-gate-abi_unadjusted.rs
feature-gate-abi_unadjusted.stderr
feature-gate-abi-avr-interrupt.rs
feature-gate-abi-avr-interrupt.stderr
feature-gate-abi-msp430-interrupt.rs
feature-gate-abi-msp430-interrupt.stderr
feature-gate-abi.rs
feature-gate-abi.stderr
feature-gate-alloc-error-handler.rs
feature-gate-alloc-error-handler.stderr
feature-gate-allocator_internals.rs
feature-gate-allocator_internals.stderr
feature-gate-allow_fail.rs
feature-gate-allow_fail.stderr
feature-gate-allow-internal-unsafe-nested-macro.rs
feature-gate-allow-internal-unsafe-nested-macro.stderr
feature-gate-allow-internal-unstable-nested-macro.rs
feature-gate-allow-internal-unstable-nested-macro.stderr
feature-gate-allow-internal-unstable-struct.rs
feature-gate-allow-internal-unstable-struct.stderr
feature-gate-allow-internal-unstable.rs
feature-gate-allow-internal-unstable.stderr
feature-gate-arbitrary_self_types-raw-pointer.rs
feature-gate-arbitrary_self_types-raw-pointer.stderr
feature-gate-arbitrary-self-types.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
feature-gate-arbitrary-self-types.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
feature-gate-asm2.rs Fix ICE when using asm! on an unsupported architecture 2020-08-06 19:52:15 +01:00
feature-gate-asm2.stderr
feature-gate-asm.rs Fix ICE when using asm! on an unsupported architecture 2020-08-06 19:52:15 +01:00
feature-gate-asm.stderr
feature-gate-assoc-type-defaults.rs
feature-gate-assoc-type-defaults.stderr
feature-gate-associated_type_bounds.rs Fix tests from rebase 2020-10-06 11:19:33 +01:00
feature-gate-associated_type_bounds.stderr Fix tests from rebase 2020-10-06 11:19:33 +01:00
feature-gate-box_patterns.rs
feature-gate-box_patterns.stderr
feature-gate-box_syntax.rs
feature-gate-box_syntax.stderr
feature-gate-box-expr.rs
feature-gate-box-expr.stderr
feature-gate-cfg_sanitize.rs
feature-gate-cfg_sanitize.stderr
feature-gate-cfg-target-has-atomic.rs Add feature gate ui test for cfg(target_has_atomic_equal_alignment). 2020-09-21 20:43:44 +02:00
feature-gate-cfg-target-has-atomic.stderr Add feature gate ui test for cfg(target_has_atomic_equal_alignment). 2020-09-21 20:43:44 +02:00
feature-gate-cfg-target-thread-local.rs
feature-gate-cfg-target-thread-local.stderr
feature-gate-cfg-version.rs
feature-gate-cfg-version.stderr
feature-gate-compiler-builtins.rs
feature-gate-compiler-builtins.stderr
feature-gate-concat_idents2.rs
feature-gate-concat_idents2.stderr
feature-gate-concat_idents3.rs
feature-gate-concat_idents3.stderr
feature-gate-concat_idents.rs
feature-gate-concat_idents.stderr
feature-gate-const_fn_transmute.rs Bless tests 2020-09-24 12:07:58 -07:00
feature-gate-const_fn_transmute.stderr Bless tests 2020-09-24 12:07:58 -07:00
feature-gate-const_fn.rs
feature-gate-const_fn.stderr
feature-gate-const_generics-ptr.rs
feature-gate-const_generics-ptr.stderr impl review 2020-08-05 18:30:37 +02:00
feature-gate-const_generics.rs
feature-gate-const_generics.stderr impl review 2020-08-05 18:30:37 +02:00
feature-gate-const_in_array_repeat_expressions.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
feature-gate-const_in_array_repeat_expressions.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
feature-gate-const-indexing.rs
feature-gate-crate_visibility_modifier.rs
feature-gate-crate_visibility_modifier.stderr
feature-gate-custom_attribute2.rs
feature-gate-custom_attribute2.stderr
feature-gate-custom_attribute.rs
feature-gate-custom_attribute.stderr
feature-gate-custom_test_frameworks.rs
feature-gate-custom_test_frameworks.stderr
feature-gate-decl_macro.rs
feature-gate-decl_macro.stderr
feature-gate-default_type_parameter_fallback.rs
feature-gate-default_type_parameter_fallback.stderr
feature-gate-doc_cfg.rs
feature-gate-doc_cfg.stderr
feature-gate-doc_keyword.rs
feature-gate-doc_keyword.stderr
feature-gate-doc_masked.rs
feature-gate-doc_masked.stderr
feature-gate-doc_spotlight.rs
feature-gate-doc_spotlight.stderr
feature-gate-exclusive-range-pattern.rs
feature-gate-exclusive-range-pattern.stderr
feature-gate-exhaustive-patterns.rs
feature-gate-exhaustive-patterns.stderr
feature-gate-extern_absolute_paths.rs
feature-gate-extern_absolute_paths.stderr
feature-gate-extern_prelude.rs
feature-gate-extern_prelude.stderr
feature-gate-extern_types.rs
feature-gate-extern_types.stderr
feature-gate-external_doc.rs
feature-gate-external_doc.stderr
feature-gate-feature-gate.rs
feature-gate-feature-gate.stderr
feature-gate-ffi_const.rs
feature-gate-ffi_const.stderr
feature-gate-ffi_pure.rs
feature-gate-ffi_pure.stderr
feature-gate-ffi_returns_twice.rs
feature-gate-ffi_returns_twice.stderr
feature-gate-format_args_nl.rs
feature-gate-format_args_nl.stderr
feature-gate-fundamental.rs
feature-gate-fundamental.stderr
feature-gate-generators.rs
feature-gate-generators.stderr
feature-gate-generic_associated_types.rs Fix tests from rebase 2020-10-06 11:19:33 +01:00
feature-gate-generic_associated_types.stderr Fix tests from rebase 2020-10-06 11:19:33 +01:00
feature-gate-global_asm.rs
feature-gate-global_asm.stderr
feature-gate-impl_trait_in_bindings.rs
feature-gate-impl_trait_in_bindings.stderr
feature-gate-in_band_lifetimes.rs
feature-gate-in_band_lifetimes.stderr
feature-gate-infer_static_outlives_requirements.rs
feature-gate-infer_static_outlives_requirements.stderr
feature-gate-intrinsics.rs
feature-gate-intrinsics.stderr
feature-gate-is_sorted.rs
feature-gate-is_sorted.stderr
feature-gate-label_break_value.rs
feature-gate-label_break_value.stderr
feature-gate-lang-items.rs
feature-gate-lang-items.stderr
feature-gate-link_args.rs
feature-gate-link_args.stderr
feature-gate-link_cfg.rs
feature-gate-link_cfg.stderr
feature-gate-link_llvm_intrinsics.rs
feature-gate-link_llvm_intrinsics.stderr
feature-gate-linkage.rs
feature-gate-linkage.stderr
feature-gate-lint-reasons.rs
feature-gate-lint-reasons.stderr
feature-gate-log_syntax2.rs
feature-gate-log_syntax2.stderr
feature-gate-log_syntax2.stdout
feature-gate-log_syntax.rs
feature-gate-log_syntax.stderr
feature-gate-log_syntax.stdout
feature-gate-main.rs
feature-gate-main.stderr
feature-gate-marker_trait_attr.rs
feature-gate-marker_trait_attr.stderr
feature-gate-may-dangle.rs
feature-gate-may-dangle.stderr
feature-gate-member-constraints.rs
feature-gate-member-constraints.stderr
feature-gate-min_const_fn.rs
feature-gate-min_const_fn.stderr
feature-gate-naked_functions.rs
feature-gate-naked_functions.stderr
feature-gate-needs-allocator.rs
feature-gate-needs-allocator.stderr
feature-gate-negate-unsigned.rs
feature-gate-negate-unsigned.stderr suggest MAX constant if -1 is assigned to unsigned type 2020-10-08 13:11:31 -04:00
feature-gate-never_type.rs
feature-gate-never_type.stderr
feature-gate-nll.rs
feature-gate-nll.stderr
feature-gate-no_core.rs
feature-gate-no_core.stderr
feature-gate-no_sanitize.rs
feature-gate-no_sanitize.stderr
feature-gate-non_ascii_idents.rs
feature-gate-non_ascii_idents.stderr
feature-gate-object_safe_for_dispatch.rs
feature-gate-object_safe_for_dispatch.stderr
feature-gate-omit-gdb-pretty-printer-section.rs
feature-gate-omit-gdb-pretty-printer-section.stderr
feature-gate-optin-builtin-traits.rs
feature-gate-optin-builtin-traits.stderr
feature-gate-overlapping_marker_traits.rs
feature-gate-overlapping_marker_traits.stderr
feature-gate-plugin_registrar.rs
feature-gate-plugin_registrar.stderr
feature-gate-precise_pointer_size_matching.rs
feature-gate-precise_pointer_size_matching.stderr
feature-gate-prelude_import.rs
feature-gate-prelude_import.stderr
feature-gate-profiler-runtime.rs
feature-gate-profiler-runtime.stderr
feature-gate-public_private_dependencies.rs
feature-gate-register_attr.rs
feature-gate-register_attr.stderr
feature-gate-register_tool.rs
feature-gate-register_tool.stderr
feature-gate-repr128.rs
feature-gate-repr128.stderr
feature-gate-repr-simd.rs
feature-gate-repr-simd.stderr
feature-gate-rustc_const_unstable.rs
feature-gate-rustc_const_unstable.stderr
feature-gate-rustc-allow-const-fn-unstable.rs add rustc_allow_const_fn_unstable attribute 2020-10-21 18:04:18 +02:00
feature-gate-rustc-allow-const-fn-unstable.stderr add rustc_allow_const_fn_unstable attribute 2020-10-21 18:04:18 +02:00
feature-gate-rustc-attrs-1.rs
feature-gate-rustc-attrs-1.stderr
feature-gate-rustc-attrs.rs
feature-gate-rustc-attrs.stderr
feature-gate-simd-ffi.rs
feature-gate-simd-ffi.stderr
feature-gate-simd.rs
feature-gate-simd.stderr
feature-gate-staged_api.rs
feature-gate-staged_api.stderr
feature-gate-start.rs
feature-gate-start.stderr
feature-gate-static-nobundle.rs
feature-gate-static-nobundle.stderr
feature-gate-stmt_expr_attributes.rs
feature-gate-stmt_expr_attributes.stderr
feature-gate-thread_local.rs
feature-gate-thread_local.stderr
feature-gate-trace_macros.rs
feature-gate-trace_macros.stderr
feature-gate-trait-alias.rs
feature-gate-trait-alias.stderr
feature-gate-transparent_unions.rs
feature-gate-transparent_unions.stderr
feature-gate-trivial_bounds-lint.rs
feature-gate-trivial_bounds.rs
feature-gate-trivial_bounds.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
feature-gate-try_blocks.rs
feature-gate-try_blocks.stderr
feature-gate-try_reserve.rs
feature-gate-try_reserve.stderr
feature-gate-type_alias_impl_trait.rs Update to chalk 0.31. Implement some unimplemented. Ignore some tests in compare mode chalk don't finish. 2020-10-06 14:14:25 -04:00
feature-gate-type_alias_impl_trait.stderr Update to chalk 0.31. Implement some unimplemented. Ignore some tests in compare mode chalk don't finish. 2020-10-06 14:14:25 -04:00
feature-gate-type_ascription.rs
feature-gate-type_ascription.stderr
feature-gate-unboxed-closures-manual-impls.rs
feature-gate-unboxed-closures-manual-impls.stderr
feature-gate-unboxed-closures-method-calls.rs
feature-gate-unboxed-closures-method-calls.stderr
feature-gate-unboxed-closures-ufcs-calls.rs
feature-gate-unboxed-closures-ufcs-calls.stderr
feature-gate-unboxed-closures.rs
feature-gate-unboxed-closures.stderr
feature-gate-unsafe_block_in_unsafe_fn.rs
feature-gate-unsafe_block_in_unsafe_fn.stderr
feature-gate-unsized_locals.rs
feature-gate-unsized_locals.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
feature-gate-unsized_tuple_coercion.rs
feature-gate-unsized_tuple_coercion.stderr
feature-gate-untagged_unions.rs stabilize union with 'ManuallyDrop' fields and 'impl Drop for Union' 2020-10-16 11:33:33 +02:00
feature-gate-untagged_unions.stderr stabilize union with 'ManuallyDrop' fields and 'impl Drop for Union' 2020-10-16 11:33:33 +02:00
feature-gate-unwind-attributes.rs
feature-gate-unwind-attributes.stderr