about summary refs log tree commit diff
path: root/src
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-8/+9
2023-09-22Fixes from PRAyush Singh-0/+1
- Hide Docs - Use repr_unpacked error Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
2023-09-22Have a single struct for queries and hookOli Scherer-1/+1
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-22Rebase to masterAyush Singh-4/+6
- Update Example - Add thread_parking to sys::uefi - Fix unsafe in unsafe errors - Improve docs - Improve os/exit - Some asserts - Switch back to atomics Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
2023-09-22Fixes from PRAyush Singh-1/+1
- Some comment fixes. - Make some functions unsafe. - Make helpers module private. - Rebase on master - Update r-efi to v4.2.0 Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2023-09-22Add support for building `std::os::uefi` docsAyush Singh-6/+5
Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2023-09-22Fixes from PRAyush Singh-20/+24
Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2023-09-22Add Minimal Std implementation for UEFIAyush Singh-7/+74
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-2/+2
2023-09-22Auto merge of #3074 - rust-lang:rustup-2023-09-22, r=RalfJungbors-150/+176
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/+4
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-137/+175
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-21Update search-result-impl-disambiguation.gomlMichael Howell-2/+2
2023-09-21rustdoc: wait for section to open before trying to highlightMichael Howell-2/+6
This fixes a problem where hash rewriting doesn't work with `:target` CSS rules.
2023-09-21rustdoc-search: add impl disambiguator to duplicate assoc itemsMichael Howell-20/+113
Helps with #90929 This changes the search results, specifically, when there's more than one impl with an associated item with the same name. For example, the search queries `simd<i8> -> simd<i8>` and `simd<i64> -> simd<i64>` don't link to the same function, but most of the functions have the same names. This change should probably be FCP-ed, especially since it adds a new anchor link format for `main.js` to handle, so that URLs like `struct.Vec.html#impl-AsMut<[T]>-for-Vec<T,+A>/method.as_mut` redirect to `struct.Vec.html#method.as_mut-2`. It's a strange design, but there are a few reasons for it: * I'd like to avoid making the HTML bigger. Obviously, fixing this bug is going to add at least a little more data to the search index, but adding more HTML penalises viewers for the benefit of searchers. * Breaking `struct.Vec.html#method.len` would also be a disappointment. On the other hand: * The path-style anchors might be less prone to link rot than the numbered anchors. It's definitely less likely to have URLs that appear to "work", but silently point at the wrong thing. * This commit arranges the path-style anchor to redirect to the numbered anchor. Nothing stops rustdoc from doing the opposite, making path-style anchors the default and redirecting the "legacy" numbered ones.
2023-09-21rustdoc: use let chain in `CacheBuilder::fold_item`Michael Howell-31/+29
2023-09-21Auto merge of #115864 - compiler-errors:rpitit-sugg, r=estebankbors-9/+14
Suggest desugaring to return-position `impl Future` when an `async fn` in trait fails an auto trait bound First commit allows us to store the span of the `async` keyword in HIR. Second commit implements a suggestion to desugar an `async fn` to a return-position `impl Future` in trait to slightly improve the `Send` situation being discussed in #115822. This suggestion is only made when `#![feature(return_type_notation)]` is not enabled -- if it is, we should instead suggest an appropriate where-clause bound.
2023-09-21adjust how closure/generator types and rvalues are printedRalf Jung-28/+28
2023-09-21Auto merge of #115230 - Vtewari2311:mod-hurd-latest, r=b-naberbors-2/+43
added support for GNU/Hurd adding support for i686-unknown-hurd-gnu
2023-09-21Record asyncness span in HIRMichael Goulet-9/+14
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-21added support for GNU/HurdSamuel Thibault-2/+43
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 #116019 - dtolnay:percratesearch, r=GuillaumeGomezGuillaume Gomez-7/+0
Delete obsolete `--disable-per-crate-search` rustdoc flag This unstable flag is unused by rustdoc since https://github.com/rust-lang/rust/pull/92526/commits/ef96d573bff12330080d22f12cad96b818ea5da7. We should avoid landing this until after https://github.com/rust-lang/docs.rs/pull/2225 is deployed to docs.rs.
2023-09-21Rollup merge of #115972 - RalfJung:const-consistency, r=oli-obkGuillaume Gomez-20/+20
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-1396/+1706
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-20/+20
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