rust/tests/ui/thir-print
bors 8c12d76304 Auto merge of #142903 - cjgillot:local-def-path-hash, r=compiler-errors
Only inherit local hash for paths

`DefPathHash`, as the counterpart of `DefId` that is stable across compiler invocations, is comprised of 2 parts. The first one is the `StableCrateId`, stable form of `CrateNum`. The second is 64 complementary bits to identify the crate-local definition.

The current implementation always hashes the full 128 bits when (1) trying to create a new child `DefPathHash` or (2) hashing a `CrateNum` or a `LocalDefId`. But we only need half that information: `LocalDefId` means that the `StableCrateId` is always the current crate's ; `CrateNum` means that we do not care about the local part.

As stable hashing is very hot in the query system, in particular hashing definitions, this is a big deal.

We still want the local part to change when the `StableCrateId` changes, to make incr-compilation errors less painful, ie. increase the likelihood that if will magically disappear by changing some code.

This PR sprinkles some `#[inline]` attributes on small functions that appeared in profiles.
2025-07-17 08:36:42 +00:00
..
thir-flat-const-variant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
thir-flat-const-variant.stdout reduce false positives of tail-expr-drop-order from consumed values 2024-11-20 20:53:11 +08:00
thir-flat.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
thir-flat.stdout reduce false positives of tail-expr-drop-order from consumed values 2024-11-20 20:53:11 +08:00
thir-tree-loop-match.rs Add #[loop_match] for improved DFA codegen 2025-06-23 20:43:04 +02:00
thir-tree-loop-match.stdout loop match: run exhaustiveness check 2025-07-01 15:53:50 +02:00
thir-tree-match.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
thir-tree-match.stdout Only inherit local hash for paths. 2025-06-22 20:25:55 +00:00
thir-tree.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
thir-tree.stdout reduce false positives of tail-expr-drop-order from consumed values 2024-11-20 20:53:11 +08:00