rust/compiler/rustc_builtin_macros/src
bors 2f92f050e8 Auto merge of #136471 - safinaskar:parallel, r=SparrowLii
tree-wide: parallel: Fully removed all `Lrc`, replaced with `Arc`

tree-wide: parallel: Fully removed all `Lrc`, replaced with `Arc`

This is continuation of https://github.com/rust-lang/rust/pull/132282 .

I'm pretty sure I did everything right. In particular, I searched all occurrences of `Lrc` in submodules and made sure that they don't need replacement.

There are other possibilities, through.

We can define `enum Lrc<T> { Rc(Rc<T>), Arc(Arc<T>) }`. Or we can make `Lrc` a union and on every clone we can read from special thread-local variable. Or we can add a generic parameter to `Lrc` and, yes, this parameter will be everywhere across all codebase.

So, if you think we should take some alternative approach, then don't merge this PR. But if it is decided to stick with `Arc`, then, please, merge.

cc "Parallel Rustc Front-end" ( https://github.com/rust-lang/rust/issues/113349 )

r? SparrowLii

`@rustbot` label WG-compiler-parallel
2025-02-06 10:50:05 +00:00
..
assert Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
deriving Express contracts as part of function header and lower it to the contract lang items 2025-02-03 12:54:00 -08:00
format_foreign Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
alloc_error_handler.rs Express contracts as part of function header and lower it to the contract lang items 2025-02-03 12:54:00 -08:00
asm.rs parse_format optimize import use 2025-01-28 19:33:00 +01:00
assert.rs Speed up Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
autodiff.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
cfg.rs Speed up Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
cfg_accessible.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
cfg_eval.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
cmdline_attrs.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
compile_error.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
concat.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
concat_bytes.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
concat_idents.rs Rollup merge of #134161 - nnethercote:overhaul-token-cursors, r=spastorino 2024-12-18 22:56:53 +08:00
contracts.rs Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
derive.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
edition_panic.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
env.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
errors.rs add suggestion for wrongly ordered format parameters 2024-12-30 06:14:26 -08:00
format.rs Make comma separated lists of anything easier to make for errors 2025-01-31 20:36:44 +00:00
format_foreign.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
global_allocator.rs Express contracts as part of function header and lower it to the contract lang items 2025-02-03 12:54:00 -08:00
lib.rs Desugars contract into the internal AST extensions 2025-02-03 13:54:32 -08:00
log_syntax.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
pattern_type.rs Speed up Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
proc_macro_harness.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
source_util.rs tree-wide: parallel: Fully removed all Lrc, replaced with Arc 2025-02-03 13:25:57 +03:00
standard_library_imports.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
test.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
test_harness.rs Express contracts as part of function header and lower it to the contract lang items 2025-02-03 12:54:00 -08:00
trace_macros.rs Rollup merge of #134161 - nnethercote:overhaul-token-cursors, r=spastorino 2024-12-18 22:56:53 +08:00
util.rs Account for format_args in HiddenUnicodeCodepoints lint 2024-12-31 05:03:22 +00:00