git.iko.soy/typeable/nixpkgs
on master help sign in
rustc: 1.34.2 -> 1.35.0
commit513bd49b4496765342db7b218ec91d2c1cb48666 authorEelco Dolstra <edolstra@gmail.com> dateThu 13 Jun 2019, 21:20 (7 years ago) parenta1f852e
3 files changed+33−34
pkgs/development/compilers/rust/bootstrap.nix+8−8 pkgs/development/compilers/rust/patches/net-tcp-disable-tests.patch+23−24 pkgs/development/compilers/rust/rustc.nix+2−2
pkgs/development/compilers/rust/bootstrap.nix+8−8
@@ -3,16 +3,16 @@
33let
44 # Note: the version MUST be one version prior to the version we're
55 # building
6− version = "1.33.0";
6+ version = "1.34.2";
77
8− # fetch hashes by running `print-hashes.sh 1.33.0`
8+ # fetch hashes by running `print-hashes.sh 1.34.2`
99 hashes = {
10− i686-unknown-linux-gnu = "c379203687d98e60623aa88c4df4992dd5a9548bc30674b9fc8e671a979e9f3a";
11− x86_64-unknown-linux-gnu = "6623168b9ee9de79deb0d9274c577d741ea92003768660aca184e04fe774393f";
12− armv7-unknown-linux-gnueabihf = "f6f0ec0a98d922c4bfd79703bc9e9eef439ba347453f33608a87cd63c47e7245";
13− aarch64-unknown-linux-gnu = "a308044e4076b62f637313ea803fa0a8f340b0f1b53136856f2c43afcabe5387";
14− i686-apple-darwin = "ed20809d56bbaea041721ce6fc9f10f7ae7a720c5821587f01a537d07a5454b1";
15− x86_64-apple-darwin = "864e7c074a0b88e38883c87c169513d072300bb52e1d320a067bd34cf14f66bd";
10+ i686-unknown-linux-gnu = "926bafd09eb90ba7d5a0195fcffb8f33dd57e515af4f8987a143459f6b1d3f04";
11+ x86_64-unknown-linux-gnu = "2bf6622d980a52832bae141304e96f317c8a1ccd2dfd69a134a14033e6e43c0f";
12+ armv7-unknown-linux-gnueabihf = "70d1057fcc133dc3e44377060a00d2f9d3a134e2670963d3f1d93f3dbfa0548e";
13+ aarch64-unknown-linux-gnu = "15fc6b7ec121df9d4e42483dd12c677203680bec8c69b6f4f62e5a35a07341a8";
14+ i686-apple-darwin = "b9fc44cbb06050975664f1033d1337bb38d5ea73b503a5d3af5409033397be5c";
15+ x86_64-apple-darwin = "6fdd4bf7fe26dded0cd57b41ab5f0500a5a99b7bc770523a425e9e34f63d0fd8";
1616 };
1717
1818 platform =
pkgs/development/compilers/rust/patches/net-tcp-disable-tests.patch+23−24
@@ -1,8 +1,7 @@
1−diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs
2−index 86ecb10edf..626be0a52d 100644
3−--- a/src/libstd/net/tcp.rs
4−+++ b/src/libstd/net/tcp.rs
5−@@ -955,6 +955,7 @@ mod tests {
1+diff -ru -x '*~' rustc-1.35.0-src-orig/src/libstd/net/tcp.rs rustc-1.35.0-src/src/libstd/net/tcp.rs
2+--- rustc-1.35.0-src-orig/src/libstd/net/tcp.rs 2019-05-20 14:10:15.000000000 +0200
3++++ rustc-1.35.0-src/src/libstd/net/tcp.rs 2019-06-13 19:59:46.740611889 +0200
4+@@ -973,6 +973,7 @@
65 }
76 }
87
@@ -10,7 +9,7 @@ index 86ecb10edf..626be0a52d 100644
109 #[test]
1110 fn listen_localhost() {
1211 let socket_addr = next_test_ip4();
13−@@ -1013,6 +1014,7 @@ mod tests {
12+@@ -1031,6 +1032,7 @@
1413 })
1514 }
1615
@@ -18,7 +17,7 @@ index 86ecb10edf..626be0a52d 100644
1817 #[test]
1918 fn read_eof() {
2019 each_ip(&mut |addr| {
21−@@ -1032,6 +1034,7 @@ mod tests {
20+@@ -1050,6 +1052,7 @@
2221 })
2322 }
2423
@@ -26,7 +25,7 @@ index 86ecb10edf..626be0a52d 100644
2625 #[test]
2726 fn write_close() {
2827 each_ip(&mut |addr| {
29−@@ -1058,6 +1061,7 @@ mod tests {
28+@@ -1076,6 +1079,7 @@
3029 })
3130 }
3231
@@ -34,7 +33,7 @@ index 86ecb10edf..626be0a52d 100644
3433 #[test]
3534 fn multiple_connect_serial() {
3635 each_ip(&mut |addr| {
37−@@ -1080,6 +1084,7 @@ mod tests {
36+@@ -1098,6 +1102,7 @@
3837 })
3938 }
4039
@@ -42,7 +41,7 @@ index 86ecb10edf..626be0a52d 100644
4241 #[test]
4342 fn multiple_connect_interleaved_greedy_schedule() {
4443 const MAX: usize = 10;
45−@@ -1116,6 +1121,7 @@ mod tests {
44+@@ -1134,6 +1139,7 @@
4645 }
4746
4847 #[test]
@@ -50,7 +49,7 @@ index 86ecb10edf..626be0a52d 100644
5049 fn multiple_connect_interleaved_lazy_schedule() {
5150 const MAX: usize = 10;
5251 each_ip(&mut |addr| {
53−@@ -1394,6 +1400,7 @@ mod tests {
52+@@ -1467,6 +1473,7 @@
5453 }
5554
5655 #[test]
@@ -58,7 +57,7 @@ index 86ecb10edf..626be0a52d 100644
5857 fn clone_while_reading() {
5958 each_ip(&mut |addr| {
6059 let accept = t!(TcpListener::bind(&addr));
61−@@ -1504,7 +1511,10 @@ mod tests {
60+@@ -1597,7 +1604,10 @@
6261
6362 // FIXME: re-enabled bitrig/openbsd tests once their socket timeout code
6463 // no longer has rounding errors.
@@ -67,30 +66,30 @@ index 86ecb10edf..626be0a52d 100644
6766+ target_os = "netbsd",
6867+ target_os = "openbsd",
6968+ target_os = "macos"), ignore)]
69+ #[cfg_attr(target_env = "sgx", ignore)] // FIXME: https://github.com/fortanix/rust-sgx/issues/31
7070 #[test]
7171 fn timeouts() {
72− let addr = next_test_ip4();
73−@@ -1591,6 +1601,7 @@ mod tests {
72+@@ -1643,6 +1653,7 @@
7473 drop(listener);
7574 }
7675
7776+ #[cfg_attr(target_os = "macos", ignore)]
7877 #[test]
79− fn nodelay() {
80− let addr = next_test_ip4();
81−@@ -1605,6 +1616,7 @@ mod tests {
82− assert_eq!(false, t!(stream.nodelay()));
78+ #[cfg_attr(target_env = "sgx", ignore)] // FIXME: https://github.com/fortanix/rust-sgx/issues/31
79+ fn test_read_with_timeout() {
80+@@ -1687,6 +1698,7 @@
81+ drop(listener);
8382 }
8483
8584+ #[cfg_attr(target_os = "macos", ignore)]
8685 #[test]
87− fn ttl() {
88− let ttl = 100;
89−@@ -1642,6 +1654,7 @@ mod tests {
90− }
86+ #[cfg_attr(target_env = "sgx", ignore)]
87+ fn nodelay() {
88+@@ -1719,6 +1731,7 @@
89+ assert_eq!(ttl, t!(stream.ttl()));
9190 }
9291
9392+ #[cfg_attr(target_os = "macos", ignore)]
9493 #[test]
95− fn peek() {
96− each_ip(&mut |addr| {
94+ #[cfg_attr(target_env = "sgx", ignore)]
95+ fn set_nonblocking() {
pkgs/development/compilers/rust/rustc.nix+2−2
@@ -17,11 +17,11 @@ let
1717 llvmShared = llvm_7.override { enableSharedLibraries = true; };
1818in stdenv.mkDerivation rec {
1919 pname = "rustc";
20− version = "1.34.2";
20+ version = "1.35.0";
2121
2222 src = fetchurl {
2323 url = "https://static.rust-lang.org/dist/rustc-${version}-src.tar.gz";
24− sha256 = "0mig0prkmlnpbba1cmi17vlsl88ikv5pi26zjy2kcr64l62lm6n6";
24+ sha256 = "0bbizy6b7002v1rdhrxrf5gijclbyizdhkglhp81ib3bf5x66kas";
2525 };
2626
2727 __darwinAllowLocalNetworking = true;