about summary refs log tree commit diff
path: root/src/test/compile-fail/unsendable-class.rs
AgeCommit message (Collapse)AuthorLines
2015-04-01Test fixes and rebase conflicts, round 2Alex Crichton-35/+0
2015-01-16Don't use NoSend/NoSync in testsFlavio Percoco-1/+0
2015-01-08Update compile fail tests to use isize.Huon Wilson-2/+2
2015-01-07markers -> markerNick Cameron-2/+2
2015-01-07Change `std::kinds` to `std::markers`; flatten `std::kinds::marker`Nick Cameron-2/+2
[breaking-change]
2014-12-29std: Second pass stabilization for `comm`Alex Crichton-1/+1
This commit is a second pass stabilization for the `std::comm` module, performing the following actions: * The entire `std::comm` module was moved under `std::sync::mpsc`. This movement reflects that channels are just yet another synchronization primitive, and they don't necessarily deserve a special place outside of the other concurrency primitives that the standard library offers. * The `send` and `recv` methods have all been removed. * The `send_opt` and `recv_opt` methods have been renamed to `send` and `recv`. This means that all send/receive operations return a `Result` now indicating whether the operation was successful or not. * The error type of `send` is now a `SendError` to implement a custom error message and allow for `unwrap()`. The error type contains an `into_inner` method to extract the value. * The error type of `recv` is now `RecvError` for the same reasons as `send`. * The `TryRecvError` and `TrySendError` types have had public reexports removed of their variants and the variant names have been tweaked with enum namespacing rules. * The `Messages` iterator is renamed to `Iter` This functionality is now all `#[stable]`: * `Sender` * `SyncSender` * `Receiver` * `std::sync::mpsc` * `channel` * `sync_channel` * `Iter` * `Sender::send` * `Sender::clone` * `SyncSender::send` * `SyncSender::try_send` * `SyncSender::clone` * `Receiver::recv` * `Receiver::try_recv` * `Receiver::iter` * `SendError` * `RecvError` * `TrySendError::{mod, Full, Disconnected}` * `TryRecvError::{mod, Empty, Disconnected}` * `SendError::into_inner` * `TrySendError::into_inner` This is a breaking change due to the modification of where this module is located, as well as the changing of the semantics of `send` and `recv`. Most programs just need to rename imports of `std::comm` to `std::sync::mpsc` and add calls to `unwrap` after a send or a receive operation. [breaking-change]
2014-12-29std: Stabilize the prelude moduleAlex Crichton-0/+1
This commit is an implementation of [RFC 503][rfc] which is a stabilization story for the prelude. Most of the RFC was directly applied, removing reexports. Some reexports are kept around, however: * `range` remains until range syntax has landed to reduce churn. * `Path` and `GenericPath` remain until path reform lands. This is done to prevent many imports of `GenericPath` which will soon be removed. * All `io` traits remain until I/O reform lands so imports can be rewritten all at once to `std::io::prelude::*`. This is a breaking change because many prelude reexports have been removed, and the RFC can be consulted for the exact list of removed reexports, as well as to find the locations of where to import them. [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md [breaking-change] Closes #20068
2014-12-26Keep track of the whole error chainFlavio Percoco-1/+3
2014-12-02Correct various compile-fail tests. Most of the changes are because weNiko Matsakis-1/+1
now don't print duplicate errors within one context, so I sometimes had to break functions into two functions.
2014-10-02tests: remove uses of Gc.Eduard Burtescu-4/+4
2014-09-15Update error messages in compile-fail testsNiko Matsakis-2/+2
2014-07-26Remove managed_box gate from testsBrian Anderson-1/+0
No longer does anything.
2014-06-14rustc: Obsolete the `@` syntax entirelyAlex Crichton-3/+5
This removes all remnants of `@` pointers from rustc. Additionally, this removes the `GC` structure from the prelude as it seems odd exporting an experimental type in the prelude by default. Closes #14193 [breaking-change]
2014-05-27std: Rename strbuf operations to stringRicho Healey-1/+1
[breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-2/+2
[breaking-change]
2014-05-14test: Remove all uses of `~str` from the test suite.Patrick Walton-3/+3
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-1/+1
2014-03-28Convert most code to new inner attribute syntax.Brian Anderson-1/+1
Closes #2569
2014-03-13std: Rename Chan/Port types and constructorAlex Crichton-2/+2
* Chan<T> => Sender<T> * Port<T> => Receiver<T> * Chan::new() => channel() * constructor returns (Sender, Receiver) instead of (Receiver, Sender) * local variables named `port` renamed to `rx` * local variables named `chan` renamed to `tx` Closes #11765
2013-12-16Fallout of rewriting std::commAlex Crichton-3/+1
2013-10-23register snapshotsDaniel Micay-0/+2
2013-06-28librustc: Change "Owned" to "Send" everywherePatrick Walton-2/+2
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+2
2013-02-21core: Extract comm from pipes. #4742Brian Anderson-1/+1
2013-02-15tests/tutorials: Get rid of `move`.Luqman Aden-1/+1
2013-02-08Fix subtle error in caching during kind computation that could cause linearNiko Matsakis-2/+2
values to be copied. Rewrite kind computation so that instead of directly computing the kind it computes what kinds of values are present in the type, and then derive kinds based on that. I find this easier to think about. Fixes #4821.
2013-01-30Remove oldcomm from the test suiteBrian Anderson-3/+2
2012-12-14Rename core::comm to core::oldcommBrian Anderson-3/+3
2012-12-13Rename Send trait to OwnedBrian Anderson-3/+3
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-10-12Make moves explicit in cfail testsTim Chevalier-1/+1
2012-10-04De-mode comm::ChanTim Chevalier-1/+1
2012-09-07Remove 'let' syntax for struct fieldsBrian Anderson-2/+2
2012-09-06Remove struct ctorsBrian Anderson-1/+7
2012-08-27Camel case various core constructorsBrian Anderson-2/+2
2012-08-17Remove the class keywordBrian Anderson-1/+1
2012-07-14Treat bare vector and string literals as fixed length vecs. Closes #2922.Michael Sullivan-2/+2
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-2/+2
#2907.
2012-07-12Accept prefix notation for writing the types of str/~ and friends.Michael Sullivan-2/+2
2012-06-30change the test suite `//! kind` syntax to `//~ kind` in order to avoid aGareth Daniel Smith-3/+3
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-06-01Tests for copyability and sendability rules for classesTim Chevalier-0/+15
Closes #2296