rust/compiler/rustc_session/src
bors 8575f8f91b Auto merge of #104342 - mweber15:add_file_location_to_more_types, r=wesleywiser
Require `type_map::stub` callers to supply file information

This change attaches file information (`DIFile` reference and line number) to struct debug info nodes.

Before:

```
; foo.ll
...
!5 = !DIFile(filename: "<unknown>", directory: "")
...
!16 = !DICompositeType(tag: DW_TAG_structure_type, name: "MyType", scope: !2, file: !5, size: 32, align: 32, elements: !17, templateParams: !19, identifier: "4cb373851db92e732c4cb5651b886dd0")
...
```

After:

```
; foo.ll
...
!3 = !DIFile(filename: "foo.rs", directory: "/home/matt/src/rust98678", checksumkind: CSK_SHA1, checksum: "bcb9f08512c8f3b8181ef4726012bc6807bc9be4")
...
!16 = !DICompositeType(tag: DW_TAG_structure_type, name: "MyType", scope: !2, file: !3, line: 3, size: 32, align: 32, elements: !17, templateParams: !19, identifier: "9e5968c7af39c148acb253912b7f409f")
...
```

Fixes #98678

r? `@wesleywiser`
2024-12-03 12:49:57 +00:00
..
config Overhaul the -l option parser (for linking to native libs) 2024-11-18 15:55:12 +11:00
code_stats.rs compiler: Add rustc_abi dependence to the compiler 2024-10-27 21:10:58 -07:00
config.rs Rename -Zparse-only. 2024-11-29 06:10:15 +11:00
cstore.rs Rollup merge of #130586 - dpaoliello:fixrawdylib, r=wesleywiser 2024-11-07 18:48:20 -08:00
errors.rs Remove -Zfuel. 2024-11-26 10:45:21 +00:00
filesearch.rs rustc_metadata: Preprocess search paths for better performance 2024-11-15 10:35:33 +01:00
lib.rs Rollup merge of #129087 - slanterns:option_get_or_insert_default, r=dtolnay 2024-09-27 19:07:58 +02:00
options.rs Auto merge of #104342 - mweber15:add_file_location_to_more_types, r=wesleywiser 2024-12-03 12:49:57 +00:00
output.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
parse.rs give a hint which feature is missing 2024-11-09 23:32:06 +01:00
search_paths.rs rustc_metadata: Preprocess search paths for better performance 2024-11-15 10:35:33 +01:00
session.rs impl Default for EarlyDiagCtxt 2024-12-02 09:55:04 -05:00
utils.rs remove a couple of redundant String to String conversion 2024-10-12 22:07:46 +02:00
version.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00