Skip to content

Commit fd2475e

Browse files
committed
---
yaml --- r: 83943 b: refs/heads/dist-snap c: e89dcb8 h: refs/heads/master i: 83941: 6c2fd1a 83939: ed8b1b7 83935: f089898 v: v3
1 parent 5086769 commit fd2475e

File tree

9 files changed

+32
-34
lines changed

9 files changed

+32
-34
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 0983ebe5310d4eb6d289f636f7ed0536c08bbc0e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: bbfef92e3d2a5e325668e07137dc531aff35a323
9+
refs/heads/dist-snap: e89dcb887b99dc8c04d2863e906a4b2705959159
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/doc/rust.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2869,24 +2869,19 @@ The kinds are:
28692869
: Types of this kind can be safely sent between tasks.
28702870
This kind includes scalars, owning pointers, owned closures, and
28712871
structural types containing only other owned types. All `Send` types are `Static`.
2872-
`Static`
2873-
: Types of this kind do not contain any borrowed pointers;
2874-
this can be a useful guarantee for code that breaks borrowing assumptions using [`unsafe` operations](#unsafe-functions).
28752872
`Copy`
28762873
: This kind includes all types that can be copied. All types with
28772874
sendable kind are copyable, as are managed boxes, managed closures,
28782875
trait types, and structural types built out of these.
28792876
Types with destructors (types that implement `Drop`) can not implement `Copy`.
28802877
`Drop`
28812878
: This is not strictly a kind, but its presence interacts with kinds: the `Drop`
2882-
trait provides a single method `finalize` that takes no parameters, and is run
2879+
trait provides a single method `drop` that takes no parameters, and is run
28832880
when values of the type are dropped. Such a method is called a "destructor",
28842881
and are always executed in "top-down" order: a value is completely destroyed
28852882
before any of the values it owns run their destructors. Only `Send` types
28862883
that do not implement `Copy` can implement `Drop`.
28872884

2888-
> **Note:** The `finalize` method may be renamed in future versions of Rust.
2889-
28902885
_Default_
28912886
: Types with destructors, closure environments,
28922887
and various other _non-first-class_ types,

branches/dist-snap/src/libextra/extra.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ pub mod uv_ll;
4040

4141
// General io and system-services modules
4242

43-
#[path = "net/mod.rs"]
4443
pub mod net;
44+
pub mod net_ip;
45+
pub mod net_tcp;
46+
pub mod net_url;
4547

4648
// libuv modules
4749
pub mod uv;

branches/dist-snap/src/libextra/net/mod.rs renamed to branches/dist-snap/src/libextra/net.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ Top-level module for network-related functionality.
1313
1414
Basically, including this module gives you:
1515
16-
* `tcp`
17-
* `ip`
18-
* `url`
16+
* `net_tcp`
17+
* `net_ip`
18+
* `net_url`
1919
2020
See each of those three modules for documentation on what they do.
2121
*/
2222

23-
pub mod tcp;
24-
pub mod ip;
25-
pub mod url;
23+
pub use tcp = net_tcp;
24+
pub use ip = net_ip;
25+
pub use url = net_url;

branches/dist-snap/src/libextra/net/ip.rs renamed to branches/dist-snap/src/libextra/net_ip.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ use std::str;
2222
use iotask = uv::iotask::IoTask;
2323
use interact = uv::iotask::interact;
2424

25-
use sockaddr_in = super::super::uv_ll::sockaddr_in;
26-
use sockaddr_in6 = super::super::uv_ll::sockaddr_in6;
27-
use addrinfo = super::super::uv_ll::addrinfo;
28-
use uv_getaddrinfo_t = super::super::uv_ll::uv_getaddrinfo_t;
29-
use uv_ip4_name = super::super::uv_ll::ip4_name;
30-
use uv_ip4_port = super::super::uv_ll::ip4_port;
31-
use uv_ip6_name = super::super::uv_ll::ip6_name;
32-
use uv_ip6_port = super::super::uv_ll::ip6_port;
33-
use uv_getaddrinfo = super::super::uv_ll::getaddrinfo;
34-
use uv_freeaddrinfo = super::super::uv_ll::freeaddrinfo;
35-
use create_uv_getaddrinfo_t = super::super::uv_ll::getaddrinfo_t;
36-
use set_data_for_req = super::super::uv_ll::set_data_for_req;
37-
use get_data_for_req = super::super::uv_ll::get_data_for_req;
38-
use ll = super::super::uv_ll;
25+
use sockaddr_in = super::uv_ll::sockaddr_in;
26+
use sockaddr_in6 = super::uv_ll::sockaddr_in6;
27+
use addrinfo = super::uv_ll::addrinfo;
28+
use uv_getaddrinfo_t = super::uv_ll::uv_getaddrinfo_t;
29+
use uv_ip4_name = super::uv_ll::ip4_name;
30+
use uv_ip4_port = super::uv_ll::ip4_port;
31+
use uv_ip6_name = super::uv_ll::ip6_name;
32+
use uv_ip6_port = super::uv_ll::ip6_port;
33+
use uv_getaddrinfo = super::uv_ll::getaddrinfo;
34+
use uv_freeaddrinfo = super::uv_ll::freeaddrinfo;
35+
use create_uv_getaddrinfo_t = super::uv_ll::getaddrinfo_t;
36+
use set_data_for_req = super::uv_ll::set_data_for_req;
37+
use get_data_for_req = super::uv_ll::get_data_for_req;
38+
use ll = super::uv_ll;
3939

4040
/// An IP address
4141
pub enum IpAddr {
@@ -363,9 +363,9 @@ extern fn get_addr_cb(handle: *uv_getaddrinfo_t,
363363
#[cfg(test)]
364364
mod test {
365365

366-
use net::ip::*;
367-
use net::ip::v4;
368-
use net::ip::v6;
366+
use net_ip::*;
367+
use net_ip::v4;
368+
use net_ip::v6;
369369
use uv;
370370

371371
use std::result;

branches/dist-snap/src/libextra/net/tcp.rs renamed to branches/dist-snap/src/libextra/net_tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
use future;
1818
use future_spawn = future::spawn;
19-
use ip = net::ip;
19+
use ip = net_ip;
2020
use uv;
2121
use uv::iotask;
2222
use uv::iotask::IoTask;

branches/dist-snap/src/libextra/net/url.rs renamed to branches/dist-snap/src/libextra/net_url.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ fn test_get_path() {
800800
#[cfg(test)]
801801
mod tests {
802802
803-
use net::url::*;
803+
use net_url::*;
804804
805805
use std::hashmap::HashMap;
806806

branches/dist-snap/src/libstd/bool.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ pub fn xor(a: bool, b: bool) -> bool { (a && !b) || (!a && b) }
122122
* ~~~ {.rust}
123123
* rusti> std::bool::implies(true, true)
124124
* true
125+
* ~~~
125126
*
126127
* ~~~ {.rust}
127128
* rusti> std::bool::implies(true, false)

branches/dist-snap/src/libstd/kinds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ intrinsic properties of the type. These classifications, often called
1818
They cannot be implemented by user code, but are instead implemented
1919
by the compiler automatically for the types to which they apply.
2020
21-
The 4 kinds are
21+
The 3 kinds are
2222
2323
* Copy - types that may be copied without allocation. This includes
2424
scalar types and managed pointers, and exludes owned pointers. It

0 commit comments

Comments
 (0)