bjorn3
a308984e69
Rustup to rustc 1.88.0-nightly ( b45dd71d1 2025-04-30)
2025-05-01 09:26:49 +00:00
bjorn3
e864f0f244
Sync from rust b45dd71d18
2025-05-01 09:18:16 +00:00
bjorn3
349430c08e
Avoid creating a second UnwindContext in finalize_definitions
...
Once UnwindContext sets the personality function it will need to define
a DW.ref.rust_eh_personality function which would cause a duplicate
definition if UnwindContext is called a second time.
2025-04-24 13:08:32 +00:00
bjorn3
c02e496ecc
Use cg_ssa's version of codegen_naked_asm in cg_clif
2025-04-14 09:38:04 +00:00
bjorn3
420e44f578
Reduce visibility of a couple of functions
2025-04-08 18:41:42 +00:00
bjorn3
15dbafa81e
Merge commit ' ba315abda7' into sync_cg_clif-2025-03-30
2025-03-30 15:43:48 +00:00
bjorn3
2133fb94b7
Disable PIC when jitting
...
This fixes jitting on non-x86_64 targets.
2025-03-20 15:37:38 +00:00
bjorn3
5d03df9431
Remove support for the lazy jit mode
...
I might re-implement it in the future, but would probably do so by
replacing cranelift-jit. cranelift-jit's api doesn't quite work well for
lazy jitting. And even so it adds complexity to cranelift-jit and breaks
cranelift-jit outside of x86_64.
2025-03-05 15:37:10 +00:00
bjorn3
0fcd068bec
Refactor the cli of cg_clif
2025-03-05 15:12:57 +00:00
Nicholas Nethercote
b141440f86
Move some Map methods onto TyCtxt.
...
The end goal is to eliminate `Map` altogether.
I added a `hir_` prefix to all of them, that seemed simplest. The
exceptions are `module_items` which became `hir_module_free_items` because
there was already a `hir_module_items`, and `items` which became
`hir_free_items` for consistency with `hir_module_free_items`.
2025-02-17 13:21:02 +11:00
bjorn3
6bd92ef9cb
Rustfmt
2025-02-08 22:12:13 +00:00
bjorn3
04e580fcc5
Merge commit ' 8332329f83' into sync_cg_clif-2025-02-07
2025-02-07 20:58:27 +00:00
bjorn3
a2d78f77f4
Merge commit ' 918acafef6' into sync_cg_clif-2025-01-05
2025-01-05 15:44:46 +00:00
bjorn3
1f66d7d47f
Make DependencyList an IndexVec
2024-12-19 15:30:32 +00:00
bjorn3
c99d4f0f51
Make dependency_formats an FxIndexMap rather than a list of tuples
...
It is treated as a map already. This is using FxIndexMap rather than
UnordMap because the latter doesn't provide an api to pick a single
value iff all values are equal, which each_linked_rlib depends on.
2024-12-13 11:29:15 +00:00
bjorn3
e8ad19987d
Merge commit ' 57845a397e' into sync_cg_clif-2024-12-06
2024-12-06 12:10:30 +00:00
clubby789
a2e9aac905
Replace Symbol::intern calls with preinterned symbols
2024-11-28 15:45:27 +00:00
Michael Goulet
02b0f3b5ab
Reformat using the new identifier sorting from rustfmt
2024-09-22 19:11:29 -04:00
Nicholas Nethercote
ea9f491696
Reformat use declarations.
...
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
2024-07-29 08:26:52 +10:00
bjorn3
5adaed06a0
Merge commit ' 49cd5dd454' into sync_cg_clif-2024-06-30
2024-06-30 11:28:14 +00:00
bjorn3
ed7d97e4c8
Merge commit ' 3270432f4b' into sync_cg_clif-2024-05-13
2024-05-13 13:26:33 +00:00
bjorn3
4ad6c6c581
Merge commit ' de5d652373' into sync_cg_clif-2024-04-23
2024-04-23 09:37:28 +00:00
bjorn3
c5c31447a7
Merge commit ' 09fae60a86' into sync_cg_clif-2024-03-28
2024-03-28 11:43:35 +00:00
bjorn3
0061bb7faf
Merge commit ' 3e50cf6502' into sync_cg_clif-2024-01-26
2024-01-26 18:33:45 +00:00
Nicholas Nethercote
e6570dcccc
Use chaining for DiagnosticBuilder construction and emit.
...
To avoid the use of a mutable local variable, and because it reads more
nicely.
2024-01-08 15:45:29 +11:00
bjorn3
0cfbc47b9a
Merge commit ' 6d355f6844' into sync_cg_clif-2023-12-31
2023-12-31 13:29:53 +00:00
Nicholas Nethercote
93c86f78b2
Remove more Session methods that duplicate DiagCtxt methods.
2023-12-24 08:17:47 +11:00
Nicholas Nethercote
7e213fe428
Remove Session methods that duplicate DiagCtxt methods.
...
Also add some `dcx` methods to types that wrap `TyCtxt`, for easier
access.
2023-12-24 08:05:28 +11:00
bjorn3
5d85a24442
Merge commit ' 81dc066758' into sync_cg_clif-2023-10-09
2023-10-09 08:52:46 +00:00
Vadim Petrochenkov
b107241218
rustc: Move crate_types from Session to GlobalCtxt
...
Removes a piece of mutable state.
Follow up to #114578 .
2023-08-09 14:17:54 +08:00
bjorn3
e8168ce8a3
Merge commit ' 1eded3619d' into sync_cg_clif-2023-07-22
2023-07-22 13:32:34 +00:00
bjorn3
81ea0b29ea
Merge commit ' 8830dccd1d' into sync_cg_clif-2023-06-15
2023-06-15 17:56:01 +00:00
bjorn3
8bf550e616
Merge commit ' ef07e8e60f' into sync_cg_clif-2023-04-29
2023-04-29 12:00:43 +00:00
bjorn3
7b3bd56ed9
Merge commit ' dec0daa8f6' into sync_cg_clif-2023-03-15
2023-03-15 14:41:48 +00:00
bjorn3
56951e4f2b
Merge commit ' 7d53619064' into sync_cg_clif-2023-02-09
2023-02-09 12:38:16 +01:00
bjorn3
98a276b589
Merge commit ' 2bb3996244' into sync_cg_clif-2022-12-14
2022-12-14 19:30:46 +01:00
bjorn3
9950bd1dc5
Merge commit ' 266e96785a' into sync_cg_clif-2022-10-23
2022-10-23 16:22:55 +02:00
bjorn3
cfef0a4f8d
Merge commit ' e9d1a0a7b0' into sync_cg_clif-2022-08-24
2022-08-24 18:40:58 +02:00
Maybe Waffle
6d8c45064b
Move/rename lazy::Sync{OnceCell,Lazy} to sync::{Once,Lazy}Lock
2022-06-16 19:54:42 +04:00
bjorn3
d9025cebac
Merge commit ' 63734fcdd7' into sync_cg_clif-2022-05-15
2022-05-15 12:32:19 +02:00
klensy
f2d2ec3e93
check_doc_keyword: don't alloc string for emptiness check
...
check_doc_alias_value: get argument as Symbol to prevent needless string convertions
check_doc_attrs: don't alloc vec, iterate over slice. Vec introduced in #83149 , but no perf run posted on merge
replace as_str() check with symbol check
get_single_str_from_tts: don't prealloc string
trivial string to str replace
LifetimeScopeForPath::NonElided use Vec<Symbol> instead of Vec<String>
AssertModuleSource use BTreeSet<Symbol> instead of BTreeSet<String>
CrateInfo.crate_name replace FxHashMap<CrateNum, String> with FxHashMap<CrateNum, Symbol>
2022-04-08 11:45:57 +03:00
bjorn3
d1904e5855
Merge commit ' 370c397ec9' into sync_cg_clif-2022-03-20
2022-03-20 16:55:21 +01:00
bjorn3
b5cbb87e62
Merge commit ' 35d9c6bf25' into sync_cg_clif-2022-02-23
2022-02-23 11:49:34 +01:00
bjorn3
799e067912
Merge commit ' 97e5045493' into sync_cg_clif-2021-12-20
2021-12-20 18:56:35 +01:00
bjorn3
fb92375755
Merge commit ' 3a31c6d827' into sync_cg_clif-2021-07-07
2021-07-07 11:14:20 +02:00
bjorn3
135edbf4ba
Move LinkerInfo into CrateInfo
2021-07-06 15:31:38 +02:00
bjorn3
6b3a061e94
Remove LibSource
...
The information is stored in used_crate_source too anyway
2021-07-05 10:49:07 +02:00
bjorn3
d6b03451e6
Merge commit ' 40dd3e2b70' into sync_cg_clif-2021-05-27
2021-05-27 13:08:14 +02:00
Camille GILLOT
915d766307
Use () for codegen queries.
2021-05-12 13:58:46 +02:00
Camille GILLOT
f22ab98d4c
Use () in dependency_formats.
2021-05-12 13:58:41 +02:00