rust/compiler/rustc_metadata/src
Matthias Krüger c80286d35e
Rollup merge of #133779 - BoxyUwU:array_const_arg_infer_hir_id, r=compiler-errors
Use correct `hir_id` for array const arg infers

Fixes #133771

`self.next_id()` results in the `DefId` for the const argument, created from the hack introduced by #133468, having no `HirId` associated with it. This then results in an ICE in metadata encoding. Fixing this then results in *another* ICE where `encode_defs` was not skipping encoding `type_of` and other queries for `DefId`s when they correspond to a `ConstArgKind::Infer` node.

This only reproduces with a library crate as metadata is not encoded for binaries, and apparently we had 0 tests for `generic_arg_infer` for array lengths in a library crate so this was not caught :<

cc #133589 `@voidc`

r? `@compiler-errors` `@lcnr`
2024-12-03 17:27:10 +01:00
..
rmeta Rollup merge of #133779 - BoxyUwU:array_const_arg_infer_hir_id, r=compiler-errors 2024-12-03 17:27:10 +01:00
creader.rs Replace Symbol::intern calls with preinterned symbols 2024-11-28 15:45:27 +00:00
dependency_format.rs nightly feature tracking: get rid of the per-feature bool fields 2024-10-23 09:14:41 +01:00
errors.rs Allow injecting a profiler runtime into #![no_core] crates 2024-11-24 21:12:40 +11:00
foreign_modules.rs Do not fetch HIR in native_libs. 2023-07-17 07:37:03 +00:00
fs.rs Dogfood feature(file_buffered) 2024-09-24 14:25:16 -07:00
lib.rs Rollup merge of #130518 - scottmcm:stabilize-controlflow-extra, r=dtolnay 2024-10-04 14:11:34 -07:00
locator.rs aix: fix archive format 2024-11-21 10:33:07 -05:00
native_libs.rs Rollup merge of #132750 - daltenty:daltenty/libs, r=jieyouxu 2024-11-30 12:56:50 +08:00