about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-03-05Rollup merge of #108764 - cjgillot:dpm-adapt, r=compiler-errorsMatthias Krüger-7/+20
Tweaks to -Zdrop-tracking-mir Split from https://github.com/rust-lang/rust/pull/107421 3 commits: 1 diagnostic improvement and 2 ICEs.
2023-03-05Rollup merge of #108746 - ↵Matthias Krüger-3/+41
compiler-errors:rpitit-dont-project-default-w-no-valu, r=cjgillot Don't project to RPITIT that has no default value Replicates this behavior, but for RPITIT projection logic (which currently is separate) https://github.com/rust-lang/rust/blob/b1719530f44e3c8ec903f76020a52bd8764d5d10/compiler/rustc_trait_selection/src/traits/project.rs#L2105-L2115 Fixes #108738
2023-03-05Rollup merge of #108244 - lukas-code:semicolon-recovery-span, r=cjgillotMatthias Krüger-0/+18
Add test for semicolon recovery ICE closes https://github.com/rust-lang/rust/issues/108242
2023-03-05Auto merge of #108041 - Mark-Simulacrum:relnotes, r=Mark-Simulacrumbors-0/+96
Add 1.68.0 release notes r? `@cuviper`
2023-03-05Auto merge of #108771 - matthiaskrgr:rollup-whlvo2g, r=matthiaskrgrbors-250/+231
Rollup of 7 pull requests Successful merges: - #106440 (Ignore files in .gitignore in tidy) - #108613 (Remove `llvm.skip-rebuild` option) - #108616 (Sync codegen defaults with compiler defaults and add a ping message so they stay in sync) - #108618 (Rename `src/etc/vscode_settings.json` to `rust_analyzer_settings.json`) - #108626 (rustdoc-json: switch from HashMap to FxHashMap to fix non-determinism) - #108744 (Don't ICE when encountering bound var in builtin copy/clone bounds) - #108749 (Clean up rustdoc-js tester.js file) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-03-05Rollup merge of #108749 - GuillaumeGomez:clean-up-rustdoc-js-tester, r=notriddleMatthias Krüger-58/+55
Clean up rustdoc-js tester.js file A much needed cleanup. r? `@notriddle`
2023-03-05Rollup merge of #108744 - ↵Matthias Krüger-5/+39
compiler-errors:non_lifetime_binders-bad-copy-clone, r=jackh726 Don't ICE when encountering bound var in builtin copy/clone bounds Fixes #108742
2023-03-05Rollup merge of #108626 - ozkanonur:consistent-json-docs, r=aDotInTheVoidMatthias Krüger-33/+31
rustdoc-json: switch from HashMap to FxHashMap to fix non-determinism Using `HashMap` in `rustdoc_json_types::Crate` were causing creating randomly ordered objects in the json doc files. Which might cause problems to people who are doing comparison on those files specially in CI pipelines. See https://github.com/rust-lang/rust/issues/103785#issuecomment-1307425590 This PR fixes that issue and extends the coverage of `tests/run-make/rustdoc-verify-output-files` testing ability.
2023-03-05Rollup merge of #108618 - KittyBorgX:master, r=Mark-SimulacrumMatthias Krüger-8/+8
Rename `src/etc/vscode_settings.json` to `rust_analyzer_settings.json` Fixes https://github.com/rust-lang/rust/issues/108614
2023-03-05Rollup merge of #108616 - jyn514:sync-codegen, r=albertlarsan68Matthias Krüger-0/+7
Sync codegen defaults with compiler defaults and add a ping message so they stay in sync Looks like this got missed in https://github.com/rust-lang/rust/pull/107241.
2023-03-05Rollup merge of #108613 - jyn514:rm-skip-rebuild, r=Mark-SimulacrumMatthias Krüger-38/+0
Remove `llvm.skip-rebuild` option This was added to in 2019 to speed up rebuild times when LLVM was modified. Now that download-ci-llvm exists, I don't think it makes sense to support an unsound option like this that can lead to miscompiles; and the code cleanup is nice too. r? `@Mark-Simulacrum` cc `@varkor` #65612
2023-03-05Rollup merge of #106440 - jyn514:tidy, r=the8472Matthias Krüger-108/+91
Ignore files in .gitignore in tidy - Switch from `walkdir` to `ignore`. This required various changes to make `skip` thread-safe. - Ignore `build` anywhere in the source tree, not just at the top-level. We support this in bootstrap, we should support it in tidy too. As a nice side benefit, this also makes tidy a bit faster. Before: ``` ; hyperfine -i '"/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"' Benchmark 1: "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32" Time (mean ± σ): 1.080 s ± 0.008 s [User: 2.616 s, System: 3.243 s] Range (min … max): 1.069 s … 1.099 s 10 runs ``` After: ``` ; hyperfine '"/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"' Benchmark 1: "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32" Time (mean ± σ): 705.0 ms ± 1.4 ms [User: 3179.1 ms, System: 1517.5 ms] Range (min … max): 702.3 ms … 706.9 ms 10 runs ``` r? `@the8472`
2023-03-05add test for https://github.com/rust-lang/rust/issues/108242Lukas Markeffsky-0/+18
2023-03-05Don't walk the `tests/` directories in checks that always skip itJoshua Nelson-25/+15
`WalkBuilder` handles top-level paths differently than `fn walk` used to: it doesn't run the `skip` function to determine if it should be skipped, instead assuming the top-level function is always included. This is a reasonable assumption; adapt our code so it doesn't make pointless calls to `walk`.
2023-03-05Reuse allocations between filesJoshua Nelson-3/+6
2023-03-05Ignore things in .gitignore in tidyJoshua Nelson-85/+75
- Switch from `walkdir` to `ignore`. This required various changes to make `skip` thread-safe. - Ignore `build` anywhere in the source tree, not just at the top-level. We support this in bootstrap, we should support it in tidy too. As a nice side benefit, this also makes tidy a bit faster. Before: ``` ; hyperfine -i '"/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"' Benchmark 1: "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32" Time (mean ± σ): 1.080 s ± 0.008 s [User: 2.616 s, System: 3.243 s] Range (min … max): 1.069 s … 1.099 s 10 runs ``` After: ``` ; hyperfine '"/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"' Benchmark 1: "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32" Time (mean ± σ): 705.0 ms ± 1.4 ms [User: 3179.1 ms, System: 1517.5 ms] Range (min … max): 702.3 ms … 706.9 ms 10 runs ```
2023-03-05Sync codegen defaults with compiler defaults and add a ping message so they ↵Joshua Nelson-0/+7
stay in sync
2023-03-05Auto merge of #108351 - petrochenkov:rmdit, r=cjgillotbors-154/+118
rustc_middle: Remove trait `DefIdTree` This trait was a way to generalize over both `TyCtxt` and `Resolver`, but now `Resolver` has access to `TyCtxt`, so this trait is no longer necessary.
2023-03-05drop_tracking_mir: support new solver.Camille GILLOT-1/+1
2023-03-05drop_tracking_mir: avoid good path bug.Camille GILLOT-6/+8
2023-03-05drop_tracking_mir: diagnose recursive generator.Camille GILLOT-0/+11
2023-03-05Auto merge of #107844 - Zeegomo:no-drop-and-rep, r=cjgillotbors-152/+281
Desugaring of drop and replace at MIR build This commit desugars the drop and replace deriving from an assignment at MIR build, avoiding the construction of the `DropAndReplace` terminator (which will be removed in a following PR). In order to retain the same error messages for replaces a new `DesugaringKind::Replace` variant is introduced. The changes in the borrowck are also useful for future work in moving drop elaboration before borrowck, as no `DropAndReplace` would be present there anymore. Notes on test diffs: * `tests/ui/borrowck/issue-58776-borrowck-scans-children`: the assignment deriving from the desugaring kills the borrow. * `tests/ui/async-await/async-fn-size-uninit-locals.rs`, `tests/mir-opt/issue_41110.test.ElaborateDrops.after.mir`, `tests/mir-opt/issue_41888.main.ElaborateDrops.after.mir`: drop elaboration generates (or reads from) a useless drop flag due to an issue with the dataflow analysis. Will be fixed independently by https://github.com/rust-lang/rust/pull/106430. See https://github.com/rust-lang/rust/pull/104488 for more context
2023-03-05Auto merge of #107723 - Kobzol:bootstrap-bolt, r=Mark-Simulacrumbors-43/+146
Apply BOLT optimizations without rebuilding LLVM This PR adds an explicit BOLT bootstrap step which applies BOLT on the fly when LLVM artifacts are copied to a sysroot (it only does this once per bootstrap invocation, the result is cached). This avoids one LLVM rebuild in the Linux CI dist build. r? `@jyn514`
2023-03-05Auto merge of #101550 - CraftSpider:link-dead-windows, r=wesleywiserbors-5/+20
Make compressed rmeta contain compressed data length after header Fixes #90056, which is caused by link.exe introducing padding to the `.rustc` section, since it assumes this will have no effect besides allowing it to possibly use the extra space in future links.
2023-03-04Add 1.68.0 release notesMark Rousskov-0/+96
2023-03-04Auto merge of #108747 - matthiaskrgr:rollup-wfc7fx4, r=matthiaskrgrbors-195/+176
Rollup of 7 pull requests Successful merges: - #108627 (Properly colorize multi-part suggestions in the same line) - #108632 (Omit unchanged options from config.toml in `configure.py`) - #108715 (Remove unclosed_delims from parser) - #108723 (rustdoc: function signature search with traits in `where` clause) - #108724 (field is not used outside the crate) - #108734 (rustdoc: Note in a type's layout/size if it is uninhabited) - #108736 (Remove `allow(potential_query_instability)` from `ast_passes`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-03-05fix inconsistent json outputs from rustdocozkanonur-33/+31
Signed-off-by: ozkanonur <work@onurozkan.dev>
2023-03-04Clean up rustdoc-js tester.js fileGuillaume Gomez-58/+55
2023-03-04Rollup merge of #108736 - clubby789:ast-passes-unstable, r=NilstriebMatthias Krüger-3/+2
Remove `allow(potential_query_instability)` from `ast_passes` cc #84447
2023-03-04Rollup merge of #108734 - clubby789:rustdoc-layout-uninhabited, r=GuillaumeGomezMatthias Krüger-0/+14
rustdoc: Note in a type's layout/size if it is uninhabited Closes #87008 ![image](https://user-images.githubusercontent.com/13556931/222900244-8e326d51-8d3b-4700-a935-96830179e2e9.png)
2023-03-04Rollup merge of #108724 - tshepang:de-public, r=compiler-errorsMatthias Krüger-3/+3
field is not used outside the crate See b61a28b2a1db297ed3bd15a3c5ac5c8c40feb586
2023-03-04Rollup merge of #108723 - notriddle:notriddle/where-clause, r=GuillaumeGomezMatthias Krüger-21/+55
rustdoc: function signature search with traits in `where` clause ## Before ![image](https://user-images.githubusercontent.com/1593513/222873534-a640a72a-c654-4702-9f3b-175129d9591d.png) ## After ![image](https://user-images.githubusercontent.com/1593513/222873544-fdfc431d-2b65-4b56-bede-0302ea9f153a.png)
2023-03-04Rollup merge of #108715 - chenyukang:yukang/cleanup-parser-delims, ↵Matthias Krüger-158/+12
r=compiler-errors Remove unclosed_delims from parser After landing https://github.com/rust-lang/rust/pull/108297 we could remove `unclosed_delims` from the parser now.
2023-03-04Rollup merge of #108632 - Teapot4195:issue-108612-fix, r=ozkanonurMatthias Krüger-4/+19
Omit unchanged options from config.toml in `configure.py` Leaves section tags, but removes options that are unchanged. Change in `config.toml.example` is to prevent comments from sneaking in by being directly after a section tag closes #108612
2023-03-04Rollup merge of #108627 - estebank:suggestion-hightlight, r=WaffleLapkinMatthias Krüger-6/+71
Properly colorize multi-part suggestions in the same line Fix #108547.
2023-03-04Auto merge of #108740 - Mark-Simulacrum:version-bump, r=Mark-Simulacrumbors-1/+1
Bump version to 1.70.0 r? `@Mark-Simulacrum`
2023-03-04Don't project to RPITIT that has no default valueMichael Goulet-3/+41
2023-03-04Don't ICE when encountering bound var in builtin copy/clone boundsMichael Goulet-5/+39
2023-03-04Add check for dry runJakub Beránek-5/+1
2023-03-04rustdoc: function signature search with traits in `where` clauseMichael Howell-21/+55
2023-03-04Try to avoid the last rustc rebuildJakub Beránek-0/+3
2023-03-04Create BOLT build steps to avoid running BOLT multiple times on the same fileJakub Beránek-19/+127
2023-03-04Apply BOLT optimizations without rebuilding LLVMJakub Beránek-36/+32
2023-03-04Bump version to 1.70.0Mark Rousskov-1/+1
2023-03-04Auto merge of #108692 - nnethercote:dont-call-temporary_scope-twice, r=cjgillotbors-4/+2
Don't call `temporary_scope` twice. `mirror_expr_inner` calls `temporary_scope`. It then calls `make_mirror_unadjusted` which makes an identical call to `temporary_scope`. This commit changes the `mirror_expr_inner` to get the `temp_lifetime` out of the expression produced by `make_mirror_unadjusted`, similar to how it currently gets the type. r? `@cjgillot`
2023-03-04Remove `allow(potential_query_instability)` from `ast_passes`clubby789-3/+2
2023-03-04rustdoc: Note in a type's layout/size if it is uninhabitedclubby789-0/+14
2023-03-04Auto merge of #108732 - Dylan-DPC:rollup-dy1l8sx, r=Dylan-DPCbors-19/+73
Rollup of 6 pull requests Successful merges: - #108298 (Fix ICE: check if snippet is `)`) - #108405 (Lazily compute crate name for consider_optimizing) - #108656 (Rustdoc search: Emit an error for unclosed generic) - #108660 (Remove ne implementations from strings) - #108669 (Allow checking whether a type allows being uninitialized) - #108727 (rustc_expand: make proc-macro derive error translatable) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-03-04Rollup merge of #108727 - tshepang:example-translatable-diagnostic, r=NilstriebDylan DPC-1/+11
rustc_expand: make proc-macro derive error translatable kept this tiny so as to point to it as an example in rustc-dev-guide `@rustbot` label +A-translation
2023-03-04Rollup merge of #108669 - Nilstrieb:query-my-uninitness, r=compiler-errorsDylan DPC-2/+11
Allow checking whether a type allows being uninitialized This is useful for clippy ([rust-lang/clippy#10407](https://github.com/rust-lang/rust-clippy/issues/10407)) and for the future `MaybeUninit::assume_init` panics (#100423).