about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2023-08-30miri function ABI check: specifically look for repr(transparent)Ralf Jung-0/+35
2023-08-30organize failing ABI compat tests and add some moreRalf Jung-10/+58
2023-08-30interpret: make sure we accept transparent newtypes as ABI-compatibleRalf Jung-1/+23
also we were missing the case for Vector arguments, so handle those as well
2023-08-30compiletest: support for newer lldb versionsDavid Wood-0/+9
Newer lldb versions disable printing of persistent results by default, but lots of rustc debuginfo tests rely on these being printed, so re-enable this by defining an alias as suggested by the patch which disabled persistent result printing in lldb. Signed-off-by: David Wood <david@davidtw.co>
2023-08-30storage_live: avoid computing the layout unless necessaryRalf Jung-4/+4
2023-08-30move marking-locals-live out of push_stack_frame, so it happens with ↵Ralf Jung-19/+16
argument passing this entirely avoids even creating unsized locals in Immediate::Uninitialized state
2023-08-30interpret: fix projecting into an unsized field of a localRalf Jung-0/+24
new invariant: Place::Local never refers to something unsized
2023-08-30Auto merge of #111713 - Zoxc:lock-switch, r=nnethercotebors-10/+10
Use conditional synchronization for Lock This changes `Lock` to use synchronization only if `mode::is_dyn_thread_safe` could be true. This reduces overhead for the parallel compiler running with 1 thread. The emitters are changed to use `DynSend` instead of `Send` so they can still use `Lock`. A Rayon thread pool is not used with 1 thread anymore, as session globals contains `Lock`s which are no longer `Sync`. Performance improvement with 1 thread and `cfg(parallel_compiler)`: <table><tr><td rowspan="2">Benchmark</td><td colspan="1"><b>Before</b></th><td colspan="2"><b>After</b></th></tr><tr><td align="right">Time</td><td align="right">Time</td><td align="right">%</th></tr><tr><td>🟣 <b>clap</b>:check</td><td align="right">1.7665s</td><td align="right">1.7336s</td><td align="right">💚 -1.86%</td></tr><tr><td>🟣 <b>hyper</b>:check</td><td align="right">0.2780s</td><td align="right">0.2736s</td><td align="right">💚 -1.61%</td></tr><tr><td>🟣 <b>regex</b>:check</td><td align="right">0.9994s</td><td align="right">0.9824s</td><td align="right">💚 -1.70%</td></tr><tr><td>🟣 <b>syn</b>:check</td><td align="right">1.5875s</td><td align="right">1.5656s</td><td align="right">💚 -1.38%</td></tr><tr><td>🟣 <b>syntex_syntax</b>:check</td><td align="right">6.0682s</td><td align="right">5.9532s</td><td align="right">💚 -1.90%</td></tr><tr><td>Total</td><td align="right">10.6997s</td><td align="right">10.5083s</td><td align="right">💚 -1.79%</td></tr><tr><td>Summary</td><td align="right">1.0000s</td><td align="right">0.9831s</td><td align="right">💚 -1.69%</td></tr></table> cc `@SparrowLii`
2023-08-30Rollup merge of #115272 - RalfJung:miri-error-print, r=saethlinMatthias Krüger-38/+27
miri/diagnostics: don't forget to print_backtrace when ICEing on unexpected errors This should fix the missing output encountered [here](https://github.com/rust-lang/rust/issues/115145#issuecomment-1694334410). r? `@saethlin`
2023-08-30Use conditional synchronization for LockJohn Kåre Alsaker-7/+7
2023-08-30Use conditional synchronization for LockJohn Kåre Alsaker-10/+10
2023-08-29Update cargoWeihang Lo-0/+0
2023-08-29Auto merge of #115354 - matthiaskrgr:rollup-4cotcxz, r=matthiaskrgrbors-1/+1
Rollup of 6 pull requests Successful merges: - #111580 (Don't ICE on layout computation failure) - #114923 (doc: update lld-flavor ref) - #115174 (tests: add test for #67992) - #115187 (Add new interface to smir) - #115300 (Tweaks and improvements on SMIR around generics_of and predicates_of) - #115340 (some more is_zst that should be is_1zst) r? `@ghost` `@rustbot` modify labels: rollup
2023-08-29Rollup merge of #114923 - cuishuang:master, r=wesleywiserMatthias Krüger-1/+1
doc: update lld-flavor ref
2023-08-29Auto merge of #115183 - flip1995:clippyup, r=Manishearth,oli-obkbors-9600/+16423
Update Clippy r? `@oli-obk` Assigning you, because something broke with ui_test: ``` tests/ui/crashes/ice-7272.rs FAILED: command: "<unknown>" A bug in `ui_test` occurred: called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" } full stderr: ``` (and that 103 times) Thought I would ping you, before starting to investigate. Maybe you know what's going on.
2023-08-29Auto merge of #112775 - c410-f3r:t3st3ss, r=petrochenkovbors-1/+1
Move tests r? `@petrochenkov`
2023-08-29Bump ui_testOli Scherer-17/+17
2023-08-29Don't treat lines starting with `.` or `)` as ordered markdown lists (#5839)xxchan-1/+6
Fixes 5835 Ordered markdown lists start with 0-9 digits followed by a `.` or a `)`. Now, rustfmt ensure that the `.` or `)` is only preceded by numeric characters before deciding that it's reached an `ItemizedBlock`
2023-08-29fmtThe Miri Conjob Bot-4/+6
2023-08-29Merge from rustcThe Miri Conjob Bot-29/+78
2023-08-29Preparing for merge from rustcThe Miri Conjob Bot-1/+1
2023-08-28Auto merge of #115182 - RalfJung:abi-compat-sign, r=b-naberbors-0/+27
miri ABI compatibility check: accept u32 and i32 If only the sign differs, then surely these types are compatible. (We do still check that `arg_ext` is the same, just in case.) Also I made it so that the ABI check must *imply* that size and alignment are the same, but it doesn't actively check that itself. With how crazy ABI constraints get, having equal size and align really shouldn't be used as a signal for anything I think...
2023-08-28Move testsCaio-1/+1
2023-08-28Update windows ffi bindingsChris Denton-18/+15
2023-08-28avoid stdout redirection on `curl` executionsonur-ozkan-12/+11
Avoid redirecting the curl output directly to the stdout. This alteration affects the integrity of the file during the retry process, as it also redirects the logs from the retries. Consequently, this leads to the bootstrap process failing because of an invalid checksum. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-08-28rustdoc: start new "Sections" section in the book with Aliased TypeUrgau-0/+16
2023-08-28rustdoc: always print type alias inner type (with it's where clauses)Urgau-22/+14
2023-08-28add tests for track_caller in closures and generatorsRalf Jung-5/+148
2023-08-28move basic track_caller test into their own fnRalf Jung-36/+39
2023-08-28Auto merge of #3039 - RalfJung:catch_panic, r=RalfJungbors-17/+19
tests/catch_panic: make output easier to interpret
2023-08-28tests/catch_panic: make output easier to interpretRalf Jung-17/+19
2023-08-28Rollup merge of #115280 - RalfJung:panic-cleanup-triple-backtrace, r=AmanieuMatthias Krüger-2/+1
avoid triple-backtrace due to panic-during-cleanup Supersedes https://github.com/rust-lang/rust/pull/115020 Cc https://github.com/rust-lang/rust/issues/114954 r? ``@Amanieu``
2023-08-28Rollup merge of #115278 - RalfJung:removed-error-codes, r=GuillaumeGomezMatthias Krüger-1/+6
tell people what to do when removing an error code Currently tidy and CI send developers on a wild goose chase: - you edit the code - CI/tidy tells you that an error code is gone, so you remove it from the list - CI/tidy tells you that the markdown file is stale, so you remove that as well - CI (but not tidy) tells you not to remove an error description and copy what E0001 does Let's be nice to people and directly tell them what to do rather than making them follow misleading breadcrumbs. r? ``@GuillaumeGomez``
2023-08-28Rollup merge of #114919 - joshtriplett:style-guide-macros, r=calebcartwrightMatthias Krüger-1/+6
style-guide: Add guidance for defining formatting for specific macros
2023-08-27also ignore doctestsRalf Jung-1/+2
2023-08-27Rollup merge of #115266 - GuillaumeGomez:unify-css-color-formats, r=notriddleGuillaume Gomez-14/+14
Unify CSS color formats a bit more When `rgb` format doesn't have an `rgba` equivalent, I turned it into hex format. I also "decapitalized" hex formats. r? `@notriddle`
2023-08-27Rollup merge of #115261 - onur-ozkan:replace-old-username, r=Mark-SimulacrumGuillaume Gomez-1/+1
replace outdated github username 'ozkanonur'
2023-08-27avoid triple-backtrace due to panic-during-cleanupRalf Jung-2/+1
2023-08-27tell people what to do when removing an error codeRalf Jung-1/+5
2023-08-27miri/diagnostics: don't forget to print_backtrace when ICEing on unexpected ↵Ralf Jung-38/+27
errors then also use the new helper in a few other places
2023-08-27Unify CSS color formats a bit moreGuillaume Gomez-14/+14
2023-08-27Rollup merge of #115111 - ozkanonur:check-rust-analyzer-if-enabled, ↵Matthias Krüger-2/+9
r=Mark-Simulacrum compile rust-anaylzer with `x check` if it's enabled By default, `x check` doesn't compile the rust-analyzer. But when it's enabled in the config's tools section, there's no reason not to do it. This change allows `x check` to compile rust-analyzer if it's enabled in config's tools section. Helps to #115031
2023-08-27Rollup merge of #115098 - real-eren:rust-gdbgui-gdbargs-syntax-fix, ↵Matthias Krüger-3/+3
r=Mark-Simulacrum rust-gdbgui: remove excessive quotes Removes the extra quotes introduced in commit https://github.com/rust-lang/rust/commit/8dd0ec6de7c8473e5730972c4e6206d5fb47b4e6. Modified script tested and now works on Ubuntu w/ `dash`. Fixes https://github.com/rust-lang/rust/issues/115097
2023-08-27Rollup merge of #114927 - Kobzol:ci-docker-caching-log, r=Mark-SimulacrumMatthias Krüger-4/+10
CI: add more debug logging to Docker caching Seems like the trouble with the Docker update continues, and rustup has some problems with downloading cached Docker layers from S3 (https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/rustup.20CI.20fails.20to.20install.20Docker.20images.20for.20armv7-linux). This PR adds more logging to Docker caching and busts the cache to rebuild all images.
2023-08-27replace outdated github username 'ozkanonur'ozkanonur-1/+1
Signed-off-by: ozkanonur <work@onurozkan.dev>
2023-08-26Add note about lazy_type_aliasMichael Howell-2/+2
Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
2023-08-26Auto merge of #115246 - matthiaskrgr:rollup-zdiw9gt, r=matthiaskrgrbors-1/+1
Rollup of 4 pull requests Successful merges: - #115197 (Remove special cases that are no longer needed due to #112606) - #115210 (Make `rustc_on_unimplemented` std-agnostic for `alloc::rc`) - #115237 (Fixup sparc-unknown-none-elf table spacing) - #115244 (Migrate GUI colors test to original CSS color format) r? `@ghost` `@rustbot` modify labels: rollup
2023-08-26Update cargoWeihang Lo-0/+0
2023-08-26fmtThe Miri Conjob Bot-6/+6
2023-08-26Merge from rustcThe Miri Conjob Bot-1967/+4573