rust/src/tools
bors 4f1be92153 Auto merge of #129753 - folkertdev:stabilize-const-extern-fn, r=RalfJung
stabilize `const_extern_fn`

closes https://github.com/rust-lang/rust/issues/64926

tracking issue: https://github.com/rust-lang/rust/issues/64926
reference PR: https://github.com/rust-lang/reference/pull/1596

## Stabilizaton Report

### Summary

Using `const extern "Rust"` and `const extern "C"` was already stabilized (since version 1.62.0, see https://github.com/rust-lang/rust/pull/95346). This PR stabilizes the other calling conventions: it is now possible to write  `const unsafe extern "calling-convention" fn` and `const extern "calling-convention" fn` for any supported calling convention:

```rust
const extern "C-unwind" fn foo1(val: u8) -> u8 { val + 1}
const extern "stdcall" fn foo2(val: u8) -> u8 { val + 1}
const unsafe extern "C-unwind" fn bar1(val: bool) -> bool { !val }
const unsafe extern "stdcall" fn bar2(val: bool) -> bool { !val }
```

This can be used to const-ify an `extern fn`, or conversely, to make a `const fn` callable from external code.

r? T-lang

cc `@RalfJung`
2024-09-14 23:47:59 +00:00
..
build-manifest Promote Mac Catalyst targets to tier 2, and ship with rustup 2024-08-14 02:12:14 +02:00
build_helper Auto merge of #130121 - lolbinarycat:bootstrap-warn-old-upstream-worktree, r=albertlarsan68 2024-09-13 22:02:35 +00:00
bump-stage0 bump-stage0: use IndexMap for determinism 2024-07-30 15:13:58 -07:00
cargo@c1fa840a85 Update cargo 2024-08-31 09:30:22 +08:00
cargotest Reformat use declarations. 2024-07-29 08:26:52 +10:00
clippy stabilize const_extern_fn 2024-09-14 18:07:06 +02:00
collect-license-metadata Update generate-copyright 2024-08-06 11:04:55 +01:00
compiletest Re-run coverage tests if coverage-dump was modified 2024-09-12 12:47:55 +10:00
coverage-dump Reformat use declarations. 2024-07-29 08:26:52 +10:00
enzyme@2fe5164a24 Enzyme backend 2024-09-05 22:47:23 -04:00
error_index_generator Reformat use declarations. 2024-07-29 08:26:52 +10:00
generate-copyright Apparently library/std is now part of a workspace at library/ 2024-08-06 12:12:57 +01:00
generate-windows-sys Add windows-targets crate to std's sysroot 2024-08-09 10:43:43 +00:00
html-checker Reformat use declarations. 2024-07-29 08:26:52 +10:00
jsondocck Reformat use declarations. 2024-07-29 08:26:52 +10:00
jsondoclint rustdoc: normalise type/field names in rustdoc-json-types/jsondoclint 2024-09-01 23:58:08 +03:00
libcxx-version skip src/tools/libcxx-version from tidy 2024-06-06 07:01:37 +03:00
linkchecker update the doc comment on lintchecker b/c it parses html now 2024-08-24 12:35:35 -04:00
lint-docs forward linker option to lint-docs 2024-09-04 14:44:23 +08:00
lld-wrapper Reformat use declarations. 2024-07-29 08:26:52 +10:00
llvm-bitcode-linker Reformat use declarations. 2024-07-29 08:26:52 +10:00
miri simd_shuffle: require index argument to be a vector 2024-09-14 14:43:24 +02:00
miropt-test-tools
opt-dist use local-rebuild instead of BOOTSTRAP_SKIP_TARGET_SANITY workaround 2024-09-12 08:53:28 +03:00
remote-test-client Reformat use declarations. 2024-07-29 08:26:52 +10:00
remote-test-server Reformat use declarations. 2024-07-29 08:26:52 +10:00
replace-version-placeholder Reformat use declarations. 2024-07-29 08:26:52 +10:00
rls Reformat use declarations. 2024-07-29 08:26:52 +10:00
run-make-support Rollup merge of #130156 - nebulark:test_buildinfo, r=jieyouxu 2024-09-12 20:37:15 +10:00
rust-analyzer Fix tools 2024-09-06 10:32:48 -04:00
rust-installer Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustbook Update src/tools/rustbook/Cargo.lock 2024-08-26 10:12:50 -07:00
rustc-perf@d5055e7804 bump up rustc-perf's version 2024-08-09 01:24:39 +09:00
rustc-perf-wrapper impl compare command and benchmark command to rustc-perf-wrapper 2024-08-09 20:03:14 +09:00
rustdoc Link std statically in rustc_driver 2024-08-11 04:16:53 +02:00
rustdoc-gui Other EcmaScript version bump 2024-06-07 08:44:52 +08:00
rustdoc-gui-test Reformat use declarations. 2024-07-29 08:26:52 +10:00
rustdoc-js Separate core search logic with search ui 2024-08-29 00:26:16 +08:00
rustdoc-themes
rustfmt Fix tools 2024-09-06 10:32:48 -04:00
suggest-tests handle GitConfig for tools/suggest-tests 2024-09-09 21:03:51 +03:00
tidy Auto merge of #125419 - GuillaumeGomez:add-gcc-to-dist, r=Kobzol 2024-09-14 00:26:04 +00:00
tier-check Add NuttX based targets for RISC-V and ARM 2024-07-19 22:00:42 +08:00
unicode-table-generator Reformat use declarations. 2024-07-29 08:26:52 +10:00
unstable-book-gen Reformat use declarations. 2024-07-29 08:26:52 +10:00
wasm-component-ld Fix a typo in the wasm-component-ld README 2024-09-06 09:20:53 -07:00
x Reformat use declarations. 2024-07-29 08:26:52 +10:00
cherry-pick.sh
publish_toolstate.py