auto merge of #10603 : alexcrichton/rust/no-linked-failure, r=brson
The reasons for doing this are: * The model on which linked failure is based is inherently complex * The implementation is also very complex, and there are few remaining who fully understand the implementation * There are existing race conditions in the core context switching function of the scheduler, and possibly others. * It's unclear whether this model of linked failure maps well to a 1:1 threading model Linked failure is often a desired aspect of tasks, but we would like to take a much more conservative approach in re-implementing linked failure if at all. Closes #8674 Closes #8318 Closes #8863
This commit is contained in:
commit
2cc1e16ac0
39 changed files with 400 additions and 2528 deletions
|
@ -2349,9 +2349,9 @@ Indices are zero-based, and may be of any integral type. Vector access
|
|||
is bounds-checked at run-time. When the check fails, it will put the
|
||||
task in a _failing state_.
|
||||
|
||||
~~~~
|
||||
~~~~ {.xfail-test}
|
||||
# use std::task;
|
||||
# do task::spawn_unlinked {
|
||||
# do task::spawn {
|
||||
|
||||
([1, 2, 3, 4])[0];
|
||||
(["a", "b"])[10]; // fails
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue