about summary refs log tree commit diff
path: root/src/libcore/finally.rs
AgeCommit message (Collapse)AuthorLines
2015-03-31std: Clean out #[deprecated] APIsAlex Crichton-111/+0
This commit cleans out a large amount of deprecated APIs from the standard library and some of the facade crates as well, updating all users in the compiler and in tests as it goes along.
2015-03-23Add #![feature] attributes to doctestsBrian Anderson-0/+2
2015-03-15Strip all leading/trailing newlinesTamir Duberstein-1/+0
2015-03-11Example -> ExamplesSteve Klabnik-2/+2
This brings comments in line with https://github.com/rust-lang/rfcs/blob/master/text/0505-api-comment-conventions.md#using-markdown
2015-02-15Audit integer types in finally.Niko Matsakis-1/+1
2015-02-04remove all kind annotations from closuresJorge Aparicio-1/+1
2015-01-23Deprecated attributes don't take 'feature' names and are paired with ↵Brian Anderson-1/+2
stable/unstable Conflicts: src/libcore/atomic.rs src/libcore/finally.rs src/test/auxiliary/inherited_stability.rs src/test/auxiliary/lint_stability.rs
2015-01-23Set unstable feature names appropriatelyBrian Anderson-1/+1
* `core` - for the core crate * `hash` - hashing * `io` - io * `path` - path * `alloc` - alloc crate * `rand` - rand crate * `collections` - collections crate * `std_misc` - other parts of std * `test` - test crate * `rustc_private` - everything else
2015-01-21Add 'feature' and 'since' to stability attributesBrian Anderson-4/+5
2015-01-17Evaluate # fn in docsSteve Klabnik-2/+0
I searched for times when we were hiding functions with # in the documentation, and fixed them to not use it unless neccesary. I also made random improvements whenever I changed something. For example, I changed Example to Examples, for consistency. Fixes #13423
2015-01-13Address feedbackBrian Anderson-1/+5
2015-01-13std: Deprecate `finally` moduleBrian Anderson-1/+1
No in-tree users. Ugly interface. Closes #14332.
2015-01-08Improvements to feature stagingBrian Anderson-1/+1
This gets rid of the 'experimental' level, removes the non-staged_api case (i.e. stability levels for out-of-tree crates), and lets the staged_api attributes use 'unstable' and 'deprecated' lints. This makes the transition period to the full feature staging design a bit nicer.
2014-12-13libcore: fix fallout in doc testsJorge Aparicio-1/+5
2014-12-13libcore: use unboxed closures in the `finally` moduleJorge Aparicio-23/+12
2014-11-26rollup merge of #19329: steveklabnik/doc_style_cleanup2Alex Crichton-21/+19
2014-11-26/*! -> //!Steve Klabnik-21/+19
Sister pull request of https://github.com/rust-lang/rust/pull/19288, but for the other style of block doc comment.
2014-11-25/** -> ///Steve Klabnik-32/+30
This is considered good convention.
2014-11-17Fix fallout from coercion removalNick Cameron-1/+1
2014-10-29Rename fail! to panic!Steve Klabnik-2/+2
https://github.com/rust-lang/rfcs/pull/221 The current terminology of "task failure" often causes problems when writing or speaking about code. You often want to talk about the possibility of an operation that returns a Result "failing", but cannot because of the ambiguity with task failure. Instead, you have to speak of "the failing case" or "when the operation does not succeed" or other circumlocutions. Likewise, we use a "Failure" header in rustdoc to describe when operations may fail the task, but it would often be helpful to separate out a section describing the "Err-producing" case. We have been steadily moving away from task failure and toward Result as an error-handling mechanism, so we should optimize our terminology accordingly: Result-producing functions should be easy to describe. To update your code, rename any call to `fail!` to `panic!` instead. Assuming you have not created your own macro named `panic!`, this will work on UNIX based systems: grep -lZR 'fail!' . | xargs -0 -l sed -i -e 's/fail!/panic!/g' You can of course also do this by hand. [breaking-change]
2014-08-29Register new snapshotsAlex Crichton-7/+0
2014-08-27Implement generalized object and type parameter bounds (Fixes #16462)Niko Matsakis-0/+7
2014-06-29Extract tests from libcore to a separate crateSteven Fackler-52/+0
Libcore's test infrastructure is complicated by the fact that many lang items are defined in the crate. The current approach (realcore/realstd imports) is hacky and hard to work with (tests inside of core::cmp haven't been run for months!). Moving tests to a separate crate does mean that they can only test the public API of libcore, but I don't feel that that is too much of an issue. The only tests that I had to get rid of were some checking the various numeric formatters, but those are also exercised through normal format! calls in other tests.
2014-06-24librustc: Remove the fallback to `int` from typechecking.Niko Matsakis-2/+2
This breaks a fair amount of code. The typical patterns are: * `for _ in range(0, 10)`: change to `for _ in range(0u, 10)`; * `println!("{}", 3)`: change to `println!("{}", 3i)`; * `[1, 2, 3].len()`: change to `[1i, 2, 3].len()`. RFC #30. Closes #6023. [breaking-change]
2014-05-23std: Move unstable::finally to std::finally. #1457Brian Anderson-2/+2
[breaking-change]
2014-05-07core: Get coretest workingAlex Crichton-2/+3
This mostly involved frobbing imports between realstd, realcore, and the core being test. Some of the imports are a little counterintuitive, but it mainly focuses around libcore's types not implementing Show while libstd's types implement Show.
2014-05-07core: Bring char/finally test style up to dateAlex Crichton-42/+45
2014-05-07core: Inherit the finally moduleAlex Crichton-0/+165