about summary refs log tree commit diff
path: root/src/libcore/finally.rs
AgeCommit message (Collapse)AuthorLines
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