Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
29 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
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
fd147cd
Rollup merge of #141847 - xizheyin:141837, r=jhpratt
matthiaskrgr Jul 2, 2025
4aedc00
Rollup merge of #142138 - ashivaram23:vec_into_chunks, r=scottmcm
matthiaskrgr Jul 2, 2025
aa8729a
Rollup merge of #142321 - ostylk:fix/ppc64_abi, r=workingjubilee
matthiaskrgr Jul 2, 2025
7a406f1
Rollup merge of #142886 - Enselic:aarch64-panic, r=cuviper
matthiaskrgr Jul 2, 2025
f916bb2
Rollup merge of #143038 - Qelxiros:142676-private-dependency-traits, …
matthiaskrgr Jul 2, 2025
7732fc8
Rollup merge of #143194 - folkertdev:fix-single-element-simd-bitcast,…
matthiaskrgr Jul 2, 2025
b72b0a3
Rollup merge of #143231 - xizheyin:143152, r=fee1-dead
matthiaskrgr Jul 2, 2025
43775fc
Rollup merge of #143232 - jieyouxu:compiletest-maintenance-3, r=Kobzol
matthiaskrgr Jul 2, 2025
d85a33d
Rollup merge of #143258 - compiler-errors:disambiguator-state, r=oli-obk
matthiaskrgr Jul 2, 2025
5719019
Rollup merge of #143260 - dpaoliello:arm64eclinkagain, r=bjorn3
matthiaskrgr Jul 2, 2025
e3fc977
Rollup merge of #143274 - marcoieni:optional-jobs, r=Kobzol
matthiaskrgr 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
Prev Previous commit
Next Next commit
Use the correct export kind for __rust_alloc_error_handler_should_panic
  • Loading branch information
dpaoliello committed Jun 30, 2025
commit c07328613f2b0230f867da6c47034223786da5d0
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_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_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
Loading