<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/std.rs, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2013-11-03T12:49:01+00:00</updated>
<entry>
<title>Rename files to match current recommendations.</title>
<updated>2013-11-03T12:49:01+00:00</updated>
<author>
<name>Chris Morgan</name>
<email>me@chrismorgan.info</email>
</author>
<published>2013-10-29T06:22:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0369a41f0e668eda5622055253b91dbb5254f0b4'/>
<id>urn:sha1:0369a41f0e668eda5622055253b91dbb5254f0b4</id>
<content type='text'>
New standards have arisen in recent months, mostly for the use of
rustpkg, but the main Rust codebase has not been altered to match these
new specifications. This changeset rectifies most of these issues.

- Renamed the crate source files `src/libX/X.rs` to `lib.rs`, for
  consistency with current styles; this affects extra, rustc, rustdoc,
  rustpkg, rustuv, std, syntax.

- Renamed `X/X.rs` to `X/mod.rs,` as is now recommended style, for
  `std::num` and `std::terminfo`.

- Shifted `src/libstd/str/ascii.rs` out of the otherwise unused `str`
  directory, to be consistent with its import path of `std::ascii`;
  libstd is flat at present so it's more appropriate thus.

While this removes some `#[path = "..."]` directives, it does not remove
all of them, and leaves certain other inconsistencies, such as `std::u8`
et al. which are actually stored in `src/libstd/num/` (one subdirectory
down). No quorum has been reached on this issue, so I felt it best to
leave them all alone at present. #9208 deals with the possibility of
making libstd more hierarchical (such as changing the crate to match the
current filesystem structure, which would make the module path
`std::num::u8`).

There is one thing remaining in which this repository is not
rustpkg-compliant: rustpkg would have `src/std/` et al. rather than
`src/libstd/` et al. I have not endeavoured to change that at this point
as it would guarantee prompt bitrot and confusion. A change of that
magnitude needs to be discussed first.
</content>
</entry>
<entry>
<title>Register new snapshots</title>
<updated>2013-11-01T23:51:33+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2013-11-01T20:46:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9df164c1459cf36545754e3f92f93b8756f0c897'/>
<id>urn:sha1:9df164c1459cf36545754e3f92f93b8756f0c897</id>
<content type='text'>
Closes #2240
</content>
</entry>
<entry>
<title>Reordered the methods in std::Option and std::Result</title>
<updated>2013-11-01T14:00:46+00:00</updated>
<author>
<name>Marvin Löbel</name>
<email>loebel.marvin@gmail.com</email>
</author>
<published>2013-10-31T22:09:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0d92c53f4a5707ee994d74d9e96995d7bac2ab13'/>
<id>urn:sha1:0d92c53f4a5707ee994d74d9e96995d7bac2ab13</id>
<content type='text'>
Cleaned up the source in a few places

Renamed `map_move` to `map`, removed other `map` methods

Added `as_ref` and `as_mut` adapters to `Result`

Added `fmt::Default` impl
</content>
</entry>
<entry>
<title>Prepared `std::sys` for removal, and made `begin_unwind` simpler</title>
<updated>2013-10-30T20:19:18+00:00</updated>
<author>
<name>Marvin Löbel</name>
<email>loebel.marvin@gmail.com</email>
</author>
<published>2013-10-27T19:12:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=54f4dcd76aafe33c553f6b58fe3e808f055465e1'/>
<id>urn:sha1:54f4dcd76aafe33c553f6b58fe3e808f055465e1</id>
<content type='text'>
- `begin_unwind` is now generic over any `T: Any + Send`.
- Every value you fail with gets boxed as an `~Any`.
- Because of implementation details, `&amp;'static str` and `~str` are still
  handled specially behind the scenes.
- Changed the big macro source string in libsyntax to a raw string
  literal, and enabled doc comments there.
</content>
</entry>
<entry>
<title>Move rust's uv implementation to its own crate</title>
<updated>2013-10-29T15:39:22+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2013-10-22T22:13:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=201cab84e8f12ec73131ac4908e6779b277449a2'/>
<id>urn:sha1:201cab84e8f12ec73131ac4908e6779b277449a2</id>
<content type='text'>
There are a few reasons that this is a desirable move to take:

1. Proof of concept that a third party event loop is possible
2. Clear separation of responsibility between rt::io and the uv-backend
3. Enforce in the future that the event loop is "pluggable" and replacable

Here's a quick summary of the points of this pull request which make this
possible:

* Two new lang items were introduced: event_loop, and event_loop_factory.
  The idea of a "factory" is to define a function which can be called with no
  arguments and will return the new event loop as a trait object. This factory
  is emitted to the crate map when building an executable. The factory doesn't
  have to exist, and when it doesn't then an empty slot is in the crate map and
  a basic event loop with no I/O support is provided to the runtime.

* When building an executable, then the rustuv crate will be linked by default
  (providing a default implementation of the event loop) via a similar method to
  injecting a dependency on libstd. This is currently the only location where
  the rustuv crate is ever linked.

* There is a new #[no_uv] attribute (implied by #[no_std]) which denies
  implicitly linking to rustuv by default

Closes #5019
</content>
</entry>
<entry>
<title>Allow fail messages to be caught, and introduce the Any trait</title>
<updated>2013-10-28T07:50:32+00:00</updated>
<author>
<name>Marvin Löbel</name>
<email>loebel.marvin@gmail.com</email>
</author>
<published>2013-10-11T21:20:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fa8e71a8257f4226ab532d4bf268d3ecbfa98eb4'/>
<id>urn:sha1:fa8e71a8257f4226ab532d4bf268d3ecbfa98eb4</id>
<content type='text'>
Some code cleanup, sorting of import blocks

Removed std::unstable::UnsafeArc's use of Either

Added run-fail tests for the new FailWithCause impls

Changed future_result and try to return Result&lt;(), ~Any&gt;.

- Internally, there is an enum of possible fail messages passend around.
- In case of linked failure or a string message, the ~Any gets
  lazyly allocated in future_results recv method.
- For that, future result now returns a wrapper around a Port.
- Moved and renamed task::TaskResult into rt::task::UnwindResult
  and made it an internal enum.
- Introduced a replacement typedef `type TaskResult = Result&lt;(), ~Any&gt;`.
</content>
</entry>
<entry>
<title>Remove std::io once and for all!</title>
<updated>2013-10-24T21:22:34+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2013-10-22T06:06:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6bb1df92511e7ecafe0554b01410f4e68d7bc66f'/>
<id>urn:sha1:6bb1df92511e7ecafe0554b01410f4e68d7bc66f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>register snapshots</title>
<updated>2013-10-23T22:06:12+00:00</updated>
<author>
<name>Daniel Micay</name>
<email>danielmicay@gmail.com</email>
</author>
<published>2013-10-23T08:49:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=142672dca4314e9cfebf067d46c3b542c721cff6'/>
<id>urn:sha1:142672dca4314e9cfebf067d46c3b542c721cff6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Activate checking code for ASM feature gate. Fix tests</title>
<updated>2013-10-22T11:41:25+00:00</updated>
<author>
<name>Léo Testard</name>
<email>leo.testard@gmail.com</email>
</author>
<published>2013-10-21T23:18:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c4bcf7714b1aa3dbf335cc4de6a1017e8dde3680'/>
<id>urn:sha1:c4bcf7714b1aa3dbf335cc4de6a1017e8dde3680</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: Move size/align functions to std::mem. #2240</title>
<updated>2013-10-18T00:31:35+00:00</updated>
<author>
<name>Brian Anderson</name>
<email>banderson@mozilla.com</email>
</author>
<published>2013-10-17T01:34:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=34d376f3cf234dc714fcfab7639affd3967dc16d'/>
<id>urn:sha1:34d376f3cf234dc714fcfab7639affd3967dc16d</id>
<content type='text'>
</content>
</entry>
</feed>
