Skip to content

Commit b01d2ba

Browse files
committed
rt: Comment out an assert in rust_kernel. rust-lang#4711
1 parent b171d0e commit b01d2ba

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/rt/rust_kernel.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,11 @@ rust_kernel::register_exit_function(spawn_fn runner, fn_env_pair *f) {
342342
assert(!at_exit_started && "registering at_exit function after exit");
343343

344344
if (at_exit_runner) {
345-
assert(runner == at_exit_runner
346-
&& "there can be only one at_exit_runner");
345+
// FIXME #2912 Would be very nice to assert this but we can't because
346+
// of the way coretest works (the test case ends up using its own
347+
// function)
348+
//assert(runner == at_exit_runner
349+
// && "there can be only one at_exit_runner");
347350
}
348351

349352
at_exit_runner = runner;

0 commit comments

Comments
 (0)