- 05 5月, 2015 6 次提交
-
-
由 bors 提交于
-
由 bors 提交于
This was one last spot where directories were being leaked through with arguments of the form `\\?\` which neither `ld.exe` nor `gcc.exe` does understands so the prefix needed to be stripped. Closes #25072
-
由 Alex Crichton 提交于
This was one last spot where directories were being leaked through with arguments of the form `\\?\` which neither `ld.exe` nor `gcc.exe` does understands so the prefix needed to be stripped. Closes #25072
-
由 bors 提交于
Add several regression tests and remove some unnecessary FIXMEs.
-
由 Johannes Oertel 提交于
-
由 bors 提交于
I'm uncertain whether the 3 implementations in `net2` should unwrap the socket address values. Without unwrapping it looks like this: ``` UdpSocket { addr: Ok(V4(127.0.0.1:34354)), inner: 3 } TcpListener { addr: Ok(V4(127.0.0.1:9123)), inner: 4 } TcpStream { addr: Ok(V4(127.0.0.1:9123)), peer: Ok(V4(127.0.0.1:58360)), inner: 5 } ``` One issue is that you can create, e.g. `UdpSocket`s with bad addresses, which means you can't just unwrap in the implementation: ``` #![feature(from_raw_os)] use std::net::UdpSocket; use std::os::unix::io::FromRawFd; let sock: UdpSocket = unsafe { FromRawFd::from_raw_fd(-1) }; println!("{:?}", sock); // prints "UdpSocket { addr: Err(Error { repr: Os(9) }), inner: -1 }" ``` Fixes #23134.
-
- 04 5月, 2015 16 次提交
-
-
由 bors 提交于
-
由 bors 提交于
- I found n error in the book, before contributing the patch to fix it, I had to find where they were hosted - It took me quite look to find where within the rust-lang *organisation* it was! ... and this should make it easier for the next person in the same position
-
由 bors 提交于
Without the inline annotation this: str::from_utf8_unchecked( slice::from_raw_parts( ptr, len ) ) doesn't get inlined which can be pretty brutal performance-wise when used in an inner loop of a low level string manipulation method.
-
由 bors 提交于
Override methods `count`, `last`, and `nth` in vec::IntoIter. #24214
-
由 bors 提交于
-
由 Abhishek Chanda 提交于
-
由 Nick Hamann 提交于
-
由 bors 提交于
Stack overflow detection does not currently work with MUSL, so this test needs to be disabled.
-
由 bors 提交于
-
由 Nick Hamann 提交于
-
由 Nick Hamann 提交于
This now omits address fields in Debug implementations when a proper address value cannot be unwrapped.
-
由 Jake Goulding 提交于
-
由 bors 提交于
Since the hashmap and its hasher are implemented in different crates, we currently can't benefit from inlining, which means that especially for small, fixed size keys, there is a huge overhead in hash calculations, because the compiler can't apply optimizations that only apply for these keys. Fixes the brainfuck benchmark in #24014.
-
由 bors 提交于
Fixes #23261. cc @blaenk
-
由 Nick Hamann 提交于
Fixes #23134.
-
由 bors 提交于
This + DST coercions (#24619) would allow code like `Rc<RefCell<Box<Trait>>>` to be simplified to `Rc<RefCell<Trait>>`.
-
- 03 5月, 2015 9 次提交
-
-
由 bors 提交于
E.g. if `foo.rs` looks like #![feature(test)] extern crate test; #[bench] fn bar(b: &mut test::Bencher) { b.iter(|| { 1 }) } #[test] fn baz() {} #[bench] fn qux(b: &mut test::Bencher) { b.iter(|| { panic!() }) } Then $ rustc --test foo.rs $ ./foo running 3 tests test baz ... ok test qux ... FAILED test bar ... ok failures: ---- qux stdout ---- thread 'qux' panicked at 'explicit panic', bench.rs:17 failures: qux test result: FAILED. 2 passed; 1 failed; 0 ignored; 0 measured $ ./foo --bench ba running 2 tests test baz ... ignored test bar ... bench: 97 ns/iter (+/- 74) test result: ok. 0 passed; 0 failed; 1 ignored; 1 measured In particular, the two benchmark are being run as tests in the default mode. This helps for the main distribution, since benchmarks are only run with `PLEASE_BENCH=1`, which is rarely set (and never set on the test bots), and helps for code-coverage tools: benchmarks are run and so don't count as dead code. Fixes #15842.
-
由 Björn Steinbrink 提交于
Since the hashmap and its hasher are implemented in different crates, we currently can't benefit from inlining, which means that especially for small, fixed size keys, there is a huge overhead in hash calculations, because the compiler can't apply optimizations that only apply for these keys. Fixes the brainfuck benchmark in #24014.
-
由 Jan Bujak 提交于
Without the inline annotation this: str::from_utf8_unchecked( slice::from_raw_parts( ptr, len ) ) doesn't get inlined which can be pretty brutal performance-wise when used in an inner loop of a low level string manipulation method.
-
由 Luqman Aden 提交于
-
由 bors 提交于
-
由 Tshepang Lekhonkhobe 提交于
-
由 Tshepang Lekhonkhobe 提交于
-
由 bors 提交于
Fixes #25008
-
由 bors 提交于
typeck: Make sure casts from other types to fat pointers are illegal Fixes ICEs where non-fat pointers and scalars are cast to fat pointers, Fixes #21397 Fixes #22955 Fixes #23237 Fixes #24100
-
- 02 5月, 2015 9 次提交
-
-
由 Steve Klabnik 提交于
-
由 Steve Klabnik 提交于
Fixes #25008
-
由 bors 提交于
- `0..2` iterates over `0,1` - `0..3` iterates over `0,1,2`, which is what we want instead
-
由 Johannes Oertel 提交于
Closes #19380.
-
由 Johannes Oertel 提交于
Closes #19163.
-
由 Johannes Oertel 提交于
Closes #19109.
-
由 Johannes Oertel 提交于
Closes #18943.
-
由 Johannes Oertel 提交于
Closes #17959.
-
由 Johannes Oertel 提交于
Closes #17170.
-