rust/src/libstd/sync
Alex Crichton b97e1cc28e rollup merge of #23541: aturon/stab-error
This small commit stabilizes the `Error` trait as-is, except that `Send`
and `Debug` are added as constraints. The `Send` constraint is because
most uses of `Error` will be for trait objects, and by default we would
like these objects to be transferrable between threads. The `Debug`
constraint is to ensure that e.g. `Box<Error>` is `Debug`, and because
types that implement `Display` should certainly implement `Debug` in any case.

In the near future we expect to add `Any`-like downcasting features to
`Error`, but this is waiting on some additional
mechanisms (`Reflect`). It will be added before 1.0 via default methods.

[breaking-change]

r? @alexcrichton

Closes #21790
2015-03-23 15:09:08 -07:00
..
mpsc rollup merge of #23541: aturon/stab-error 2015-03-23 15:09:08 -07:00
barrier.rs Remove explicit syntax highlight from docs. 2015-03-13 19:25:18 -04:00
condvar.rs Example -> Examples 2015-03-11 21:11:40 -04:00
future.rs Rename #[should_fail] to #[should_panic] 2015-03-09 10:14:21 -07:00
mod.rs allow(deprecated) for TaskPool (fixup #22783) 2015-02-25 11:45:06 +05:30
mutex.rs Fix documentation for std::sync::mutex: into_guard -> into_inner 2015-03-21 14:38:23 +09:00
once.rs Remove explicit syntax highlight from docs. 2015-03-13 19:25:18 -04:00
poison.rs Stabilize the Error trait 2015-03-23 11:27:19 -07:00
rwlock.rs Example -> Examples 2015-03-11 21:11:40 -04:00
semaphore.rs Example -> Examples 2015-03-11 21:11:40 -04:00
task_pool.rs Remove explicit syntax highlight from docs. 2015-03-13 19:25:18 -04:00