rust/src/test
bors 4ac4809ccf Auto merge of #64906 - Aaron1011:feature/extern-const-fn, r=Centril
Add support for `const unsafe? extern fn`

This works just as you might expect - an `const extern fn` is a `const fn` that is callable from foreign code.

Currently, panicking is not allowed in `const`s. When https://github.com/rust-lang/rfcs/pull/2345 (https://github.com/rust-lang/rust/issues/51999) is stabilized, then panicking in an `const extern fn` will produce a compile-time error when invoked at compile time, and an abort when invoked at runtime.

Since this is extending the language (we're allowing the `const` keyword in a new context), I believe that this will need an FCP. However, it's a very minor change, so I didn't think that filing an RFC was necessary.

This will allow libc (and other FFI crates) to make many functions `const`, without having to give up on making them `extern` as well.

Tracking issue: https://github.com/rust-lang/rust/issues/64926.
2019-10-07 00:12:12 +00:00
..
assembly
auxiliary
codegen Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, r=alexcrichton" 2019-10-05 21:38:45 -07:00
codegen-units rustc: Fix mixing crates with different share_generics 2019-09-23 12:29:51 -07:00
compile-fail Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, r=alexcrichton" 2019-10-05 21:38:45 -07:00
debuginfo fix debuginfo/issue22656 with LLDB 8 2019-09-18 10:42:55 -04:00
incremental Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, r=alexcrichton" 2019-10-05 21:38:45 -07:00
mir-opt Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, r=alexcrichton" 2019-10-05 21:38:45 -07:00
pretty Print visibility of macro items 2019-09-15 10:22:13 +01:00
run-fail [const-prop] Replace CheckedBinaryOp handling with use of InterpCx 2019-09-27 20:11:12 -04:00
run-make Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, r=alexcrichton" 2019-10-05 21:38:45 -07:00
run-make-fulldeps Deprecate #![plugin] and #[plugin_registrar]. 2019-10-03 06:46:52 +02:00
run-pass-valgrind Remove no-prefer-dynamic from valgrind tests 2019-09-01 10:09:45 -04:00
rustdoc rustc: rely on c_variadic == true instead of CVarArgs in HIR/Ty fn signatures. 2019-09-28 17:39:00 +03:00
rustdoc-js Improve searching in rustdoc and add tests 2019-09-04 21:27:13 +08:00
rustdoc-js-std Improve searching in rustdoc and add tests 2019-09-04 21:27:13 +08:00
rustdoc-ui Add new rustdoc-ui test to ensuire that rustdoc feature isn't passed down to doctests 2019-10-01 14:38:36 +02:00
rustfix
ui Auto merge of #64906 - Aaron1011:feature/extern-const-fn, r=Centril 2019-10-07 00:12:12 +00:00
ui-fulldeps --bless ui-fulldeps tests 2019-10-03 09:33:28 +02:00
COMPILER_TESTS.md