rust/compiler/rustc_middle/src
Matthias Krüger 89ee41cc4c
Rollup merge of #136847 - nnethercote:simplify-intra-crate-quals, r=oli-obk
Simplify intra-crate qualifiers.

The following is a weird pattern for a file within `rustc_middle`:
```
use rustc_middle::aaa;
use crate::bbb;
```
More sensible and standard would be this:
```
use crate::{aaa, bbb};
```
I.e. we generally prefer using `crate::` to using a crate's own name. (Exceptions are things like in macros where `crate::` doesn't work because the macro is used in multiple crates.)

This commit fixes a bunch of these weird qualifiers.

r? `@jieyouxu`
2025-02-11 18:04:49 +01:00
..
dep_graph Remove impl_for_typed_def_id macro. 2025-02-04 08:34:11 +11:00
hir Simplify intra-crate qualifiers. 2025-02-11 14:59:13 +11:00
hooks Pretty print pattern type values with transmute if they don't satisfy their pattern 2025-02-05 14:56:41 +00:00
infer Clean up trivial traversal/lift impl generator macro calls. 2025-02-06 13:31:43 +11:00
middle Simplify intra-crate qualifiers. 2025-02-11 14:59:13 +11:00
mir Rollup merge of #136847 - nnethercote:simplify-intra-crate-quals, r=oli-obk 2025-02-11 18:04:49 +01:00
query Simplify intra-crate qualifiers. 2025-02-11 14:59:13 +11:00
thir Fix an inconsistent import. 2025-02-04 08:34:11 +11:00
traits Auto merge of #136471 - safinaskar:parallel, r=SparrowLii 2025-02-06 10:50:05 +00:00
ty Rollup merge of #136847 - nnethercote:simplify-intra-crate-quals, r=oli-obk 2025-02-11 18:04:49 +01:00
util Simplify intra-crate qualifiers. 2025-02-11 14:59:13 +11:00
arena.rs tree-wide: parallel: Fully removed all Lrc, replaced with Arc 2025-02-03 13:25:57 +03:00
error.rs upstream rustc_codegen_ssa/rustc_middle changes for enzyme/autodiff 2025-01-29 21:31:13 -05:00
lib.rs stabilize feature(trait_upcasting) 2025-02-06 23:30:23 +01:00
lint.rs Convert two rustc_middle::lint functions to Span methods. 2025-02-02 13:57:34 +11:00
macros.rs Don't export the Trivial* macros. 2025-01-31 16:04:13 +11:00
metadata.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
tests.rs Give an item related to issue 27438 a more meaningful name 2024-04-30 22:27:19 +02:00
thir.rs Simplify intra-crate qualifiers. 2025-02-11 14:59:13 +11:00
values.rs Simplify intra-crate qualifiers. 2025-02-11 14:59:13 +11:00