-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 10 pull requests #73369
Rollup of 10 pull requests #73369
Commits on Jun 7, 2020
-
Rename "cyclone" to "apple-a7" per changes in upstream LLVM
See: https://reviews.llvm.org/D70779 https://reviews.llvm.org/D70779#C1703593NL568 LLVM 10 merged into master at: rust-lang#67759
Configuration menu - View commit details
-
Copy full SHA for 6f6620b - Browse repository at this point
Copy the full SHA 6f6620bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 95c4899 - Browse repository at this point
Copy the full SHA 95c4899View commit details -
Improved the example to work with mutable data, providing a reason fo…
…r the mutex holding it
Configuration menu - View commit details
-
Copy full SHA for 9c8f881 - Browse repository at this point
Copy the full SHA 9c8f881View commit details
Commits on Jun 8, 2020
-
Simply use drop instead of std::mem::drop
Co-authored-by: LeSeulArtichaut <leseulartichaut@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fdef1a5 - Browse repository at this point
Copy the full SHA fdef1a5View commit details -
Add methods to go from a nul-terminated Vec<u8> to a CString, checked…
… and unchecked. Doc tests have been written and the documentation on the error type updated too.
Configuration menu - View commit details
-
Copy full SHA for 496818c - Browse repository at this point
Copy the full SHA 496818cView commit details
Commits on Jun 9, 2020
-
Configuration menu - View commit details
-
Copy full SHA for b03164e - Browse repository at this point
Copy the full SHA b03164eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1312d30 - Browse repository at this point
Copy the full SHA 1312d30View commit details
Commits on Jun 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 88ea7e5 - Browse repository at this point
Copy the full SHA 88ea7e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c29b3fa - Browse repository at this point
Copy the full SHA c29b3faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cde07e - Browse repository at this point
Copy the full SHA 7cde07eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 03552ec - Browse repository at this point
Copy the full SHA 03552ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f3bb39 - Browse repository at this point
Copy the full SHA 7f3bb39View commit details
Commits on Jun 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 6b95526 - Browse repository at this point
Copy the full SHA 6b95526View commit details
Commits on Jun 12, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 871513d - Browse repository at this point
Copy the full SHA 871513dView commit details -
make miri InterpCx TyCtxtAt a TyCtxt, and separately remember the roo…
…t span of the evaluation
Configuration menu - View commit details
-
Copy full SHA for dc6ffae - Browse repository at this point
Copy the full SHA dc6ffaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ac6fd0 - Browse repository at this point
Copy the full SHA 0ac6fd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32b01c7 - Browse repository at this point
Copy the full SHA 32b01c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0aef6d - Browse repository at this point
Copy the full SHA c0aef6dView commit details
Commits on Jun 13, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 8b20928 - Browse repository at this point
Copy the full SHA 8b20928View commit details -
Revert heterogeneous SocketAddr PartialEq impls
These lead to inference regressions (mostly in tests) in code that looks like: let socket = std::net::SocketAddrV4::new(std::net::Ipv4Addr::new(127, 0, 0, 1), 8080); assert_eq!(socket, "127.0.0.1:8080".parse().unwrap()); That compiles as of stable 1.44.0 but fails in beta with: error[E0284]: type annotations needed --> src/main.rs:3:41 | 3 | assert_eq!(socket, "127.0.0.1:8080".parse().unwrap()); | ^^^^^ cannot infer type for type parameter `F` declared on the associated function `parse` | = note: cannot satisfy `<_ as std::str::FromStr>::Err == _` help: consider specifying the type argument in the method call | 3 | assert_eq!(socket, "127.0.0.1:8080".parse::<F>().unwrap()); |
Configuration menu - View commit details
-
Copy full SHA for c45231c - Browse repository at this point
Copy the full SHA c45231cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6049650 - Browse repository at this point
Copy the full SHA 6049650View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6512fd - Browse repository at this point
Copy the full SHA c6512fdView commit details -
Apply suggestions from code review
Co-authored-by: David Tolnay <dtolnay@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f747073 - Browse repository at this point
Copy the full SHA f747073View commit details -
Clarify the scope-related explanation
Based on the review made by dtolnay.
Configuration menu - View commit details
-
Copy full SHA for 34b3ff0 - Browse repository at this point
Copy the full SHA 34b3ff0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c010e71 - Browse repository at this point
Copy the full SHA c010e71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 204c236 - Browse repository at this point
Copy the full SHA 204c236View commit details -
add TcpListener support for HermitCore
Add basic support of TcpListerner for HermitCore. In addition, revise TcpStream to support peer_addr.
Configuration menu - View commit details
-
Copy full SHA for 71d41d9 - Browse repository at this point
Copy the full SHA 71d41d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c99116a - Browse repository at this point
Copy the full SHA c99116aView commit details -
Configuration menu - View commit details
-
Copy full SHA for fd86a84 - Browse repository at this point
Copy the full SHA fd86a84View commit details
Commits on Jun 14, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2210abe - Browse repository at this point
Copy the full SHA 2210abeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f4eb27 - Browse repository at this point
Copy the full SHA 5f4eb27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 685f066 - Browse repository at this point
Copy the full SHA 685f066View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47cc5cc - Browse repository at this point
Copy the full SHA 47cc5ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for d221ffc - Browse repository at this point
Copy the full SHA d221ffcView commit details
Commits on Jun 15, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 9d596b5 - Browse repository at this point
Copy the full SHA 9d596b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 810ba39 - Browse repository at this point
Copy the full SHA 810ba39View commit details -
Revert "changes to pass the format check"
This reverts commit 9d596b5.
Configuration menu - View commit details
-
Copy full SHA for aa53a03 - Browse repository at this point
Copy the full SHA aa53a03View commit details -
Revert "simplify conversion to IpAddr::V6"
This reverts commit d221ffc.
Configuration menu - View commit details
-
Copy full SHA for 9c9f21f - Browse repository at this point
Copy the full SHA 9c9f21fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c983a7 - Browse repository at this point
Copy the full SHA 6c983a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8e3746 - Browse repository at this point
Copy the full SHA a8e3746View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76f1581 - Browse repository at this point
Copy the full SHA 76f1581View commit details -
Rollup merge of rust-lang#72707 - matthewjasper:rustc_min_spec, r=oli…
…-obk Use min_specialization in the remaining rustc crates This adds a lot of `transmute` calls to replace the unsound uses of specialization. It's ugly, but at least it's honest about what's going on. cc rust-lang#71420, @RalfJung
Configuration menu - View commit details
-
Copy full SHA for eef9356 - Browse repository at this point
Copy the full SHA eef9356View commit details -
Rollup merge of rust-lang#72740 - estebank:recursive-indirection, r=m…
…atthewjasper On recursive ADT, provide indirection structured suggestion
Configuration menu - View commit details
-
Copy full SHA for d97e8ca - Browse repository at this point
Copy the full SHA d97e8caView commit details -
Rollup merge of rust-lang#72879 - RalfJung:miri-tctx-at, r=oli-obk
Miri: avoid tracking current location three times Miri tracks the current instruction to execute in the call stack, but it also additionally has two `TyCtxtAt` that carry a `Span` that also tracks the current instruction. That is quite silly, so this PR uses `TyCtxt` instead, and then uses a method for computing the current span when a `TyCtxtAt` is needed. Having less redundant (semi-)global state seems like a good improvement to me. :D To keep the ConstProp errors the same, I had to add the option to `error_to_const_error` to overwrite the span. Also for some reason this changes cycle errors a bit -- not sure if we are now better or worse as giving those queries the right span. (It is unfortunately quite easy to accidentally use `DUMMY_SP` by calling the query on a `TyCtxt` instead of a `TyCtxtAt`.) r? @oli-obk @eddyb
Configuration menu - View commit details
-
Copy full SHA for f9c8a67 - Browse repository at this point
Copy the full SHA f9c8a67View commit details -
Rollup merge of rust-lang#72938 - lzutao:stabilize_option_zip, r=dtolnay
Stabilize Option::zip This PR stabilizes the following API: ```rust impl<T> Option<T> { pub fn zip<U>(self, other: Option<U>) -> Option<(T, U)>; } ``` This API has real world usage as seen in <https://grep.app/search?q=-%3E%20Option%3C%5C%28T%2C%5Cs%3FU%5C%29%3E®exp=true&filter[lang][0]=Rust>. The `zip_with` method is left unstably as this API is kinda niche and it hasn't received much usage in Rust repositories on GitHub. cc rust-lang#70086
Configuration menu - View commit details
-
Copy full SHA for 89eb74d - Browse repository at this point
Copy the full SHA 89eb74dView commit details -
Rollup merge of rust-lang#73086 - trevyn:apple-a7, r=nikic
Rename "cyclone" to "apple-a7" per changes in upstream LLVM It looks like they intended to keep "cyclone" as a legacy option, but removed it from the list of subtarget features. This created a flood of warnings when targeting aarch64-apple-ios, and probably also created incorrectly optimized artifacts. See: https://reviews.llvm.org/D70779 https://reviews.llvm.org/D70779#C1703593NL568 LLVM 10 merged into master at: rust-lang#67759
Configuration menu - View commit details
-
Copy full SHA for 3440957 - Browse repository at this point
Copy the full SHA 3440957View commit details -
Rollup merge of rust-lang#73104 - poliorcetics:explicit-mutex-drop-ex…
…ample, r=dtolnay Example about explicit mutex dropping Fixes rust-lang#67457. Following the remarks made in rust-lang#73074, I added an example on the main `Mutex` type, with a situation where there is mutable data and a computation result. In my testing it is effectively needed to explicitly drop the lock, else it deadlocks. r? @dtolnay because you were the one to review the previous PR.
Configuration menu - View commit details
-
Copy full SHA for 7c8b941 - Browse repository at this point
Copy the full SHA 7c8b941View commit details -
Rollup merge of rust-lang#73139 - poliorcetics:cstring-from-vec-with-…
…nul, r=dtolnay Add methods to go from a nul-terminated Vec<u8> to a CString Fixes rust-lang#73100. Doc tests have been written and the documentation on the error type updated too. I used `#[stable(feature = "cstring_from_vec_with_nul", since = "1.46.0")]` but I don't know if the version is correct.
Configuration menu - View commit details
-
Copy full SHA for ec6fe42 - Browse repository at this point
Copy the full SHA ec6fe42View commit details -
Rollup merge of rust-lang#73296 - ehuss:remove-msvc-aux, r=Mark-Simul…
…acrum Remove vestigial CI job msvc-aux. This CI job isn't really doing anything, so it seems prudent to remove it. For some history: * This was introduced in rust-lang#48809 when the msvc job was split in two to keep it under 2 hours (oh the good old days). At the time, this check-aux job did a bunch of things: * tidy * src/test/pretty * src/test/run-pass/pretty * src/test/run-fail/pretty * src/test/run-pass-valgrind/pretty * src/test/run-pass-fulldeps/pretty * src/test/run-fail-fulldeps/pretty * Tidy was removed in rust-lang#60777. * run-pass and run-pass-fulldeps moved to UI in rust-lang#63029 * src/test/pretty removed in rust-lang#58140 * src/test/run-fail moved to UI in rust-lang#71185 * run-fail-fulldeps removed in rust-lang#51285 Over time through attrition, the job was left with one lonely thing: `src/test/run-pass-valgrind/pretty`. And of course, this wasn't actually running the "pretty" tests. The normal `run-pass-valgrind` tests ran, and then when it tried to run in "pretty" mode, all the tests were ignored because compiletest thought nothing had changed (apparently compiletest isn't fingerprinting the mode? Needs more investigation…). `run-pass-valgrind` is already being run as part of `x86_64-msvc-1`, so there's no need to run it here. I've taken the liberty of removing `src/test/run-pass-valgrind/pretty` as a distinct test. I'm guessing from the other PR's that the pretty tests should now live in `src/test/pretty`, and that the team has moved away from doing pretty tests on other parts of the `src/test` tree.
Configuration menu - View commit details
-
Copy full SHA for fb75d4a - Browse repository at this point
Copy the full SHA fb75d4aView commit details -
Rollup merge of rust-lang#73304 - dtolnay:socketeq, r=Mark-Simulacrum
Revert heterogeneous SocketAddr PartialEq impls Originally added in rust-lang#72239. These lead to inference regressions (mostly in tests) in code that looks like: ```rust let socket = SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 8080); assert_eq!(socket, "127.0.0.1:8080".parse().unwrap()); ``` That compiles as of stable 1.44.0 but fails in beta with: ```console error[E0284]: type annotations needed --> src/main.rs:3:41 | 3 | assert_eq!(socket, "127.0.0.1:8080".parse().unwrap()); | ^^^^^ cannot infer type for type parameter `F` declared on the associated function `parse` | = note: cannot satisfy `<_ as std::str::FromStr>::Err == _` help: consider specifying the type argument in the method call | 3 | assert_eq!(socket, "127.0.0.1:8080".parse::<F>().unwrap()); | ``` Closes rust-lang#73242.
Configuration menu - View commit details
-
Copy full SHA for 202499f - Browse repository at this point
Copy the full SHA 202499fView commit details -
Rollup merge of rust-lang#73331 - hermitcore:listen, r=kennytm
extend network support for HermitCore - add basic support of TcpListerner for HermitCore - revise TcpStream to support peer_addr
Configuration menu - View commit details
-
Copy full SHA for 54bd077 - Browse repository at this point
Copy the full SHA 54bd077View commit details