-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 12 pull requests #76951
Rollup of 12 pull requests #76951
Commits on Sep 4, 2020
-
shim: monomorphic
FnPtrShim
s during constructionThis commit adjusts MIR shim construction so that substitutions are applied to function pointer shims during construction, rather than during codegen (as determined by `substs_for_mir_body`) - as substitutions will no longer occur during codegen, function pointer shims can now be polymorphic without incurring double substitutions. Signed-off-by: David Wood <david@davidtw.co>
Configuration menu - View commit details
-
Copy full SHA for f8376b5 - Browse repository at this point
Copy the full SHA f8376b5View commit details
Commits on Sep 12, 2020
-
Make some methods of
Pin
unstable constMake the following methods unstable const under the `const_pin` feature: - `new` - `new_unchecked` - `into_inner` - `into_inner_unchecked` - `get_ref` - `into_ref` Also adds tests for these methods in a const context. Tracking issue: rust-lang#76654
Configuration menu - View commit details
-
Copy full SHA for 8f27e3c - Browse repository at this point
Copy the full SHA 8f27e3cView commit details
Commits on Sep 15, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 176956c - Browse repository at this point
Copy the full SHA 176956cView commit details
Commits on Sep 16, 2020
-
Configuration menu - View commit details
-
Copy full SHA for eede953 - Browse repository at this point
Copy the full SHA eede953View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94dae60 - Browse repository at this point
Copy the full SHA 94dae60View commit details
Commits on Sep 17, 2020
-
Configuration menu - View commit details
-
Copy full SHA for b7c8bea - Browse repository at this point
Copy the full SHA b7c8beaView commit details -
Don't compile regex at every function call.
Use `SyncOnceCell` to only compile it once. I believe this still adds some kind of locking mechanism?
Configuration menu - View commit details
-
Copy full SHA for f4a7149 - Browse repository at this point
Copy the full SHA f4a7149View commit details -
Remove intrinsics::arith_offset use from libarena
The use of arith_offset was added in 803e9ae before the stable wrapper of the intrinsic was available. https://doc.rust-lang.org/stable/std/intrinsics/fn.arith_offset.html
Configuration menu - View commit details
-
Copy full SHA for b479139 - Browse repository at this point
Copy the full SHA b479139View commit details -
Replace const_generics feature gate with min_const_generics
The latter is on the path to stabilization.
Configuration menu - View commit details
-
Copy full SHA for 4fe6ca3 - Browse repository at this point
Copy the full SHA 4fe6ca3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebdea01 - Browse repository at this point
Copy the full SHA ebdea01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1dd3df6 - Browse repository at this point
Copy the full SHA 1dd3df6View commit details
Commits on Sep 18, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 4382436 - Browse repository at this point
Copy the full SHA 4382436View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9c5068 - Browse repository at this point
Copy the full SHA c9c5068View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ec9e96 - Browse repository at this point
Copy the full SHA 5ec9e96View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2e000a - Browse repository at this point
Copy the full SHA e2e000aView commit details -
Make some methods of
Pin<&mut T>
unstable constMake the following methods unstable const under the `const_pin` feature: - `into_ref` - `get_mut` - `get_unchecked_mut`
Configuration menu - View commit details
-
Copy full SHA for e3c6e46 - Browse repository at this point
Copy the full SHA e3c6e46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78ff69b - Browse repository at this point
Copy the full SHA 78ff69bView commit details -
simplify_try: print dest_prop diff and bless
The new diff is to convince me that this is correct and nothing funky is going on.
Configuration menu - View commit details
-
Copy full SHA for 43ad8e4 - Browse repository at this point
Copy the full SHA 43ad8e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1649895 - Browse repository at this point
Copy the full SHA 1649895View commit details -
Make nrvo-simple set mir-opt-level=1
The additional copies are due to the lack of copy propagation
Configuration menu - View commit details
-
Copy full SHA for 8a7b1c3 - Browse repository at this point
Copy the full SHA 8a7b1c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a3e2b7 - Browse repository at this point
Copy the full SHA 8a3e2b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 812d4bb - Browse repository at this point
Copy the full SHA 812d4bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dbc7f7 - Browse repository at this point
Copy the full SHA 7dbc7f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 402f863 - Browse repository at this point
Copy the full SHA 402f863View commit details -
Configuration menu - View commit details
-
Copy full SHA for 665a98d - Browse repository at this point
Copy the full SHA 665a98dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ab26fb1 - Browse repository at this point
Copy the full SHA ab26fb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ddd6930 - Browse repository at this point
Copy the full SHA ddd6930View commit details -
Record intra-statement/terminator conflicts
Some MIR statements and terminators have an (undocumented...) invariant that some of their input and outputs must not overlap. This records conflicts between locals used in these positions.
Configuration menu - View commit details
-
Copy full SHA for 88538ad - Browse repository at this point
Copy the full SHA 88538adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 934634e - Browse repository at this point
Copy the full SHA 934634eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 484db5b - Browse repository at this point
Copy the full SHA 484db5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5728834 - Browse repository at this point
Copy the full SHA 5728834View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7af964f - Browse repository at this point
Copy the full SHA 7af964fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cd5d720 - Browse repository at this point
Copy the full SHA cd5d720View commit details -
Configuration menu - View commit details
-
Copy full SHA for 682de94 - Browse repository at this point
Copy the full SHA 682de94View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffd9445 - Browse repository at this point
Copy the full SHA ffd9445View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f9271b - Browse repository at this point
Copy the full SHA 2f9271bView commit details
Commits on Sep 19, 2020
-
cleanup promotion const_kind checks
in particular allow a few more promotions for consistency when they were already allowed in other contexts
Configuration menu - View commit details
-
Copy full SHA for 4d1ef03 - Browse repository at this point
Copy the full SHA 4d1ef03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7febd5a - Browse repository at this point
Copy the full SHA 7febd5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b99c8e - Browse repository at this point
Copy the full SHA 7b99c8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9216eb8 - Browse repository at this point
Copy the full SHA 9216eb8View commit details
Commits on Sep 20, 2020
-
Rollup merge of rust-lang#72632 - jonas-schievink:dest-prop, r=oli-obk
Implement a generic Destination Propagation optimization on MIR This takes the work that was originally started by @eddyb in rust-lang#47954, and then explored by me in rust-lang#71003, and implements it in a general (ie. not limited to acyclic CFGs) and dataflow-driven way (so that no additional infrastructure in rustc is needed). The pass is configured to run at `mir-opt-level=2` and higher only. To enable it by default, some followup work on it is still needed: * Performance needs to be evaluated. I did some light optimization work and tested against `tuple-stress`, which caused trouble in my last attempt, but didn't go much in depth here. * We can also enable the pass only at `opt-level=2` and higher, if it is too slow to run in debug mode, but fine when optimizations run anyways. * Debuginfo needs to be fixed after locals are merged. I did not look into what is required for this. * Live ranges of locals (aka `StorageLive` and `StorageDead`) are currently deleted. We either need to decide that this is fine, or if not, merge the variable's live ranges (or remove these statements entirely – rust-lang#68622). Some benchmarks of the pass were done in rust-lang#72635.
Configuration menu - View commit details
-
Copy full SHA for 3801bba - Browse repository at this point
Copy the full SHA 3801bbaView commit details -
Rollup merge of rust-lang#75346 - davidtwco:issue-69925-polymorphic-i…
…nstancedef-fnptrshim, r=nikomatsakis shim: monomorphic `FnPtrShim`s during construction Fixes rust-lang#69925. This PR adjusts MIR shim construction so that substitutions are applied to function pointer shims during construction, rather than during codegen (as determined by `substs_for_mir_body`). r? @eddyb
Configuration menu - View commit details
-
Copy full SHA for a6a5859 - Browse repository at this point
Copy the full SHA a6a5859View commit details -
Rollup merge of rust-lang#76411 - RalfJung:promote-in-const-fn, r=ecs…
…tatic-morse Some promotion cleanup Based on top of both rust-lang#75502 and rust-lang#75585, this does some cleanup of the promotion code. The last 2 commits are new. * Remove the remaining cases where `const fn` is treated different from `fn`. This means no longer promoting ptr-to-int casts, raw ptr operations, and union field accesses in `const fn` -- or anywhere, for that matter. These are all unstable in const-context so this should not break any stable code. Fixes rust-lang#75586. * ~~Promote references to statics even outside statics (i.e., in functions) for consistency.~~ * Promote `&mut []` everywhere, not just in non-`const` functions, for consistency. * Explain why we do not promote deref's of statics outside statics. ~~(This is the only remaining direct user of `const_kind`.)~~ This can only land once the other two PRs land; I am mostly putting this up already because I couldn't wait ;) and to get some feedback from @rust-lang/wg-const-eval .
Configuration menu - View commit details
-
Copy full SHA for 57fb055 - Browse repository at this point
Copy the full SHA 57fb055View commit details -
Rollup merge of rust-lang#76655 - CDirkx:const-pin, r=ecstatic-morse
Make some methods of `Pin` unstable const Make the following methods unstable const under the `const_pin` feature: - `new` - `new_unchecked` - `into_inner` - `into_inner_unchecked` - `get_ref` - `into_ref` - `get_mut` - `get_unchecked_mut` Of these, `into_inner` and `into_inner_unchecked` require the unstable `const_precise_live_drops`. Also adds tests for these methods in a const context. Tracking issue: rust-lang#76654 r? @ecstatic-morse
Configuration menu - View commit details
-
Copy full SHA for 42fbe59 - Browse repository at this point
Copy the full SHA 42fbe59View commit details -
Rollup merge of rust-lang#76722 - ssomers:btree_send_sync, r=Mark-Sim…
…ulacrum Test and fix Send and Sync traits of BTreeMap artefacts Fixes rust-lang#76686. I'm not quite sure what all this implies. E.g. comparing with the definitions for `NodeRef` in node.rs, maybe an extra bound `T: 'a` is useful for something. The test compiles on stable/beta (apart from `drain_filter`) so I bet `Sync` is equally desirable. r? @Mark-Simulacrum
Configuration menu - View commit details
-
Copy full SHA for 63bc0c4 - Browse repository at this point
Copy the full SHA 63bc0c4View commit details -
Rollup merge of rust-lang#76754 - varkor:diagnostic-cleanup-ii, r=ecs…
…tatic-morse Clean up diagnostics for arithmetic operation errors Plus a small tweak to a range pattern error message.
Configuration menu - View commit details
-
Copy full SHA for 3dd5849 - Browse repository at this point
Copy the full SHA 3dd5849View commit details -
Rollup merge of rust-lang#76783 - lzutao:rd_impl_kind, r=GuillaumeGomez
Only get ImplKind::Impl once With this, the code panics in one place instead of two.
Configuration menu - View commit details
-
Copy full SHA for 7ad0db6 - Browse repository at this point
Copy the full SHA 7ad0db6View commit details -
Rollup merge of rust-lang#76809 - matthiaskrgr:simplify_cond, r=varkor
simplfy condition in ItemLowerer::with_trait_impl_ref()
Configuration menu - View commit details
-
Copy full SHA for 7c7e824 - Browse repository at this point
Copy the full SHA 7c7e824View commit details -
Rollup merge of rust-lang#76815 - pickfire:patch-6, r=jonas-schievink
Fix wording in mir doc
Configuration menu - View commit details
-
Copy full SHA for 84f672f - Browse repository at this point
Copy the full SHA 84f672fView commit details -
Rollup merge of rust-lang#76818 - hbina:dont_compile_regex_all_the_ti…
…me, r=ecstatic-morse Don't compile regex at every function call. Use `SyncOnceCell` to only compile it once. I believe this still adds some kind of locking mechanism? Related issue: rust-lang#76817
Configuration menu - View commit details
-
Copy full SHA for c5f8123 - Browse repository at this point
Copy the full SHA c5f8123View commit details -
Rollup merge of rust-lang#76821 - est31:remove_redundant_nightly_feat…
…ures, r=oli-obk,Mark-Simulacrum Remove redundant nightly features Removes a bunch of redundant/outdated nightly features. The first commit removes a `core_intrinsics` use for which a stable wrapper has been provided since. The second commit replaces the `const_generics` feature with `min_const_generics` which might get stabilized this year. The third commit is the result of a trial/error run of removing every single feature and then adding it back if compile failed. A bunch of unused features are the result that the third commit removes.
Configuration menu - View commit details
-
Copy full SHA for 0412fd6 - Browse repository at this point
Copy the full SHA 0412fd6View commit details -
Rollup merge of rust-lang#76823 - RalfJung:black-box-warn, r=joshtrip…
…lett black_box: silence unused_mut warning when building with cfg(miri)
Configuration menu - View commit details
-
Copy full SHA for 79af229 - Browse repository at this point
Copy the full SHA 79af229View commit details