rust/compiler/rustc_codegen_llvm/src
bors fdbc4329cb Auto merge of #108340 - eggyal:remove_traversal_trait_aliases, r=oli-obk
Remove type-traversal trait aliases

#107924 moved the type traversal (folding and visiting) traits into the type library, but created trait aliases in `rustc_middle` to minimise both the API churn for trait consumers and the arising boilerplate.  As mentioned in that PR, an alternative approach of defining subtraits with blanket implementations of the respective supertraits was also considered at that time but was ruled out as not adding much value.

Unfortunately, it has since emerged that rust-analyzer has difficulty with these trait aliases at present, resulting in a degraded contributor experience (see the recent [r-a has become useless](https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/r-a.20has.20become.20useless) topic on the #t-compiler/help Zulip stream).

This PR removes the trait aliases, and accordingly the underlying type library traits are now used directly; they are parameterised by `TyCtxt<'tcx>` rather than just the `'tcx` lifetime, and imports have been updated to reflect the fact that the trait aliases' explicitly named traits are no longer automatically brought into scope.  These changes also roll-back the (no-longer required) workarounds to #107747 that were made in b409329c62.

Since this PR is just a find+replace together with the changes necessary for compilation & tidy to pass, it's currently just one mega-commit.  Let me know if you'd like it broken up.

r? `@oli-obk`
2023-02-22 18:26:51 +00:00
..
back Auto merge of #99679 - repnop:kernel-address-sanitizer, r=cuviper 2023-02-18 03:05:11 +00:00
coverageinfo Use IntoIterator for mk_fn_sig. 2023-02-17 22:24:34 +11:00
debuginfo Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
llvm Add kernel-address sanitizer support for freestanding targets 2023-02-14 20:54:25 -05:00
abi.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
allocator.rs Add LLVM KCFI support to the Rust compiler 2022-12-08 17:24:39 -08:00
asm.rs abi: add AddressSpace field to Primitive::Pointer 2023-01-22 23:41:39 -05:00
attributes.rs Add kernel-address sanitizer support for freestanding targets 2023-02-14 20:54:25 -05:00
base.rs Remove several unused methods from MiscMethods 2022-10-01 16:45:07 +00:00
builder.rs abi: add AddressSpace field to Primitive::Pointer 2023-01-22 23:41:39 -05:00
callee.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
common.rs abi: add AddressSpace field to Primitive::Pointer 2023-01-22 23:41:39 -05:00
consts.rs fix some lines, and do a consistency fix 2023-02-16 18:58:08 +02:00
context.rs add a summary, in addition to the link 2023-02-18 11:09:40 +02:00
declare.rs Add LLVM KCFI support to the Rust compiler 2022-12-08 17:24:39 -08:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
intrinsic.rs Use IntoIterator for mk_fn_sig. 2023-02-17 22:24:34 +11:00
lib.rs various: translation resources from cg backend 2023-02-22 09:15:54 +00:00
llvm_util.rs Drop llvm14-builtins-abi with compiler_builtins 0.1.87 2023-02-10 16:13:31 -08:00
mono_item.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
type_.rs Rollup merge of #105109 - rcvalle:rust-kcfi, r=bjorn3 2022-12-10 09:24:43 +01:00
type_of.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
va_arg.rs Implement va_list and va_arg for s390x FFI 2022-12-19 21:07:57 +01:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00