about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2023-11-16Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyupPhilipp Krones-10369/+10338
2023-11-16Auto merge of #3166 - devnexen:reallocarray, r=RalfJungbors-1/+48
reallocarray shim linux/freebsd support proposal.
2023-11-16reallocarray shim linux/freebsd support proposal.David Carlier-1/+48
2023-11-16Auto merge of #117875 - Mark-Simulacrum:bootstrap-bump, r=clubby789bors-3/+1
Bootstrap bump Bumps bootstrap compiler to just-released beta. https://forge.rust-lang.org/release/process.html#master-bootstrap-update-t-2-day-tuesday
2023-11-16Auto merge of #3168 - RalfJung:set_var, r=RalfJungbors-5/+5
get rid of our last uses of set_var Fixes https://github.com/rust-lang/miri/issues/2783
2023-11-16get rid of our last uses of set_varRalf Jung-5/+5
2023-11-16Merge from rustcRalf Jung-33/+44
2023-11-16Preparing for merge from rustcRalf Jung-1/+1
2023-11-16Update cargoWeihang Lo-0/+0
2023-11-16Add test suggestions for `mir-opt` and `coverage`Zalathar-0/+11
2023-11-16Support multiple globs in static suggestionsZalathar-13/+15
2023-11-16Allow trailing commas in static suggestionsZalathar-5/+5
2023-11-15Re-format code with new rustfmtMark Rousskov-3/+1
2023-11-15Auto merge of #3164 - devnexen:fbsd_upd3, r=RalfJungbors-2/+20
freebsd adding getrandom interception. note that os support was added in same time as getentropy.
2023-11-15freebsd adding getrandom interception.David Carlier-2/+20
note that os support was added in same time as getentropy.
2023-11-15Auto merge of #117908 - lcnr:region-kind-rename, r=BoxyUwUbors-3/+3
finish `RegionKind` renaming second step of https://github.com/rust-lang/types-team/issues/95 continues the work from #117876. While working on this and I encountered a bunch of further cleanup which I'll either open a tracking issue for or will do in a separate PR: - rewrite the `RegionKind` docs, they still talk about `ReEmpty` and are generally out of date - rename `DescriptionCtx` to `DescriptionCtxt` - what is `CheckRegions::Bound`? - `collect_late_bound_regions` et al - `erase_late_bound_regions` -> `instantiate_bound_regions_with_erased`? - `EraseEarlyRegions` visitor should be removed, feels duplicate r? `@BoxyUwU`
2023-11-15Add arm64e-apple-darwin targetArtyom Tetyukhin-0/+1
2023-11-15Add arm64e-apple-ios targetArtyom Tetyukhin-0/+1
2023-11-15Auto merge of #117814 - RalfJung:rustc-logger-without-set-var, r=TaKO8Kibors-30/+41
rustc_log: provide a way to init logging based on the values, not names, of the env vars Miri wants to affect how rustc does logging. So far this required setting environment variables before calling `rustc_driver::init_rustc_env_logger`. However, `set_var` is a function one should really [avoid calling](https://github.com/rust-lang/rust/issues/90308), so this adds the necessary APIs to rustc such that Miri can just pass it the *values* of all the log-relevant environment variables, rather than having to change the global environment.
2023-11-15Merge from rustcThe Miri Conjob Bot-2143/+15109
2023-11-15Preparing for merge from rustcThe Miri Conjob Bot-1/+1
2023-11-14Rollup merge of #116244 - estebank:issue-73497, r=b-naberMatthias Krüger-1/+1
Apply structured suggestion that allows test to work since 1.64 Close #73497.
2023-11-14Auto merge of #117701 - lnicola:sync-from-ra, r=onur-ozkan,HKalbasibors-2058/+14899
Subtree update of `rust-analyzer` r? `@HKalbasi`
2023-11-14Depend on rustc_driverLaurențiu Nicola-0/+4
2023-11-14finish `RegionKind` renamelcnr-3/+3
- `ReFree` -> `ReLateParam` - `ReEarlyBound` -> `ReEarlyParam`
2023-11-14Auto merge of #117330 - tmiasko:custom-mir-cleanup-blocks, r=cjgillotbors-31/+31
Custom MIR: Support cleanup blocks Cleanup blocks are declared with `bb (cleanup) = { ... }`. `Call` and `Drop` terminators take an additional argument describing the unwind action, which is one of the following: * `UnwindContinue()` * `UnwindUnreachable()` * `UnwindTerminate(reason)`, where reason is `ReasonAbi` or `ReasonInCleanup` * `UnwindCleanup(block)` Also support unwind resume and unwind terminate terminators: * `UnwindResume()` * `UnwindTerminate(reason)`
2023-11-14Custom MIR: Support cleanup blocksTomasz Miąsko-31/+31
Cleanup blocks are declared with `bb (cleanup) = { ... }`. `Call` and `Drop` terminators take an additional argument describing the unwind action, which is one of the following: * `UnwindContinue()` * `UnwindUnreachable()` * `UnwindTerminate(reason)`, where reason is `ReasonAbi` or `ReasonInCleanup` * `UnwindCleanup(block)` Also support unwind resume and unwind terminate terminators: * `UnwindResume()` * `UnwindTerminate(reason)`
2023-11-13don't expose all the borrow tracker stuff to the entire crateRalf Jung-41/+47
2023-11-13Add missing rustc_private featuresLaurențiu Nicola-1/+8
2023-11-13share getentropy shim across various unixesRalf Jung-36/+48
2023-11-13organize pass-dep tests more by the crate they testRalf Jung-14/+18
2023-11-13update type flagslcnr-3/+3
- `HAS_RE_LATE_BOUND` -> `HAS_RE_BOUND` - `HAS_TY_LATE_BOUND` -> `HAS_TY_BOUND` - `HAS_CT_LATE_BOUND` -> `HAS_CT_BOUND` - `HAS_LATE_BOUND` -> `HAS_BOUND_VARS` - `fn has_late_bound_regions` -> `fn has_bound_regions` - `fnhas_non_region_late_bound` -> `fn has_non_region_bound_vars` - `fn has_late_bound_vars` -> `fn has_bound_vars`
2023-11-13rename `ReLateBound` to `ReBound`lcnr-5/+5
other changes: - `Region::new_late_bound` -> `Region::new_bound` - `Region::is_late_bound` -> `Region::is_bound`
2023-11-13freebsd adding getentropy interception supportDavid Carlier-1/+29
2023-11-12Auto merge of #117855 - RalfJung:miri, r=RalfJungbors-120/+648
Miri subtree update r? `@ghost`
2023-11-12Auto merge of #3159 - eduardosm:sse41-round, r=RalfJungbors-96/+372
Implement round.ps and round.pd SSE4.1 intrinsics I had forgotten them. I also increased the coverage of rounding tests to make sure the rounding direction is working as expected (e.g. test `1.25`, `1.5`, `1.75`...).
2023-11-12Improve SSE4.1 rounding tests coverageEduardo Sánchez Muñoz-137/+305
To make sure the rounding direction is working as expected
2023-11-12more consistent naming for TLS testsRalf Jung-10/+13
2023-11-12Auto merge of #2931 - max-heller:issue-2881, r=RalfJungbors-10/+148
Treat thread-local statics on main thread as static roots for leakage analysis Miri currently treats allocations as leaked if they're only referenced in thread-local statics. For threads other than the main thread, this is correct, since the thread can terminate before the program does, but references in the main thread's locals should be treated as living for the duration of the program since the thread lives for the duration of the program. This PR adds thread-local statics and TLS keys as "static roots" for leakage analysis, but does not yet bless the example program from #2881. See https://github.com/rust-lang/miri/issues/2881#issuecomment-1585666652 Closes #2881
2023-11-12allow allocations referenced by main thread TLS to leakmax-heller-10/+148
2023-11-12Implement roundps and roundpd SSE4.1 intrinsicsEduardo Sánchez Muñoz-16/+124
2023-11-12better error when calling pthread shims on unsupported unixesRalf Jung-0/+70
2023-11-12tweak commentsRalf Jung-9/+5
2023-11-12interpret: simplify handling of shifts by no longer trying to handle signed ↵Ralf Jung-0/+24
and unsigned shift amounts in the same branch
2023-11-12freebsd interceptions update proposalDavid Carlier-7/+45
2023-11-11Auto merge of #115694 - clarfonthey:std-hash-private, r=dtolnaybors-2/+1
Add `std::hash::{DefaultHasher, RandomState}` exports (needs FCP) This implements rust-lang/libs-team#267 to move the libstd hasher types to `std::hash` where they belong, instead of `std::collections::hash_map`. <details><summary>The below no longer applies, but is kept for clarity.</summary> This is a small refactor for #27242, which moves the definitions of `RandomState` and `DefaultHasher` into `std::hash`, but in a way that won't be noticed in the public API. I've opened rust-lang/libs-team#267 as a formal ACP to move these directly into the root of `std::hash`, but for now, they're at least separated out from the collections code in a way that will make moving that around easier. I decided to simply copy the rustdoc for `std::hash` from `core::hash` since I think it would be ideal for the two to diverge longer-term, especially if the ACP is accepted. However, I would be willing to factor them out into a common markdown document if that's preferred. </details>
2023-11-11Miri: use new init_logger function, avoid calling env::set_varRalf Jung-29/+39
2023-11-11rustc_log: provide a way to init logging based on the values, not names, of ↵Ralf Jung-1/+2
the env vars
2023-11-10Update cargoWeihang Lo-0/+1
2023-11-10Drop anymap license exceptionLaurențiu Nicola-1/+0