about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-04-06Fix mir interp of `TerminatorKind::Terminate`Gary Guo-1/+2
2023-04-06Revert box_free unwind actionGary Guo-1/+5
2023-04-06Fix MSVC buildGary Guo-2/+4
2023-04-06Fix new usage of old apiGary Guo-10/+7
2023-04-06Fix toolsGary Guo-1/+2
2023-04-06Address review feedbackGary Guo-31/+40
2023-04-06Rename `Abort` terminator to `Terminate`Gary Guo-67/+112
Unify terminology used in unwind action and terminator, and reflect the fact that a nounwind panic is triggered instead of an immediate abort is triggered for this terminator.
2023-04-06Add `UnwindAction::Terminate`Gary Guo-121/+126
2023-04-06Add `UnwindAction::Unreachable`Gary Guo-150/+161
This also makes eval machine's `StackPopUnwind` redundant so that is replaced.
2023-04-06Refactor unwind from Option to a new enumGary Guo-250/+328
2023-04-06Auto merge of #109874 - jyn514:subdirectory-limit, r=compiler-errorsbors-1/+1
Reduce the default max number of files in a UI test directory It doesn't make sense for the root directory to have a lower limit than subdirectories.
2023-04-06Auto merge of #109792 - cjgillot:reachable-lint, r=oli-obkbors-132/+155
Only visit reachable blocks in ConstProp lint. Fixes https://github.com/rust-lang/rust/issues/78803 Fixes https://github.com/rust-lang/rust/issues/109731
2023-04-05Auto merge of #109986 - JohnTitor:rollup-3aax38t, r=JohnTitorbors-16/+135
Rollup of 7 pull requests Successful merges: - #109909 (Deny `use`ing tool paths) - #109921 (Don't ICE when encountering `dyn*` in statics or consts) - #109922 (Disable `has_thread_local` on OpenHarmony) - #109926 (write threads info into log only when debugging) - #109968 (Add regression test for #80409) - #109969 (Add regression test for #86351) - #109973 (rustdoc: Improve logo display very small screen) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-04-06Rollup merge of #109973 - GuillaumeGomez:logo-display-very-small-screen, ↵Yuki Okushi-2/+14
r=notriddle rustdoc: Improve logo display very small screen Before: ![Screenshot from 2023-04-05 16-56-33](https://user-images.githubusercontent.com/3050060/230125438-c63c8de1-923c-4534-adf1-bdef02e402a9.png) After: ![Screenshot from 2023-04-05 16-57-17](https://user-images.githubusercontent.com/3050060/230125467-d3d46878-373a-4f8a-8554-1bb8c4baf46d.png) r? `@notriddle`
2023-04-06Rollup merge of #109969 - JohnTitor:issue-86351, r=compiler-errorsYuki Okushi-0/+22
Add regression test for #86351 r? `@compiler-errors` Closes #86351
2023-04-06Rollup merge of #109968 - JohnTitor:issue-80409, r=compiler-errorsYuki Okushi-0/+36
Add regression test for #80409 r? ``@compiler-errors`` Closes #80409
2023-04-06Rollup merge of #109926 - SparrowLii:parallel_log, r=eholkYuki Okushi-2/+2
write threads info into log only when debugging The current tracing log will unconditionally write thread information during parallel compilation, which sometimes confuses some normal output log information This fixes the UI test failure of: ``` [ui] tests/ui/consts/const_in_pattern/issue-73431.rs ``` Updates #75760
2023-04-06Rollup merge of #109922 - Amanieu:ohos-no_thread_local, r=wesleywiserYuki Okushi-0/+2
Disable `has_thread_local` on OpenHarmony OpenHarmony uses emulated TLS, which doesn't link properly when using thread-local variables across crate boundaries with `-C prefer-dynamic`. This PR makes thread_local! use pthreads directly instead.
2023-04-06Rollup merge of #109921 - compiler-errors:dyn-star-const-static, r=eholkYuki Okushi-1/+22
Don't ICE when encountering `dyn*` in statics or consts Since we have properly implemented `dyn*` support in CTFE (#107728), let's not ICE here anymore. Fixes #105777 r? `@eholk`
2023-04-06Rollup merge of #109909 - clubby789:import-tool-mod, r=petrochenkovYuki Okushi-11/+37
Deny `use`ing tool paths Fixes #109853 Fixes #109147
2023-04-05Auto merge of #109437 - petrochenkov:effvisopt, r=davidtwcobors-14/+34
resolve: Restore some effective visibility optimizations Something similar was previously removed as a part of https://github.com/rust-lang/rust/pull/104602. So we can see [bitmaps-3.1.0](https://github.com/rust-lang/rustc-perf/tree/master/collector/compile-benchmarks/bitmaps-3.1.0), [match-stress](https://github.com/rust-lang/rustc-perf/tree/master/collector/compile-benchmarks/match-stress) and [unused-warnings](https://github.com/rust-lang/rustc-perf/tree/master/collector/compile-benchmarks/unused-warnings) in regressions there, and in improvements in this PR. After this PR all table changes should also be "locally correct" after every update.
2023-04-05Update GUI tests for logo display on very small screensGuillaume Gomez-1/+8
2023-04-05Comment logic around worklist.Camille GILLOT-0/+3
2023-04-05Only visit reachable blocks in ConstProp lint.Camille GILLOT-8/+48
2023-04-05Extract check_assertion.Camille GILLOT-72/+71
2023-04-05Manipulate Location instead of SourceInfo.Camille GILLOT-50/+36
2023-04-05Do not keep extra references to scopes and decls.Camille GILLOT-18/+13
2023-04-05Auto merge of #107925 - thomcc:sip13, r=cjgillotbors-377/+179
Use SipHash-1-3 instead of SipHash-2-4 for StableHasher Noticed this, and it seems easy and likely a perf win. IIUC we don't need DDOS resistance (just collision) so we ideally would have an even faster hash, but it's hard to beat this SipHash impl here, since it's been so highly tuned for the interface. It wouldn't surprise me if there's some subtle reason changing this sucks, as it's so obvious it seems likely to have been done. Still, SipHash-1-3 seems to still have the guarantees StableHasher should need (and seemingly more), and is clearly less work. So it's worth a shot. Not fully tested locally.
2023-04-05Auto merge of #108905 - ferrocene:pa-compiletest-ignore, r=ehussbors-506/+720
Validate `ignore` and `only` compiletest directive, and add human-readable ignore reasons This PR adds strict validation for the `ignore` and `only` compiletest directives, failing if an unknown value is provided to them. Doing so uncovered 79 tests in `tests/ui` that had invalid directives, so this PR also fixes them. Finally, this PR adds human-readable ignore reasons when tests are ignored due to `ignore` or `only` directives, like *"only executed when the architecture is aarch64"* or *"ignored when the operative system is windows"*. This was the original reason why I started working on this PR and #108659, as we need both of them for Ferrocene. The PR is a draft because the code is extremely inefficient: it calls `rustc --print=cfg --target $target` for every rustc target (to gather the list of allowed ignore values), which on my system takes between 4s and 5s, and performs a lot of allocations of constant values. I'll fix both of them in the coming days. r? `@ehuss`
2023-04-05Fix function order in an msvc debuginfo testRémy Rakic-1/+1
The function names with const generic parameters are printed in a different order.
2023-04-05Bless rustdoc-ui test with new errors orderRémy Rakic-15/+15
The order in which the multiple errors for the ambiguous intra doc links are printed is different.
2023-04-05Bless rustdoc test with swapped idsRémy Rakic-2/+2
The ids for the multiple `Item` associated type elements are swapped between the first and second impl.
2023-04-05Fix codegen tests with hard-coded hashesRémy Rakic-2/+2
2023-04-05Fix a debuginfo test with a hard-coded hashThom Chiovoloni-3/+3
2023-04-05Fix an assembly test with a hard-coded hashThom Chiovoloni-2/+2
2023-04-05Fix a codegen test with some hard-coded hashesThom Chiovoloni-2/+2
2023-04-05Bless testsThom Chiovoloni-78/+75
2023-04-05Fix a couple missed hash constantsThom Chiovoloni-3/+3
2023-04-05Use SipHash-1-3 instead of SipHash-2-4 for StableHasherThom Chiovoloni-270/+75
2023-04-05Improve display of logo on very small screensGuillaume Gomez-1/+6
2023-04-05Add regression test for #86351Yuki Okushi-0/+22
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-04-05Auto merge of #109966 - JohnTitor:rollup-eoqjr5j, r=JohnTitorbors-67/+145
Rollup of 6 pull requests Successful merges: - #107236 (Add T-bootstrap label to tools) - #109847 (Only create graphviz nodes for reachable MIR bb's) - #109848 (submodule detection for proper fix on #96188) - #109932 (Source code scrollbar) - #109952 (Move comment about python2 closer to the place it's used) - #109956 (Tweak debug outputs to make debugging new solver easier) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-04-05Add regression test for #80409Yuki Okushi-0/+36
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-04-05Rollup merge of #109956 - compiler-errors:tweak-debug-outputs, r=oli-obkYuki Okushi-52/+76
Tweak debug outputs to make debugging new solver easier 1. Move the fields that are "most important" (I know this is subjective) to the beginning of the structs. For goals, I typically care more about the predicate than the param-env (which is significantly longer in debug output). For canonicalized things, I typically care more about what is *being* canonicalized. For a canonical response, I typically care about the response -- or at least, it's typically useful to put it first since it's short and affects the whether the solver recurses or not... 2. Add some more debug and instrument calls to functions to add more structure to tracing lines. r? `@oli-obk` or `@BoxyUwU` (since I think `@lcnr` is on holiday)
2023-04-05Rollup merge of #109952 - jyn514:python-comment, r=pietroalbiniYuki Okushi-2/+2
Move comment about python2 closer to the place it's used Addresses https://github.com/rust-lang/rust/pull/109267#discussion_r1141333399. r? `@pietroalbini`
2023-04-05Rollup merge of #109932 - GuillaumeGomez:source-code-scrollbar, r=notriddleYuki Okushi-0/+12
Source code scrollbar Fixes https://github.com/rust-lang/rust/issues/109865. You can test it [here](https://rustdoc.crud.net/imperio/source-code-scrollbar/src/test_docs/lib.rs.html). It seems to introduce a few regressions (at least change of behaviour) about the scroll "saving" though. r? `@notriddle`
2023-04-05Rollup merge of #109848 - ozkanonur:fix-96188, r=albertlarsan68Yuki Okushi-10/+40
submodule detection for proper fix on #96188 This commit resolves an internal FIXME note within the bootstrap by implementing submodule detection. This is accomplished through an iterative process over the `.gitmodules` file. r? `@albertlarsan68`
2023-04-05Rollup merge of #109847 - clubby789:graphviz-reachable, r=oli-obkYuki Okushi-2/+10
Only create graphviz nodes for reachable MIR bb's Fixes #109832
2023-04-05Rollup merge of #107236 - albertlarsan68:move-tidy-to-bootstrap, r=jyn514Yuki Okushi-1/+5
Add T-bootstrap label to tools cc `@rust-lang/bootstrap:` ### Unresolved questions: - [ ] Do we want to keep the A-testsuite on those? - [ ] Do we want all of those tools to be ours?
2023-04-05Reduce the default max number of files in a UI test directoryjyn-1/+1
It doesn't make sense for the root directory to have a lower limit than subdirectories.