Skip to content

Rollup of 12 pull requests #143313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 36 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e95751a
Explain TOCTOU on the top of `std::fs`, and ref it in functions
xizheyin Jun 1, 2025
230b55d
Add `into_chunks`
ashivaram23 Jun 7, 2025
e4e7773
put feature attribute in example
ashivaram23 Jun 7, 2025
343db27
cfg for no no_global_oom_handling
ashivaram23 Jun 7, 2025
c1d32d8
fix wording in assert
ashivaram23 Jun 7, 2025
cfa6731
expose abi information on ppc64 targets
ostylk Jun 16, 2025
45538e0
ci: aarch64-gnu: Stop skipping `panic_abort_doc_tests`
Enselic Jun 22, 2025
e86fddc
fix bitcast of single-element SIMD vectors
folkertdev Jun 29, 2025
08278eb
Don't recompute DisambiguatorState for every RPITIT in trait definition
compiler-errors Jun 30, 2025
c073286
Use the correct export kind for __rust_alloc_error_handler_should_panic
dpaoliello Jun 30, 2025
3bf650f
add failing test, bless incorrect output
Qelxiros Jun 30, 2025
1e6e4bb
make compiler_builtins a private dependency
Qelxiros Jun 30, 2025
51aa76f
avoid suggesting traits from private dependencies
Qelxiros Jul 1, 2025
311a99c
ci: support optional jobs
marcoieni Jul 1, 2025
e7c3703
Suggest use another lifetime specifier instead of underscore lifetime
xizheyin Jun 30, 2025
308ef8d
Remove `repr(align)` code
Jules-Bertholet Jun 29, 2025
278f4f4
Support `#[align(…)]` on fns in `extern` blocks
Jules-Bertholet Jun 29, 2025
55d0210
Test `async fn`
Jules-Bertholet Jun 29, 2025
0382357
Add test for `dyn` alignment
Jules-Bertholet Jun 29, 2025
233e2ef
Add FIXME for gen et al
Jules-Bertholet Jul 1, 2025
440bf29
Add more tests for invalid alignments
Jules-Bertholet Jul 1, 2025
cf5788d
Rename `header` -> `directives`
jieyouxu Jun 30, 2025
475f447
Update compiletest to use "directive" terminology consistently
jieyouxu Jun 30, 2025
0346895
Rename {`HeadersCache`, `iter_header`} -> {`DirectivesCache`, `iter_d…
jieyouxu Jun 30, 2025
1aa4a5f
Rollup merge of #141847 - xizheyin:141837, r=jhpratt
jhpratt Jul 2, 2025
686efaa
Rollup merge of #142138 - ashivaram23:vec_into_chunks, r=scottmcm
jhpratt Jul 2, 2025
99005eb
Rollup merge of #142321 - ostylk:fix/ppc64_abi, r=workingjubilee
jhpratt Jul 2, 2025
31c6a20
Rollup merge of #142886 - Enselic:aarch64-panic, r=cuviper
jhpratt Jul 2, 2025
6d5f88d
Rollup merge of #143038 - Qelxiros:142676-private-dependency-traits, …
jhpratt Jul 2, 2025
d416ac7
Rollup merge of #143194 - folkertdev:fix-single-element-simd-bitcast,…
jhpratt Jul 2, 2025
7d0c4c5
Rollup merge of #143206 - Jules-Bertholet:align-attr-fixes, r=working…
jhpratt Jul 2, 2025
406e339
Rollup merge of #143231 - xizheyin:143152, r=fee1-dead
jhpratt Jul 2, 2025
22d2ffd
Rollup merge of #143232 - jieyouxu:compiletest-maintenance-3, r=Kobzol
jhpratt Jul 2, 2025
8bebcfa
Rollup merge of #143258 - compiler-errors:disambiguator-state, r=oli-obk
jhpratt Jul 2, 2025
aeffc8e
Rollup merge of #143260 - dpaoliello:arm64eclinkagain, r=bjorn3
jhpratt Jul 2, 2025
87a74bd
Rollup merge of #143274 - marcoieni:optional-jobs, r=Kobzol
jhpratt Jul 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions compiler/rustc_codegen_ssa/src/back/symbol_export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,18 @@ fn exported_non_generic_symbols_provider_local<'tcx>(

// Mark allocator shim symbols as exported only if they were generated.
if allocator_kind_for_codegen(tcx).is_some() {
for symbol_name in ALLOCATOR_METHODS
for (symbol_name, export_kind) in ALLOCATOR_METHODS
.iter()
.map(|method| mangle_internal_symbol(tcx, global_fn_name(method.name).as_str()))
.map(|method| {
(
mangle_internal_symbol(tcx, global_fn_name(method.name).as_str()),
SymbolExportKind::Text,
)
})
.chain([
mangle_internal_symbol(tcx, "__rust_alloc_error_handler"),
mangle_internal_symbol(tcx, OomStrategy::SYMBOL),
mangle_internal_symbol(tcx, NO_ALLOC_SHIM_IS_UNSTABLE),
(mangle_internal_symbol(tcx, "__rust_alloc_error_handler"), SymbolExportKind::Text),
(mangle_internal_symbol(tcx, OomStrategy::SYMBOL), SymbolExportKind::Data),
(mangle_internal_symbol(tcx, NO_ALLOC_SHIM_IS_UNSTABLE), SymbolExportKind::Text),
])
{
let exported_symbol = ExportedSymbol::NoDefId(SymbolName::new(tcx, &symbol_name));
Expand All @@ -234,7 +239,7 @@ fn exported_non_generic_symbols_provider_local<'tcx>(
exported_symbol,
SymbolExportInfo {
level: SymbolExportLevel::Rust,
kind: SymbolExportKind::Text,
kind: export_kind,
used: false,
rustc_std_internal_symbol: true,
},
Expand Down