rust/compiler/rustc_codegen_llvm/src
bors bf8716f1cd Auto merge of #119139 - michaelwoerister:cleanup-stable-source-file-id, r=cjgillot
Unify SourceFile::name_hash and StableSourceFileId

This PR adapts the existing `StableSourceFileId` type so that it can be used instead of the `name_hash` field of `SourceFile`. This simplifies a few things that were kind of duplicated before.

The PR should also fix issues https://github.com/rust-lang/rust/issues/112700 and https://github.com/rust-lang/rust/issues/115835, but I was not able to reproduce these issues in a regression test. As far as I can tell, the root cause of these issues is that the id of the originating crate is not hashed in the `HashStable` impl of `Span` and thus cache entries that should have been considered invalidated were loaded. After this PR, the `stable_id` field of `SourceFile` includes information about the originating crate, so that ICE should not occur anymore.
2023-12-24 21:58:39 +00:00
..
back Rename many DiagCtxt and EarlyDiagCtxt locals. 2023-12-18 16:06:22 +11:00
coverageinfo coverage: Avoid creating func_coverage for marker statements 2023-12-16 11:10:11 +11:00
debuginfo Unify SourceFile::name_hash and StableSourceFileId 2023-12-19 22:34:26 +01:00
llvm fix: stop emitting .debug_pubnames and .debug_pubtypes 2023-12-11 14:58:02 -05:00
abi.rs remove redundant imports 2023-12-10 10:56:22 +08:00
allocator.rs Auto merge of #118566 - klensy:cstr-new, r=WaffleLapkin 2023-12-14 11:14:03 +00:00
asm.rs Auto merge of #114467 - Amanieu:asm-unstable-features, r=davidtwco 2023-08-15 11:59:02 +00:00
attributes.rs Add -Zfunction-return={keep,thunk-extern} option 2023-11-30 20:21:31 +01:00
base.rs compiler: replace cstr macro with c str literals in compiler and few other c str replacements 2023-12-03 14:54:09 +03:00
builder.rs NFC: do not clone types that are copy 2023-12-15 23:19:51 +01:00
callee.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
common.rs ctfe interpreter: extend provenance so that it can track whether a pointer is immutable 2023-12-07 17:46:36 +01:00
consts.rs Auto merge of #118566 - klensy:cstr-new, r=WaffleLapkin 2023-12-14 11:14:03 +00:00
context.rs Auto merge of #118566 - klensy:cstr-new, r=WaffleLapkin 2023-12-14 11:14:03 +00:00
declare.rs Add unstable -Zdefault-hidden-visibility cmdline flag for rustc. 2023-12-13 21:14:23 +00:00
errors.rs Improve some names. 2023-12-23 13:23:28 +11:00
intrinsic.rs Fix alignment passed down to LLVM for simd_masked_load 2023-12-12 13:11:59 +01:00
lib.rs update cfg(bootstrap)s 2023-12-22 11:14:11 +01:00
llvm_util.rs Move rustc_codegen_ssa target features to rustc_target 2023-12-14 14:40:55 +01:00
mono_item.rs use visibility to check unused imports and delete some stmts 2023-10-22 21:27:46 +08:00
type_.rs remove unused pub fn 2023-11-23 14:11:02 +03:00
type_of.rs Clean dead codes 2023-11-26 09:25:07 +08:00
va_arg.rs cg_llvm: remove pointee types and pointercast/bitcast-of-ptr 2023-07-29 13:18:17 -04:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00