about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2023-09-23Auto merge of #115695 - tmiasko:compiletest-supported-sanitizers, r=oli-obkbors-209/+175
compiletest: load supported sanitizers from target spec
2023-09-22Merge `ExternProviders` into the general `Providers` structOli Scherer-7/+8
2023-09-22Fixes from PRAyush Singh-0/+1
- Hide Docs - Use repr_unpacked error Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
2023-09-22Bump ui_test crateOli Scherer-39/+61
2023-09-22Allow limiting the number of threads running in parallelOli Scherer-1/+5
2023-09-22Bump ui_test crateOli Scherer-1/+1
2023-09-22Move `fail` tests that need dependencies into their own folder, so that wasm ↵Oli Scherer-0/+6
tests don't build dependencies
2023-09-22Bump ui test crateOli Scherer-50/+115
2023-09-23Update cargoWeihang Lo-0/+0
2023-09-22Auto merge of #115696 - RalfJung:closure-ty-print, r=oli-obkbors-28/+28
adjust how closure/generator types are printed I saw `&[closure@$DIR/issue-20862.rs:2:5]` and I thought it is a slice type, because that's usually what `&[_]` is... it took me a while to realize that this is just a confusing printer and actually there's no slice. Let's use something that cannot be mistaken for a regular type.
2023-09-22Add Minimal Std implementation for UEFIAyush Singh-0/+3
Implemented modules: 1. alloc 2. os_str 3. env 4. math Tracking Issue: https://github.com/rust-lang/rust/issues/100499 API Change Proposal: https://github.com/rust-lang/libs-team/issues/87 This was originally part of https://github.com/rust-lang/rust/pull/100316. Since that PR was becoming too unwieldy and cluttered, and with suggestion from @dvdhrm, I have extracted a minimal std implementation to this PR. Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2023-09-22Add a way to decouple the implementation and the declaration of a TyCtxt method.Oli Scherer-1/+1
2023-09-22Auto merge of #3074 - rust-lang:rustup-2023-09-22, r=RalfJungbors-134/+122
Automatic sync from rustc
2023-09-22clippyRalf Jung-2/+0
2023-09-22Auto merge of #114776 - fee1-dead-contrib:enable-effects-in-libcore, r=oli-obkbors-2/+3
Enable effects for libcore ~~r? `@oli-obk~~` forgot you are on vacation, oops
2023-09-22fmtThe Miri Conjob Bot-25/+15
2023-09-22Merge from rustcThe Miri Conjob Bot-121/+121
2023-09-22Preparing for merge from rustcThe Miri Conjob Bot-1/+1
2023-09-22run the cron job a bit earlierRalf Jung-1/+1
2023-09-22fix clippy errors (ignore effects in certainty)Deadbeef-2/+3
2023-09-21adjust how closure/generator types and rvalues are printedRalf Jung-28/+28
2023-09-21Record asyncness span in HIRMichael Goulet-6/+7
2023-09-21Implement `llvm.ctpop.v*` intrinsicsEduardo Sánchez Muñoz-0/+280
Tested through x86 avx512vpopcntdq and avx512bitalg functions.
2023-09-21Auto merge of #3071 - RalfJung:deprecate-disable-abi, r=oli-obk,saethlinbors-1/+13
deprecate -Zmiri-disable-abi-check This was added in https://github.com/rust-lang/miri/pull/1776 but I couldn't find any discussion or motivation.
2023-09-21Auto merge of #116010 - RalfJung:more-typed-immediates, r=oli-obkbors-97/+96
interpret: more consistently use ImmTy in operators and casts The diff in src/tools/miri/src/shims/x86/sse2.rs should hopefully suffice to explain why this is nicer. :)
2023-09-21Rollup merge of #115972 - RalfJung:const-consistency, r=oli-obkGuillaume Gomez-16/+16
rename mir::Constant -> mir::ConstOperand, mir::ConstKind -> mir::Const Also, be more consistent with the `to/eval_bits` methods... we had some that take a type and some that take a size, and then sometimes the one that takes a type is called `bits_for_ty`. Turns out that `ty::Const`/`mir::ConstKind` carry their type with them, so we don't need to even pass the type to those `eval_bits` functions at all. However this is not properly consistent yet: in `ty` we have most of the methods on `ty::Const`, but in `mir` we have them on `mir::ConstKind`. And indeed those two types are the ones that correspond to each other. So `mir::ConstantKind` should actually be renamed to `mir::Const`. But what to do with `mir::Constant`? It carries around a span, that's really more like a constant operand that appears as a MIR operand... it's more suited for `syntax.rs` than `consts.rs`, but the bigger question is, which name should it get if we want to align the `mir` and `ty` types? `ConstOperand`? `ConstOp`? `Literal`? It's not a literal but it has a field called `literal` so it would at least be consistently wrong-ish... ``@oli-obk`` any ideas?
2023-09-21compiletest: load supports-xray from target specTomasz Miąsko-15/+3
2023-09-21compiletest: load supported sanitizers from target specTomasz Miąsko-101/+31
2023-09-21compiletest: use builder pattern to construct Config in testsTomasz Miąsko-93/+141
2023-09-21Prevent promotion of const fn calls in inline constsOli Scherer-2/+2
2023-09-21Auto merge of #3069 - rust-lang:rustup-2023-09-21, r=RalfJungbors-788/+567
Automatic sync from rustc
2023-09-21deprecate -Zmiri-disable-abi-checkRalf Jung-1/+13
2023-09-21rename mir::Constant -> mir::ConstOperand, mir::ConstKind -> mir::ConstRalf Jung-16/+16
2023-09-21fix clippy lintsRalf Jung-7/+4
2023-09-21remove atty dependency by updating coloredRalf Jung-26/+6
2023-09-21disable no-merges check for nowRalf Jung-2/+3
2023-09-21update lockfileRalf Jung-11/+47
2023-09-21fmtThe Miri Conjob Bot-4/+1
2023-09-21Merge from rustcThe Miri Conjob Bot-745/+514
2023-09-21Preparing for merge from rustcThe Miri Conjob Bot-1/+1
2023-09-21try to avoid some layout_of callsRalf Jung-34/+33
2023-09-21Fix ui-fulldeps --stage=1 with -Zignore-directory-in-diagnostics-source-blocksMichael Goulet-8/+11
2023-09-20interpret: more consistently use ImmTy in operators and castsRalf Jung-65/+65
2023-09-20Auto merge of #115870 - RalfJung:const-value-slice, r=oli-obkbors-1/+1
adjust ConstValue::Slice to work for arbitrary slice types valtrees have already been assuming that this works; this PR makes it a reality. Also further restrict `ConstValue::Slice` to what it is actually used for; this even shrinks `ConstValue` from 32 to 24 bytes which is a nice win. :) The alternative to this approach is to make `ConstValue::Slice` work really only for `&str`/`&[u8]` literals, and never return it in `op_to_const`. That would make `op_to_const` very clean. We could then even remove the `meta` field; the length would always be `data.inner().len()`. We could *almost* just use a `Symbol` instead of a `ConstAllocation`, but we have to support byte strings and there doesn't seem to be an interned representation of them (or rather, `ConstAllocation` *is* their interned representation). In this world, valtrees of slice reference types would then become noticeably more expensive to turn into a `ConstValue` -- but does that matter? Specifically for `&str`/`&[u8]` we could still use the optimized representation if we wanted. If byte strings were already interned somewhere I'd gravitate towards the alternative, but the way things stand, we need a `ConstAllocation` case anyway to support byte strings, and then we might as well support arbitrary slices. (Or we say that byte strings don't get an optimized representation at all. Such a performance cliff between `str` and byte strings is probably unexpected, though due to the lack of interning for byte strings I think there might already be a performance cliff there.)
2023-09-20Auto merge of #116006 - GuillaumeGomez:rollup-elrbjd4, r=GuillaumeGomezbors-1/+2
Rollup of 5 pull requests Successful merges: - #115566 (clean up unneeded `ToPredicate` impls) - #115962 (coverage: Remove debug code from the instrumentor) - #115988 (rustdoc: add test cases, and fix, search tabs layout jank) - #115991 (Ensure `build/tmp` exists in `rustdoc_themes::get_themes`) - #115997 (RELEASES.md: Add missing patch releases) r? `@ghost` `@rustbot` modify labels: rollup
2023-09-20Rollup merge of #115991 - ferrocene:rustdoc-themes, r=pietroalbiniGuillaume Gomez-1/+2
Ensure `build/tmp` exists in `rustdoc_themes::get_themes` This causes failures in ferrocene's CI as `build/tmp` might not exist at this point, causing the following expect to fail here https://github.com/rust-lang/rust/blob/4b91288484569dd59c9a996ae45e08ae9527abc1/src/tools/rustdoc-themes/main.rs#L24
2023-09-20Auto merge of #115975 - mkroening:reduce-atty, r=davidtwcobors-2/+2
dependencies: reduce the amount of crates pulling in atty It would be nice to have only one `hermit-abi` in `Cargo.lock` (https://github.com/rust-lang/rust/pull/107405#issuecomment-1427116590). The only crate pulling in the old `hermit-abi` version is `atty`, which is unmaintained. This PR upgrades three dependencies, which then no longer depend on `atty`: * `Cargo.lock`: `colored v2.0.0 -> v2.0.4` * `Cargo.lock`: `tracing-tree v0.2.3 -> v0.2.4` * Miri: `env_logger 0.9.3 -> 0.10.0` The only dependency chain left that pulls in `hermit-abi 0.1.19` is: `hermit-abi 0.1.19` -> `atty 0.2.14` -> `env_logger 0.7.1` -> `jsonpath_lib 0.2.6` -> `jsondocck 0.1.0` (src/tools/jsondocck) Replacing jsondocck with jsondocckng is tracked in https://github.com/rust-lang/rust/issues/94140.
2023-09-20Auto merge of #115827 - eduardosm:miri-sse-reduce-code-dup, r=RalfJungbors-521/+318
miri: reduce code duplication in some SSE/SSE2 intrinsics Reduces code duplication in the Miri implementation of some SSE and SSE2 using generics and rustc_const_eval helper functions. There are also some other minor changes. r? `@RalfJung`
2023-09-20Ensure `build/tmp` exists in `rustdoc_themes::get_themes`Lukas Wirth-1/+2
2023-09-19adjust constValue::Slice to work for arbitrary slice typesRalf Jung-1/+1