rust/compiler/rustc_codegen_gcc/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 simplify a self-profiling activity call in the cg_gcc backend 2022-04-07 15:47:20 +02:00
intrinsic s/eval_usize/eval_target_usize/ for clarity 2023-02-14 08:51:19 +00:00
abi.rs Merge apply_attrs_callsite into call and invoke 2022-10-01 17:01:31 +00:00
allocator.rs Rewrite implementation of #[alloc_error_handler] 2022-10-31 16:32:57 +00:00
archive.rs Rewrite LLVM's archive writer in Rust 2022-11-26 19:35:32 +00:00
asm.rs Merge apply_attrs_callsite into call and invoke 2022-10-01 17:01:31 +00:00
base.rs rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01: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 create and use GlobalAlloc::address_space 2023-01-25 01:46:19 -05:00
context.rs Simplify some iterator combinators 2023-01-04 00:48:07 +00:00
coverageinfo.rs Merge commit 'e228f0c16e' into libgccjit-codegen 2021-08-15 08:29:07 -04:00
debuginfo.rs Introduce composite debuginfo. 2022-11-15 17:53:50 +00:00
declare.rs Use custom entry name in gcc 2022-11-15 22:15:55 +05:30
errors.rs Move linkage type check to HIR analysis and fix semantics issues. 2022-12-05 15:05:43 -08:00
int.rs Merge commit 'e8dca3e87d' into sync_from_cg_gcc 2022-06-06 22:04:37 -04:00
lib.rs various: translation resources from cg backend 2023-02-22 09:15:54 +00:00
mono_item.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
type_.rs Add LLVM KCFI support to the Rust compiler 2022-12-08 17:24:39 -08:00
type_of.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00