-
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 13 pull requests #77082
Rollup of 13 pull requests #77082
Commits on Sep 19, 2020
-
Configuration menu - View commit details
-
Copy full SHA for d4039c5 - Browse repository at this point
Copy the full SHA d4039c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30cbc97 - Browse repository at this point
Copy the full SHA 30cbc97View commit details
Commits on Sep 21, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 16047d4 - Browse repository at this point
Copy the full SHA 16047d4View commit details -
Record
tcx.def_span
instead ofitem.span
in crate metadataThis was missed in PR rust-lang#75465. As a result, a few places have been using the full body span of functions, instead of just the header span.
Configuration menu - View commit details
-
Copy full SHA for e734733 - Browse repository at this point
Copy the full SHA e734733View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a02ebd - Browse repository at this point
Copy the full SHA 7a02ebdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a493ce - Browse repository at this point
Copy the full SHA 9a493ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 37463d4 - Browse repository at this point
Copy the full SHA 37463d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d8a9f1 - Browse repository at this point
Copy the full SHA 4d8a9f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e1c9c5 - Browse repository at this point
Copy the full SHA 1e1c9c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80d41c9 - Browse repository at this point
Copy the full SHA 80d41c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2a2429 - Browse repository at this point
Copy the full SHA d2a2429View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc2cbb3 - Browse repository at this point
Copy the full SHA dc2cbb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79e61a0 - Browse repository at this point
Copy the full SHA 79e61a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f893e4 - Browse repository at this point
Copy the full SHA 2f893e4View commit details
Commits on Sep 22, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2a40b63 - Browse repository at this point
Copy the full SHA 2a40b63View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a6bc77 - Browse repository at this point
Copy the full SHA 4a6bc77View commit details -
Configuration menu - View commit details
-
Copy full SHA for 731113b - Browse repository at this point
Copy the full SHA 731113bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0082d20 - Browse repository at this point
Copy the full SHA 0082d20View commit details -
Add #[track_caller] to more panicking Cell functions
Continuation of rust-lang#74526 Adds the #[track_caller] attribute to almost all panicking Cell functions. The ones that borrow two Cells in their function body are spared, because the panic location helps pinpoint which of the two borrows failed. You'd need to have full debuginfo and backtraces enabled together with column info in order to be able to discern the cases. Column info is only available on non-Windows platforms.
Configuration menu - View commit details
-
Copy full SHA for 05c3a2b - Browse repository at this point
Copy the full SHA 05c3a2bView commit details -
Update library/std/src/net/addr.rs
Co-authored-by: Ivan Tham <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5ab714f - Browse repository at this point
Copy the full SHA 5ab714fView commit details -
Update library/std/src/net/addr.rs
Co-authored-by: Ivan Tham <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4622ceb - Browse repository at this point
Copy the full SHA 4622cebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 37b72bc - Browse repository at this point
Copy the full SHA 37b72bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f5c3e9 - Browse repository at this point
Copy the full SHA 9f5c3e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cc16db - Browse repository at this point
Copy the full SHA 4cc16dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3dd28c7 - Browse repository at this point
Copy the full SHA 3dd28c7View commit details -
Update library functions with stability attributes
This may not be strictly minimal, but all unstable functions also need a `rustc_const_unstable` attribute.
Configuration menu - View commit details
-
Copy full SHA for 110e59e - Browse repository at this point
Copy the full SHA 110e59eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a173c5c - Browse repository at this point
Copy the full SHA a173c5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fb9587 - Browse repository at this point
Copy the full SHA 7fb9587View commit details -
Allow errors to abort const checking when emitted
This is a hack for parity with `qualify_min_const_fn`, which only emitted a single error.
Configuration menu - View commit details
-
Copy full SHA for bfc10a8 - Browse repository at this point
Copy the full SHA bfc10a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ee5429 - Browse repository at this point
Copy the full SHA 5ee5429View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3569bb6 - Browse repository at this point
Copy the full SHA 3569bb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef6d427 - Browse repository at this point
Copy the full SHA ef6d427View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9be3d10 - Browse repository at this point
Copy the full SHA 9be3d10View commit details -
Configuration menu - View commit details
-
Copy full SHA for d60e204 - Browse repository at this point
Copy the full SHA d60e204View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08e3822 - Browse repository at this point
Copy the full SHA 08e3822View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6044836 - Browse repository at this point
Copy the full SHA 6044836View commit details -
Configuration menu - View commit details
-
Copy full SHA for 186d148 - Browse repository at this point
Copy the full SHA 186d148View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b6a482 - Browse repository at this point
Copy the full SHA 4b6a482View commit details -
Configuration menu - View commit details
-
Copy full SHA for 928a29f - Browse repository at this point
Copy the full SHA 928a29fView commit details -
Don't use an if guard to check equality with a constant
Match on it directly instead
Configuration menu - View commit details
-
Copy full SHA for c078905 - Browse repository at this point
Copy the full SHA c078905View commit details -
Configuration menu - View commit details
-
Copy full SHA for d76b807 - Browse repository at this point
Copy the full SHA d76b807View commit details -
Rollup merge of rust-lang#75671 - nathanwhit:cstring-temp-lint, r=oli…
…-obk Uplift `temporary-cstring-as-ptr` lint from `clippy` into rustc The general consensus seems to be that this lint covers a common enough mistake to warrant inclusion in rustc. The diagnostic message might need some tweaking, as I'm not sure the use of second-person perspective matches the rest of rustc, but I'd like to hear others' thoughts on that. (cc rust-lang#53224). r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for 1871d90 - Browse repository at this point
Copy the full SHA 1871d90View commit details -
Rollup merge of rust-lang#76850 - ecstatic-morse:const-checking-refac…
…tor, r=oli-obk Remove `qualify_min_const_fn` ~~Blocked on rust-lang#76807 (the first six commits).~~ With this PR, all checks in `qualify_min_const_fn` are replicated in `check_consts`, and the former is no longer invoked. My goal was to have as few changes to test output as possible, since making sweeping changes to the code *while* doing big batches of diagnostics updates turned out to be a headache. To this end, there's a few `HACK`s in `check_consts` to achieve parity with `qualify_min_const_fn`. The new system that replaces `is_min_const_fn` is referred to as "const-stability" My end goal for the const-stability rules is this: * Const-stability is only applicable to functions defined in `staged_api` crates. * All functions not marked `rustc_const_unstable` are considered "const-stable". - NB. This is currently not implemented. `#[unstable]` functions are also const-unstable. This causes problems when searching for feature gates. - All "const-unstable" functions have an associated feature gate * const-stable functions can only call other const-stable functions - `allow_internal_unstable` can be used to circumvent this. * All const-stable functions are subject to some additional checks (the ones that were unique to `qualify_min_const_fn`) The plan is to remove each `HACK` individually in subsequent PRs. That way, changes to error message output can be reviewed in isolation.
Configuration menu - View commit details
-
Copy full SHA for 00569c3 - Browse repository at this point
Copy the full SHA 00569c3View commit details -
Rollup merge of rust-lang#76898 - Aaron1011:fix/item-def-span, r=oli-obk
Record `tcx.def_span` instead of `item.span` in crate metadata This was missed in PR rust-lang#75465. As a result, a few places have been using the full body span of functions, instead of just the header span.
Configuration menu - View commit details
-
Copy full SHA for 176af83 - Browse repository at this point
Copy the full SHA 176af83View commit details -
Rollup merge of rust-lang#76939 - lcnr:const-evaluatable-cont, r=oli-obk
emit errors during AbstractConst building There changes are currently still untested, so I don't expect this to pass CI 😆 It seems to me like this is the direction we want to go in, though we didn't have too much of a discussion about this. r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for dc47b2c - Browse repository at this point
Copy the full SHA dc47b2cView commit details -
Rollup merge of rust-lang#76994 - yuk1ty:fix-small-typo, r=estebank
fix small typo in docs and comments Fixed `the the` to `the`, as far as I found.
Configuration menu - View commit details
-
Copy full SHA for f951295 - Browse repository at this point
Copy the full SHA f951295View commit details -
Rollup merge of rust-lang#77042 - imbolc:patch-2, r=kennytm
Improve documentation for ToSocketAddrs I little clarification
Configuration menu - View commit details
-
Copy full SHA for cff8489 - Browse repository at this point
Copy the full SHA cff8489View commit details -
Rollup merge of rust-lang#77044 - pickfire:patch-4, r=jyn514
Liballoc bench vec use mem take not replace
Configuration menu - View commit details
-
Copy full SHA for a41b5cc - Browse repository at this point
Copy the full SHA a41b5ccView commit details -
Rollup merge of rust-lang#77047 - RalfJung:miri-dealloc, r=oli-obk
Miri: more informative deallocation error messages Make sure we show the affected AllocId. r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for 89e73d5 - Browse repository at this point
Copy the full SHA 89e73d5View commit details -
Rollup merge of rust-lang#77050 - follower:patch-1, r=oli-obk
Typo fix: "satsify" -> "satisfy"
Configuration menu - View commit details
-
Copy full SHA for 51ba922 - Browse repository at this point
Copy the full SHA 51ba922View commit details -
Rollup merge of rust-lang#77055 - est31:more_track_caller, r=Mark-Sim…
…ulacrum Add #[track_caller] to more panicking Cell functions Continuation of rust-lang#74526 Adds the #[track_caller] attribute to almost all panicking Cell functions. The ones that borrow two Cells in their function body are spared, because the panic location helps pinpoint which of the two borrows failed. You'd need to have full debuginfo and backtraces enabled together with column info in order to be able to discern the cases. Column info in debuginfo is only available on non-Windows platforms.
Configuration menu - View commit details
-
Copy full SHA for 1d603db - Browse repository at this point
Copy the full SHA 1d603dbView commit details -
Rollup merge of rust-lang#77066 - jonas-schievink:dest-prop-borrow, r…
…=oli-obk Fix dest prop miscompilation around references Closes rust-lang#77002
Configuration menu - View commit details
-
Copy full SHA for 0b141e5 - Browse repository at this point
Copy the full SHA 0b141e5View commit details -
Rollup merge of rust-lang#77078 - LingMan:patch-2, r=jonas-schievink
Don't use an if guard to check equality with a constant Match on it directly instead
Configuration menu - View commit details
-
Copy full SHA for 3748c26 - Browse repository at this point
Copy the full SHA 3748c26View commit details -
Rollup merge of rust-lang#77081 - LingMan:patch-1, r=jonas-schievink
Merge two almost identical match arms
Configuration menu - View commit details
-
Copy full SHA for f7c06ea - Browse repository at this point
Copy the full SHA f7c06eaView commit details