rust/compiler/rustc_middle/src
bors d3c9082a44 Auto merge of #120006 - cjgillot:no-hir-owner, r=wesleywiser
Get rid of the hir_owner query.

This query was meant as a firewall between `hir_owner_nodes` which is supposed to change often, and the queries that only depend on the item signature. That firewall was inefficient, leaking the contents of the HIR body through `HirId`s.

`hir_owner` incurs a significant cost, as we need to hash HIR twice in multiple modes. This PR proposes to remove it, and simplify the hashing scheme.

For the future, `def_kind`, `def_span`... are much more efficient for incremental decoupling, and should be preferred.
2024-01-19 02:36:13 +00:00
..
dep_graph Reduce exposure of things. 2023-11-16 16:49:22 +11:00
hir Get rid of the hir_owner query. 2024-01-16 23:49:38 +00:00
hooks Rename hook. 2023-11-01 16:49:18 +00:00
infer don't store const var origins for known vars 2024-01-16 11:06:42 +01:00
middle Add check for ui_testing via promoting parameters from ParseSess to Session 2024-01-13 12:11:13 -05:00
mir Inline dump_file_basename into dump_path 2024-01-17 11:46:20 +11:00
query Auto merge of #120006 - cjgillot:no-hir-owner, r=wesleywiser 2024-01-19 02:36:13 +00:00
thir Remove thir::Guard 2024-01-05 10:56:59 +00:00
traits Correctly handle normalization in implied bounds 2024-01-17 21:27:34 -05:00
ty Use FnOnceOutput instead of FnOnce where expected 2024-01-17 14:23:41 +00:00
util compiler: Lower fn call arg spans down to MIR 2024-01-15 19:07:11 +01:00
arena.rs specialization_graph_of's errored field is used in the only call site, and used to immediately throw away the rest of the value. Let's use Result to statically signal that this is happening 2024-01-11 20:34:59 +00:00
error.rs don't point at const usage site for resolution-time errors 2023-09-14 22:34:05 +02:00
lib.rs update cfg(bootstrap)s 2023-12-22 11:14:11 +01:00
lint.rs Rework how diagnostic lints are stored. 2024-01-14 14:04:25 +11:00
macros.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
metadata.rs rustc_metadata: Remove Span from ModChild 2023-04-18 17:25:04 +03:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs Don't populate yield and resume types after the fact 2024-01-06 18:03:01 +00:00
values.rs Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00