{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":724712,"defaultBranch":"master","name":"rust","ownerLogin":"rust-lang","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2010-06-16T20:39:03.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/5430905?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1716682659.0","currentOid":""},"activityList":{"items":[{"before":"2a2c29aafa50bf6fe53d66b32070eba59f860ac3","after":"ada5e2c7b5427a591e30baeeee2698a5eb6db0bd","ref":"refs/heads/master","pushedAt":"2024-05-31T18:18:10.000Z","pushType":"push","commitsCount":23,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125824 - matthiaskrgr:rollup-eam7i0p, r=matthiaskrgr\n\nRollup of 7 pull requests\n\nSuccessful merges:\n\n - #125652 (Revert propagation of drop-live information from Polonius)\n - #125730 (Apply `x clippy --fix` and `x fmt` on Rustc)\n - #125756 (coverage: Optionally instrument the RHS of lazy logical operators)\n - #125776 (Stop using `translate_args` in the new solver)\n - #125796 (Also InstSimplify `&raw*`)\n - #125807 (Also resolve the type of constants, even if we already turned it into an error constant)\n - #125816 (Don't build the `rust-demangler` binary for coverage tests)\n\nr? `@ghost`\n`@rustbot` modify labels: rollup","shortMessageHtmlLink":"Auto merge of #125824 - matthiaskrgr:rollup-eam7i0p, r=matthiaskrgr"}},{"before":"99cb42c29641aee2cce6521e07960d4de93205c8","after":"2a2c29aafa50bf6fe53d66b32070eba59f860ac3","ref":"refs/heads/master","pushedAt":"2024-05-31T14:25:31.000Z","pushType":"push","commitsCount":12,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125759 - nnethercote:format-some-tests, r=GuillaumeGomez\n\nFormat some tests\n\nThere are more directories under `tests/` still to do, but this is enough for one PR.\n\nr? `@GuillaumeGomez`","shortMessageHtmlLink":"Auto merge of #125759 - nnethercote:format-some-tests, r=GuillaumeGomez"}},{"before":"bf8fff783ff533c055d276378ada30563312def1","after":"99cb42c29641aee2cce6521e07960d4de93205c8","ref":"refs/heads/master","pushedAt":"2024-05-31T12:17:51.000Z","pushType":"push","commitsCount":8,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #124662 - zetanumbers:needs_async_drop, r=oli-obk\n\nImplement `needs_async_drop` in rustc and optimize async drop glue\n\nThis PR expands on #121801 and implements `Ty::needs_async_drop` which works almost exactly the same as `Ty::needs_drop`, which is needed for #123948.\n\nAlso made compiler's async drop code to look more like compiler's regular drop code, which enabled me to write an optimization where types which do not use `AsyncDrop` can simply forward async drop glue to `drop_in_place`. This made size of the async block from the [async_drop test](https://github.com/zetanumbers/rust/blob/67980dd6fb11917d23d01a19c2cf4cfc3978aac8/tests/ui/async-await/async-drop.rs) to decrease by 12%.","shortMessageHtmlLink":"Auto merge of #124662 - zetanumbers:needs_async_drop, r=oli-obk"}},{"before":"366da30d554719e7490950aeea5d3f3a5927e313","after":"bf8fff783ff533c055d276378ada30563312def1","ref":"refs/heads/master","pushedAt":"2024-05-31T10:04:01.000Z","pushType":"push","commitsCount":10,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125797 - matthiaskrgr:rollup-v2jmg7i, r=matthiaskrgr\n\nRollup of 4 pull requests\n\nSuccessful merges:\n\n - #125635 (Rename HIR `TypeBinding` to `AssocItemConstraint` and related cleanup)\n - #125774 (Avoid unwrap diag.code directly in note_and_explain_type_err)\n - #125786 (Fold item bounds before proving them in `check_type_bounds` in new solver)\n - #125790 (Don't recompute `tail` in `lower_stmts`)\n\nr? `@ghost`\n`@rustbot` modify labels: rollup","shortMessageHtmlLink":"Auto merge of #125797 - matthiaskrgr:rollup-v2jmg7i, r=matthiaskrgr"}},{"before":"434999efe6e9aa61afbd8b4ae86864d3ce91c533","after":"366da30d554719e7490950aeea5d3f3a5927e313","ref":"refs/heads/master","pushedAt":"2024-05-31T02:45:35.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125794 - cjgillot:revert-115105, r=compiler-errors\n\nRevert \"Auto merge of #115105 - cjgillot:dest-prop-default, r=oli-obk\"\n\nThis reverts commit cfb730450f847bb622243eaaab15e77e58d91767, reversing changes made to 91c0823ee63e793d990bb9fed898dc95b5d6db51.\n\nTo address https://github.com/rust-lang/rust/pull/115105#issuecomment-2141019310\nr? `@oli-obk`\n\n","shortMessageHtmlLink":"Auto merge of #125794 - cjgillot:revert-115105, r=compiler-errors"}},{"before":"6f3df08aadf71e8d4bf7e49f5dc10dfa6f254cb4","after":"434999efe6e9aa61afbd8b4ae86864d3ce91c533","ref":"refs/heads/master","pushedAt":"2024-05-31T00:01:15.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125710 - RalfJung:compiletest-components, r=workingjubilee\n\ncompiletest: clarify COMPILETEST_NEEDS_ALL_LLVM_COMPONENTS error\n\nCOMPILETEST_NEEDS_ALL_LLVM_COMPONENTS is a confusing name because elsewhere \"needs\" means \"ignore when requirement not met\", but here it means \"fail when requirement not met\".","shortMessageHtmlLink":"Auto merge of #125710 - RalfJung:compiletest-components, r=workingjub…"}},{"before":"7feb191f18918f93006d6a3e74938a9708564be4","after":"6f3df08aadf71e8d4bf7e49f5dc10dfa6f254cb4","ref":"refs/heads/master","pushedAt":"2024-05-30T21:06:34.000Z","pushType":"push","commitsCount":6,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125378 - lcnr:tracing-no-lines, r=oli-obk\n\nremove tracing tree indent lines\n\nThis allows vscode to collapse nested spans without having to manually remove the indent lines. This is incredibly useful when logging the new solver. I don't mind making them optional depending on some environment flag if you prefer using indent lines\n\nFor a gist of the new output, see https://gist.github.com/lcnr/bb4360ddbc5cd4631f2fbc569057e5eb#file-example-output-L181\n\nr? `@oli-obk`","shortMessageHtmlLink":"Auto merge of #125378 - lcnr:tracing-no-lines, r=oli-obk"}},{"before":"cfb730450f847bb622243eaaab15e77e58d91767","after":"7feb191f18918f93006d6a3e74938a9708564be4","ref":"refs/heads/master","pushedAt":"2024-05-30T18:56:42.000Z","pushType":"push","commitsCount":58,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125764 - flip1995:clippy-subtree-update, r=Manishearth\n\nClippy subtree update\n\nr? `@Manishearth`","shortMessageHtmlLink":"Auto merge of #125764 - flip1995:clippy-subtree-update, r=Manishearth"}},{"before":"91c0823ee63e793d990bb9fed898dc95b5d6db51","after":"cfb730450f847bb622243eaaab15e77e58d91767","ref":"refs/heads/master","pushedAt":"2024-05-30T16:45:25.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #115105 - cjgillot:dest-prop-default, r=oli-obk\n\nEnable DestinationPropagation by default.\n\n~~Based on https://github.com/rust-lang/rust/pull/115291.~~\n\nThis PR proposes to enable the destination propagation pass by default.\nThis pass is meant to reduce the amount of copies present in MIR.\n\nAt the same time, this PR removes the `RenameReturnPlace` pass, as it is currently unsound.\n`DestinationPropagation` is not limited to `_0`, but does not handle borrowed locals.","shortMessageHtmlLink":"Auto merge of #115105 - cjgillot:dest-prop-default, r=oli-obk"}},{"before":"f3ff2f16c8f59fe5db9ec3382e4d2cc913e376a3","after":"91c0823ee63e793d990bb9fed898dc95b5d6db51","ref":"refs/heads/master","pushedAt":"2024-05-30T14:26:41.000Z","pushType":"push","commitsCount":5,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #124636 - tbu-:pr_env_unsafe, r=petrochenkov\n\nMake `std::env::{set_var, remove_var}` unsafe in edition 2024\n\nAllow calling these functions without `unsafe` blocks in editions up until 2021, but don't trigger the `unused_unsafe` lint for `unsafe` blocks containing these functions.\n\nFixes #27970.\nFixes #90308.\nCC #124866.","shortMessageHtmlLink":"Auto merge of #124636 - tbu-:pr_env_unsafe, r=petrochenkov"}},{"before":"d43930dab36b81267d436fd16066419d3a66e054","after":"f3ff2f16c8f59fe5db9ec3382e4d2cc913e376a3","ref":"refs/heads/master","pushedAt":"2024-05-30T12:16:01.000Z","pushType":"push","commitsCount":15,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125761 - matthiaskrgr:rollup-7u082og, r=matthiaskrgr\n\nRollup of 7 pull requests\n\nSuccessful merges:\n\n - #125342 (Document platform-specifics for `Read` and `Write` of `File`)\n - #125711 (Make `body_owned_by` return the `Body` instead of just the `BodyId`)\n - #125739 (drop_in_place: weaken the claim of equivalence with drop(ptr.read()))\n - #125745 (Bump the stage0 compiler to beta.7 (2024-05-26))\n - #125746 (Fix copy-paste error in `Duration::from_weeks` panic message.)\n - #125753 (compiletest: Unify `cmd2procres` with `run_command_to_procres`)\n - #125754 (coverage: Rename MC/DC `conditions_num` to `num_conditions`)\n\nr? `@ghost`\n`@rustbot` modify labels: rollup","shortMessageHtmlLink":"Auto merge of #125761 - matthiaskrgr:rollup-7u082og, r=matthiaskrgr"}},{"before":"32a3ed229caaaa6476ee1b0e644dd53579454536","after":"d43930dab36b81267d436fd16066419d3a66e054","ref":"refs/heads/master","pushedAt":"2024-05-30T10:08:25.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125711 - oli-obk:const_block_ice2, r=Nadrieril\n\nMake `body_owned_by` return the `Body` instead of just the `BodyId`\n\nfixes #125677\n\nAlmost all `body_owned_by` callers immediately called `body`, too, so just return `Body` directly.\n\nThis makes the inline-const query feeding more robust, as all calls to `body_owned_by` will now yield a body for inline consts, too.\n\nI have not yet figured out a good way to make `tcx.hir().body()` return an inline-const body, but that can be done as a follow-up","shortMessageHtmlLink":"Auto merge of #125711 - oli-obk:const_block_ice2, r=Nadrieril"}},{"before":"caa187f3bc9604c78dfbc3ffabbe1372cb528639","after":"32a3ed229caaaa6476ee1b0e644dd53579454536","ref":"refs/heads/master","pushedAt":"2024-05-30T07:59:06.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125671 - BoxyUwU:remove_const_ty_eq, r=compiler-errors\n\nDo not equate `Const`'s ty in `super_combine_const`\n\nFixes #114456\n\nIn #125451 we started relating the `Const`'s tys outside of a probe so it was no longer simply an assertion to catch bugs.\n\nThis was done so that when we _do_ provide a wrongly typed const argument to an item if we wind up relating it with some other instantiation we'll have a `TypeError` we can bubble up and taint the resulting mir allowing const eval to skip evaluation.\n\nIn this PR I instead change `ConstArgHasType` to correctly handle checking the types of const inference variables. Previously if we had something like `impl Trait for [(); N]`, when using the impl we would instantiate it with infer vars and then check that `?x: u32` is of type `u32` and succeed. Then later we would infer `?x` to some `Const` of type `usize`.\n\nWe now stall on `?x` in `ConstArgHasType` until it has a concrete value that we can determine the type of. This allows us to fail using the erroneous implementation of `Trait` which allows us to taint the mir.\n\nLong term we intend to remove the `ty` field on `Const` so we would have no way of accessing the `ty` of a const inference variable anyway and would have to do this. I did not fully update `ConstArgHasType` to avoid using the `ty` field as it's not entirely possible right now- we would need to lookup `ConstArgHasType` candidates in the env.\n\n---\n\nAs for _why_ I think we should do this, relating the types of const's is not necessary for soundness of the type system. Originally this check started off as a plain `==` in `super_relate_consts` and gradually has been growing in complexity as we support more complicated types. It was never actually required to ensure that const arguments are correctly typed for their parameters however.\n\nThe way we currently check that a const argument has the correct type is a little convoluted and confusing (and will hopefully be less weird as time goes on). Every const argument has an anon const with its return type set to type of the const parameter it is an argument to. When type checking the anon const regular type checking rules require that the expression is the same type as the return type. This effectively ensure that no matter what every const argument _always_ has the correct type.\n\nAn extra bit of complexity is that during `hir_ty_lowering` we do not represent everything as a `ConstKind::Unevaluated` corresponding to the anon const. For generic parameters i.e. `[(); N]` we simply represent them as `ConstKind::Param` as we do not want `ConstKind::Unevaluated` with generic substs on stable under min const generics. The anon const still gets type checked resulting in errors about type mismatches.\n\nEventually we intend to not create anon consts for all const arguments (for example for `ConstKind::Param`) and instead check that the argument type is correct via `ConstArgHasType` obligations (these effectively also act as a check that the anon consts have the correctly set return type).\n\nWhat this all means is that the the only time we should ever have mismatched types when relating two `Const`s is if we have messed up our logic for ensuring that const arguments are of the correct type. Having this not be an assert is:\n- Confusing as it may incorrectly lead people to believe this is an important check that is actually required\n- Opens the possibility for bugs or behaviour reliant on this (unnecessary) check existing\n\n---\n\nThis PR makes two tests go from pass->ICE (`generic_const_exprs/ice-125520-layout-mismatch-mulwithoverflow.rs` and `tests/crashes/121858.rs`). This is caused by the fact that we evaluate anon consts even if their where clauses do not hold and is a pre-existing issue and only affects `generic_const_exprs`. I am comfortable exposing the brokenness of `generic_const_exprs` more with this PR\n\nThis PR makes a test go from ICE->pass (`const-generics/issues/issue-105821.rs`). I have no idea why this PR affects that but I believe that ICE is an unrelated issue to do with the fact that under `generic_const_exprs`/`adt_const_params` we do not handle lifetimes in const parameter types correctly. This PR is likely just masking this bug.\n\nNote: this PR doesn't re-introduce the assertion that the two consts' tys are equal. I'm not really sure how I feel about this but tbh it has caused more ICEs than its found lately so :woman_shrugging:\n\nr? `@oli-obk` `@compiler-errors`","shortMessageHtmlLink":"Auto merge of #125671 - BoxyUwU:remove_const_ty_eq, r=compiler-errors"}},{"before":"23ea77b8edc902f4a90cda62af66f8b300e5de54","after":"caa187f3bc9604c78dfbc3ffabbe1372cb528639","ref":"refs/heads/master","pushedAt":"2024-05-30T02:59:25.000Z","pushType":"push","commitsCount":25,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125744 - fmease:rollup-ky7d098, r=fmease\n\nRollup of 7 pull requests\n\nSuccessful merges:\n\n - #125653 (Migrate `run-make/const-prop-lint` to `rmake.rs`)\n - #125662 (Rewrite `fpic`, `simple-dylib` and `issue-37893` `run-make` tests in `rmake.rs` or ui test format)\n - #125699 (Streamline `x fmt` and improve its output)\n - #125701 ([ACP 362] genericize `ptr::from_raw_parts`)\n - #125723 (Migrate `run-make/crate-data-smoke` to `rmake.rs`)\n - #125733 (Add lang items for `AsyncFn*`, `Future`, `AsyncFnKindHelper`'s associated types)\n - #125734 (ast: Revert a breaking attribute visiting order change)\n\nr? `@ghost`\n`@rustbot` modify labels: rollup","shortMessageHtmlLink":"Auto merge of #125744 - fmease:rollup-ky7d098, r=fmease"}},{"before":"debd22da66cfa97c74040ebf68e420672ac8560e","after":"23ea77b8edc902f4a90cda62af66f8b300e5de54","ref":"refs/heads/master","pushedAt":"2024-05-30T00:48:39.000Z","pushType":"push","commitsCount":4,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125702 - workingjubilee:tell-tidy-about-csky, r=nikic\n\nGive tidy the good news about C-SKY\n\nIt seems this was overlooked in https://github.com/rust-lang/rust/pull/125472 because we don't test C-SKY much yet.\n\nFixes #125697\n\nr? `@erikdesjardins`","shortMessageHtmlLink":"Auto merge of #125702 - workingjubilee:tell-tidy-about-csky, r=nikic"}},{"before":"e9b7aa08f7cd890dcebd36c198193707d5cd3770","after":"debd22da66cfa97c74040ebf68e420672ac8560e","ref":"refs/heads/master","pushedAt":"2024-05-29T22:18:52.000Z","pushType":"push","commitsCount":22,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125732 - matthiaskrgr:rollup-bozbtk3, r=matthiaskrgr\n\nRollup of 7 pull requests\n\nSuccessful merges:\n\n - #124655 (Add `-Zfixed-x18`)\n - #125693 (Format all source files in `tests/coverage/`)\n - #125700 (coverage: Avoid overflow when the MC/DC condition limit is exceeded)\n - #125705 (Reintroduce name resolution check for trying to access locals from an inline const)\n - #125708 (tier 3 target policy: clarify the point about producing assembly)\n - #125715 (remove unneeded extern crate in rmake test)\n - #125719 (Extract coverage-specific code out of `compiletest::runtest`)\n\nr? `@ghost`\n`@rustbot` modify labels: rollup","shortMessageHtmlLink":"Auto merge of #125732 - matthiaskrgr:rollup-bozbtk3, r=matthiaskrgr"}},{"before":"a83f933a9da258cf037e3cab37cd486bfd861a7d","after":"e9b7aa08f7cd890dcebd36c198193707d5cd3770","ref":"refs/heads/master","pushedAt":"2024-05-29T20:10:03.000Z","pushType":"push","commitsCount":7,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125613 - ChrisDenton:windows-recipie, r=jieyouxu\n\nUse `rmake` for `windows-` run-make tests\n\nConvert some Makefile tests to recipes.\n\nI renamed \"issue-85441\" to \"windows-ws2_32\" as I think it's slightly more descriptive. EDIT: `llvm-readobj` seems to work for reading DLL imports so I've used that instead of `objdump`.\n\ncc #121876","shortMessageHtmlLink":"Auto merge of #125613 - ChrisDenton:windows-recipie, r=jieyouxu"}},{"before":"f2e1a3a80ae54734e1a3d306f31c2caebb05de9b","after":"a83f933a9da258cf037e3cab37cd486bfd861a7d","ref":"refs/heads/master","pushedAt":"2024-05-29T16:37:07.000Z","pushType":"push","commitsCount":5,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125531 - surechen:make_suggestion_for_note_like_drop_lint, r=Urgau\n\nMake lint: `lint_dropping_references` `lint_forgetting_copy_types` `lint_forgetting_references` give suggestion if possible.\n\nThis is a follow-up PR of #125433. When it's merged, I want change lint `dropping_copy_types` to use the same `Subdiagnostic` struct `UseLetUnderscoreIgnoreSuggestion` which is added in this PR.\n\nHi, Thank you(`@Urgau` ) again for your help in the previous PR. If your time permits, please also take a look at this one.\n\nr? compiler\n\n","shortMessageHtmlLink":"Auto merge of #125531 - surechen:make_suggestion_for_note_like_drop_l…"}},{"before":"4cf5723dbe471ef0a32857b968b91498551f5e38","after":"f2e1a3a80ae54734e1a3d306f31c2caebb05de9b","ref":"refs/heads/master","pushedAt":"2024-05-29T14:04:25.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125360 - RalfJung:packed-field-reorder, r=fmease\n\ndon't inhibit random field reordering on repr(packed(1))\n\n`inhibit_struct_field_reordering_opt` being false means we exclude this type from random field shuffling. However, `packed(1)` types can still be shuffled! The logic was added in https://github.com/rust-lang/rust/pull/48528 since it's pointless to reorder fields in packed(1) types (there's no padding that could be saved) -- but that shouldn't inhibit `-Zrandomize-layout` (which did not exist at the time).\n\nWe could add an optimization elsewhere to not bother sorting the fields for `repr(packed)` types, but I don't think that's worth the effort.\n\nThis *does* change the behavior in that we may now reorder fields of `packed(1)` structs (e.g. if there are niches, we'll try to move them to the start/end, according to `NicheBias`). We were always allowed to do that but so far we didn't. Quoting the [reference](https://doc.rust-lang.org/reference/type-layout.html):\n\n> On their own, align and packed do not provide guarantees about the order of fields in the layout of a struct or the layout of an enum variant, although they may be combined with representations (such as C) which do provide such guarantees.","shortMessageHtmlLink":"Auto merge of #125360 - RalfJung:packed-field-reorder, r=fmease"}},{"before":"5870f1ccbbb2661c92cdc356231386210a64d723","after":"4cf5723dbe471ef0a32857b968b91498551f5e38","ref":"refs/heads/master","pushedAt":"2024-05-29T11:56:05.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125695 - RalfJung:fn_arg_sanity_check, r=jieyouxu\n\nfn_arg_sanity_check: fix panic message\n\nThe `\\n` inside a raw string doesn't actually make a newline...","shortMessageHtmlLink":"Auto merge of #125695 - RalfJung:fn_arg_sanity_check, r=jieyouxu"}},{"before":"751691271d76b8435559200b84d1947c2bd735bd","after":"5870f1ccbbb2661c92cdc356231386210a64d723","ref":"refs/heads/master","pushedAt":"2024-05-29T08:23:58.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125433 - surechen:fix_125189, r=Urgau\n\nA small diagnostic improvement for dropping_copy_types\n\nFor a value `m` which implements `Copy` trait, `drop(m);` does nothing.\nWe now suggest user to ignore it by a abstract and general note: `let _ = ...`.\nI think we can give a clearer note here: `let _ = m;`\n\nfixes #125189\n\n","shortMessageHtmlLink":"Auto merge of #125433 - surechen:fix_125189, r=Urgau"}},{"before":"da159eb331b27df528185c616b394bb0e1d2a4bd","after":"751691271d76b8435559200b84d1947c2bd735bd","ref":"refs/heads/master","pushedAt":"2024-05-29T06:12:57.000Z","pushType":"push","commitsCount":26,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125691 - jieyouxu:rollup-0i3wrc4, r=jieyouxu\n\nRollup of 8 pull requests\n\nSuccessful merges:\n\n - #124251 (Add an intrinsic for `ptr::metadata`)\n - #124320 (Add `--print=check-cfg` to get the expected configs)\n - #125226 (Make more of the test suite run on Mac Catalyst)\n - #125381 (Silence some resolve errors when there have been glob import errors)\n - #125633 (miri: avoid making a full copy of all new allocations)\n - #125638 (Rewrite `lto-smoke`, `simple-rlib` and `mixing-deps` `run-make` tests in `rmake.rs` format)\n - #125639 (Support `./x doc run-make-support --open`)\n - #125664 (Tweak relations to no longer rely on `TypeTrace`)\n\nr? `@ghost`\n`@rustbot` modify labels: rollup","shortMessageHtmlLink":"Auto merge of #125691 - jieyouxu:rollup-0i3wrc4, r=jieyouxu"}},{"before":"274499dd0ff53b81e93b80520f7afe25adaa2812","after":"da159eb331b27df528185c616b394bb0e1d2a4bd","ref":"refs/heads/master","pushedAt":"2024-05-28T23:09:46.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125682 - weihanglo:update-cargo, r=weihanglo\n\nUpdate cargo\n\n5 commits in a8d72c675ee52dd57f0d8f2bae6655913c15b2fb..431db31d0dbeda320caf8ef8535ea48eb3093407\n2024-05-24 03:34:17 +0000 to 2024-05-28 18:17:31 +0000\n- Include `lints.rust.unexpected_cfgs.check-cfg` in the fingerprint (rust-lang/cargo#13958)\n- feat(test): Auto-redact elapsed time (rust-lang/cargo#13973)\n- chore: Update to snapbox 0.6 (rust-lang/cargo#13963)\n- fix: check if rev is full commit sha for github fast path (rust-lang/cargo#13969)\n- test: switch from `drop` to `let _` due to nightly rustc change (rust-lang/cargo#13964)\n\nr? ghost","shortMessageHtmlLink":"Auto merge of #125682 - weihanglo:update-cargo, r=weihanglo"}},{"before":"8c4db851a7bb64173832e6602638204ebbd373a8","after":"274499dd0ff53b81e93b80520f7afe25adaa2812","ref":"refs/heads/master","pushedAt":"2024-05-28T20:29:58.000Z","pushType":"push","commitsCount":17,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125665 - matthiaskrgr:rollup-srkx0v1, r=matthiaskrgr\n\nRollup of 5 pull requests\n\nSuccessful merges:\n\n - #117671 (NVPTX: Avoid PassMode::Direct for args in C abi)\n - #125573 (Migrate `run-make/allow-warnings-cmdline-stability` to `rmake.rs`)\n - #125590 (Add a \"Setup Python\" action for github-hosted runners and remove unnecessary `CUSTOM_MINGW` environment variable)\n - #125598 (Make `ProofTreeBuilder` actually generic over `Interner`)\n - #125637 (rustfmt fixes)\n\nr? `@ghost`\n`@rustbot` modify labels: rollup","shortMessageHtmlLink":"Auto merge of #125665 - matthiaskrgr:rollup-srkx0v1, r=matthiaskrgr"}},{"before":"7717a306b2678ba9ece19b723c76a6b3a89ba931","after":"8c4db851a7bb64173832e6602638204ebbd373a8","ref":"refs/heads/master","pushedAt":"2024-05-28T18:20:18.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #122662 - Mark-Simulacrum:optional-drop, r=bjorn3\n\nOmit non-needs_drop drop_in_place in vtables\n\nThis replaces the drop_in_place reference with null in vtables. On librustc_driver.so, this drops about ~17k (11%) dynamic relocations from the output, since many vtables can now be placed in read-only memory, rather than having a relocated pointer included.\n\nThis makes a tradeoff by adding a null check at vtable call sites. I'm not sure that's readily avoidable without changing the vtable format (e.g., so that we can use a pc-relative relocation instead of an absolute address, and avoid the dynamic relocation that way). But it seems likely that the check is cheap at runtime.\n\nAccepted MCP: https://github.com/rust-lang/compiler-team/issues/730","shortMessageHtmlLink":"Auto merge of #122662 - Mark-Simulacrum:optional-drop, r=bjorn3"}},{"before":"f989d2f62500df1696eb797d8800a705293b43b9","after":"7717a306b2678ba9ece19b723c76a6b3a89ba931","ref":"refs/heads/master","pushedAt":"2024-05-28T15:57:09.000Z","pushType":"push","commitsCount":7,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #124650 - oli-obk:pattern_types_syntax, r=nnethercote\n\nCreate const block DefIds in typeck instead of ast lowering\n\nthis is a prerequisite for cleaning up pattern types and the range pattern HIR nodes in general. Right now they contain expressions, but they are supposed to only contain constants. In order to generate the anonymous constants lazily during typeck, we need to support generating new items with bodies during typeck in general. Transforming const blocks was the simplest change I could find to allow us to do that (everything else is much more invasive if we haven't already done it for const blocks).","shortMessageHtmlLink":"Auto merge of #124650 - oli-obk:pattern_types_syntax, r=nnethercote"}},{"before":"c0d600385bb96cc23d3de8615ee37c01abba6c8a","after":"f989d2f62500df1696eb797d8800a705293b43b9","ref":"refs/heads/master","pushedAt":"2024-05-28T11:19:36.000Z","pushType":"push","commitsCount":24,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125649 - workingjubilee:rollup-zwoum3k, r=workingjubilee\n\nRollup of 5 pull requests\n\nSuccessful merges:\n\n - #125089 (Improve diagnostic output the `non_local_definitions` lint)\n - #125343 (`-Znext-solver`: eagerly normalize when adding goals)\n - #125551 (Stabilise `IpvNAddr::{BITS, to_bits, from_bits}` (`ip_bits`))\n - #125640 (Don't suggest turning non-char-literal exprs of ty `char` into string literals)\n - #125647 (update tracking issue for lazy_cell_consume)\n\nr? `@ghost`\n`@rustbot` modify labels: rollup","shortMessageHtmlLink":"Auto merge of #125649 - workingjubilee:rollup-zwoum3k, r=workingjubilee"}},{"before":"d86e1229411c086e1267c80dd9872959ca13b8b9","after":"c0d600385bb96cc23d3de8615ee37c01abba6c8a","ref":"refs/heads/master","pushedAt":"2024-05-28T07:06:03.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125636 - workingjubilee:bump-backtrace-0.3.72, r=workingjubilee\n\nBump backtrace to 0.3.72\n\nThis removes a bunch of dead code, contains critical aarch64-windows fixes, some less-critical windows-in-general improvements, adds visionOS support (and probably improves support for a bunch of Apple platforms...), and harmonizes backtrace's dependencies with rustc/std's.\n\nSee https://github.com/rust-lang/backtrace-rs/compare/0.3.71...0.3.72\n\nr? `@ghost`","shortMessageHtmlLink":"Auto merge of #125636 - workingjubilee:bump-backtrace-0.3.72, r=worki…"}},{"before":"71213fd60700478ac9ddef2cb4ef43b7bb660a5b","after":"d86e1229411c086e1267c80dd9872959ca13b8b9","ref":"refs/heads/master","pushedAt":"2024-05-28T04:56:59.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125609 - diondokter:opt-size-char-count, r=thomcc\n\nAlways use the general case char count with `optimize_for_size`\n\nThe faster algo is really expensive, over a kilobyte if the full algo is present in a binary.\nWith this PR the general case algo is picked always instead of only for small strings.\n\nIn a test of mine this change makes the total binary go from 3116 bytes to 2032 bytes in opt-level 3 and from 1652 bytes to 1428 bytes in opt-level z. I've seen it much worse in real application, so the savings (especially on 'z') will be higher in many cases.\n\nThis is the second pr of this kind after #125606","shortMessageHtmlLink":"Auto merge of #125609 - diondokter:opt-size-char-count, r=thomcc"}},{"before":"84b40fc908c3adc7e0e470b3fbaa264df0e122b8","after":"71213fd60700478ac9ddef2cb4ef43b7bb660a5b","ref":"refs/heads/master","pushedAt":"2024-05-28T02:36:35.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #125539 - matthiaskrgr:cräsh, r=jieyouxu\n\ncrashes: increment the number of tracked ones\n\nr? `@jieyouxu`","shortMessageHtmlLink":"Auto merge of #125539 - matthiaskrgr:cräsh, r=jieyouxu"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEWUrO3AA","startCursor":null,"endCursor":null}},"title":"Activity · rust-lang/rust"}