From a88d9dc0fb68a7f9c7fdaa27dce45766882903e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Fri, 29 Mar 2024 13:34:31 +0100 Subject: [PATCH] flags --- src/flags.rs | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/src/flags.rs b/src/flags.rs index 1b95ebb..51b34fa 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -1652,6 +1652,114 @@ static EXPENSIVE_RUSTFLAGS: &[&[&str]] = &[ "-Clink-dead-code=true", "-Zverify-llvm-ir=yes", ], + // language features + &[ + "-Zprint-vtable-sizes", + "-Zunstable-options", + "-Zvalidate-mir", + "-Zverify-llvm-ir=yes", + "-Zincremental-verify-ich=yes", + "-Zdump-mir=all", + "--emit=mir", + "-Zprint-mono-items=eager", + "-Zpolymorphize=on", + "-Zalways-encode-mir", + // "-Cpasses=lint", + "-Zextra-const-ub-checks", + "--edition=2021", + "-Ztranslate-lang=en_US", + "-Zprint-type-sizes", + "-Zmaximal-hir-to-mir-coverage", + // "-Clto=off", // rustc_codegen_gcc + // "-Ztreat-err-as-bug=3", + "-Znext-solver=coherence", + "-Zrandomize-layout", + "-Zinline-mir=yes", + "-Zinline-mir-threshold=20", + "-Zpolonius=next", + "-Zlint-mir", + "-Zcrate-attr=feature(c_unwind)", + "-Zcrate-attr=feature(const_mut_refs)", + "-Zcrate-attr=feature(const_precise_live_drops)", + "-Zcrate-attr=feature(const_ptr_write)", + "-Zcrate-attr=feature(const_trait_impl)", + "-Zcrate-attr=feature(const_try)", + "-Zcrate-attr=feature(decl_macro)", + "-Zcrate-attr=feature(exclusive_range_pattern)", + "-Zcrate-attr=feature(fundamental)", + "-Zcrate-attr=feature(min_specialization)", + "-Zcrate-attr=feature(multiple_supertrait_upcastable)", + "-Zcrate-attr=feature(negative_impls)", + "-Zcrate-attr=feature(never_type)", + "-Zcrate-attr=feature(pointer_is_aligned)", + "-Zcrate-attr=feature(unboxed_closures)", + "-Zcrate-attr=feature(unsized_fn_params)", + "-Zcrate-attr=feature(with_negative_coherence)", + "-Zcrate-attr=feature(alloc_layout_extra)", + "-Zcrate-attr=feature(allocator_api)", + "-Zcrate-attr=feature(array_chunks)", + "-Zcrate-attr=feature(array_into_iter_constructors)", + "-Zcrate-attr=feature(array_windows)", + "-Zcrate-attr=feature(ascii_char)", + "-Zcrate-attr=feature(assert_matches)", + "-Zcrate-attr=feature(async_fn_traits)", + "-Zcrate-attr=feature(async_iterator)", + "-Zcrate-attr=feature(coerce_unsized)", + "-Zcrate-attr=feature(const_align_of_val)", + "-Zcrate-attr=feature(const_box)", + "-Zcrate-attr=feature(const_cow_is_borrowed)", + "-Zcrate-attr=feature(const_eval_select)", + "-Zcrate-attr=feature(const_maybe_uninit_as_mut_ptr)", + "-Zcrate-attr=feature(const_maybe_uninit_write)", + "-Zcrate-attr=feature(const_pin)", + "-Zcrate-attr=feature(const_refs_to_cell)", + "-Zcrate-attr=feature(const_size_of_val)", + "-Zcrate-attr=feature(const_waker)", + "-Zcrate-attr=feature(deprecated_suggestion)", + "-Zcrate-attr=feature(deref_pure_trait)", + "-Zcrate-attr=feature(dispatch_from_dyn)", + "-Zcrate-attr=feature(error_generic_member_access)", + "-Zcrate-attr=feature(error_in_core)", + "-Zcrate-attr=feature(exact_size_is_empty)", + "-Zcrate-attr=feature(extend_one)", + "-Zcrate-attr=feature(fn_traits)", + "-Zcrate-attr=feature(generic_nonzero)", + "-Zcrate-attr=feature(hasher_prefixfree_extras)", + "-Zcrate-attr=feature(hint_assert_unchecked)", + "-Zcrate-attr=feature(inline_const)", + "-Zcrate-attr=feature(inplace_iteration)", + "-Zcrate-attr=feature(iter_advance_by)", + "-Zcrate-attr=feature(iter_next_chunk)", + "-Zcrate-attr=feature(iter_repeat_n)", + "-Zcrate-attr=feature(layout_for_ptr)", + "-Zcrate-attr=feature(local_waker)", + "-Zcrate-attr=feature(maybe_uninit_slice)", + "-Zcrate-attr=feature(maybe_uninit_uninit_array)", + "-Zcrate-attr=feature(maybe_uninit_uninit_array_transpose)", + "-Zcrate-attr=feature(non_null_convenience)", + "-Zcrate-attr=feature(pattern)", + "-Zcrate-attr=feature(ptr_metadata)", + "-Zcrate-attr=feature(ptr_sub_ptr)", + "-Zcrate-attr=feature(receiver_trait)", + "-Zcrate-attr=feature(set_ptr_value)", + "-Zcrate-attr=feature(sized_type_properties)", + "-Zcrate-attr=feature(slice_from_ptr_range)", + "-Zcrate-attr=feature(slice_index_methods)", + "-Zcrate-attr=feature(slice_ptr_get)", + "-Zcrate-attr=feature(slice_ptr_len)", + "-Zcrate-attr=feature(slice_range)", + "-Zcrate-attr=feature(strict_provenance)", + "-Zcrate-attr=feature(trusted_fused)", + "-Zcrate-attr=feature(trusted_len)", + "-Zcrate-attr=feature(trusted_random_access)", + "-Zcrate-attr=feature(try_trait_v2)", + "-Zcrate-attr=feature(try_with_capacity)", + "-Zcrate-attr=feature(tuple_trait)", + "-Zcrate-attr=feature(unchecked_math)", + "-Zcrate-attr=feature(unsize)", + "-Zcrate-attr=feature(utf8_chunks)", + "-Zcrate-attr=feature(vec_pop_if)", + ], &["-Zmir-opt-level=0", "-ocodegen", "-Zverify-llvm-ir=yes"], &[ "-Copt-level=3",