about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2023-10-17Auto merge of #3124 - eduardosm:fix-sse41-round, r=RalfJungbors-5/+64
Fix rounding mode check in SSE4.1 round functions Now it masks out the correct bit and adds some explanatory comments. Also extends the tests.
2023-10-17Fix rounding mode check in SSE4.1 round functionsEduardo Sánchez Muñoz-5/+64
Now it masks out the correct bit and adds some explanatory comments. Also extends the tests.
2023-10-17Update cargoWeihang Lo-0/+0
2023-10-17Don't pass `-stdlib=libc++` when building C files on macOSZalathar-4/+3
When using *Command Line Tools for Xcode* version 15.0, clang will warn about `argument unused during compilation: '-stdlib=libc++'` if this flag is present when compiling C files only (i.e. no C++ files). To avoid this warning, we can add the flag only to CXXFLAGS and not to CFLAGS.
2023-10-17Auto merge of #116518 - vita-rust:vita, r=workingjubileebors-104/+35
Updated libc and doc for Vita target Doc changes: - Updated Vita target readme. The recommended approach to build artifacts for the platform now is [cargo-vita](https://crates.io/crates/cargo-vita) which wraps all the convoluted steps previously described in a yaml for `cargo-make` - Updated maintainer list for Vita target. (`@ZetaNumbers` `@pheki` please agree to be added to the list, `@amg98` please let us know if you're still planning on actively maintaining target support) Code changes: - ~Updated libc for rust-lang/libc#3284 and rust-lang/libc#3366~ (Already merged in #116527) - In dupfd changed the flag same as for esp target, there is no CLOEXEC on Vita - Enabled `new_pair` since we've implemented `socketpair` in Vita newlib
2023-10-17Update to LLVM 17.0.3Nikita Popov-0/+0
2023-10-17[RFC 3127 - Trim Paths]: Add documentation for -Zremap-path-scopeUrgau-0/+24
2023-10-17[RFC 3127 - Trim Paths]: Fix building tools (rustdoc, clippy, ...)Urgau-3/+4
2023-10-17Updated libc and doc for Vita targetNikolay Arhipov-104/+35
2023-10-17bootstrap: fix warningsonur-ozkan-2/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-17rename bootstrap module utils/dylib_util->utils/dylibonur-ozkan-4/+4
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-17move bootstrap utils into bootstrap/src/utils moduleonur-ozkan-861/+297
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-17move bootstrap core implementation to bootstrap/src/core moduleonur-ozkan-189/+792
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-17improve bootstrap tests structureonur-ozkan-10/+10
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-17reorganize bootstrap bins and helper module utilizationsonur-ozkan-35/+19
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-17fmtThe Miri Conjob Bot-49/+14
2023-10-17Merge from rustcThe Miri Conjob Bot-923/+2019
2023-10-17Preparing for merge from rustcThe Miri Conjob Bot-1/+1
2023-10-16fix lint failures in clippyArthur Lafrance-16/+16
2023-10-17Auto merge of #116477 - nnethercote:tidy-alpha-deps, r=wesleywiserbors-2/+2
Use tidy to enforce alphabetical dependency ordering I get annoyed when dependencies in `Cargo.toml` files are not in alphabetical order. The [style guide](https://github.com/rust-lang/rust/blob/master/src/doc/style-guide/src/cargo.md) agrees with me. There are ongoing efforts to provide linting/formatting of `Cargo.toml` files, e.g. https://github.com/rust-lang/rustfmt/pull/5240, https://crates.io/crates/cargo-toml-lint, and https://github.com/TimonPost/cargo-toml-format. But it's far from clear what's the right approach. So this PR does something very simple: it uses the order checking already present in tidy. This allows incremental application of ordering, starting right now, and avoiding the need for any kind of all-at-once conversion. If we do end up using some more comprehensive `Cargo.toml` linting/formatting solution in the future, the `tidy-alphabetical` lines will be easy to remove. r? `@wesleywiser`
2023-10-16Rollup merge of #116798 - GuillaumeGomez:rustdoc-gui-tester-cleanup, r=notriddleGuillaume Gomez-2/+7
Improve display of parallel jobs in rustdoc-gui tester script If no `-j` option is not passed to `x.py`, it would display `-1`, which isn't great. r? `@notriddle`
2023-10-16Stop trying to preserve pretty-printing.Camille GILLOT-17/+17
2023-10-16Auto merge of #116804 - matthiaskrgr:rollup-m2qm8ul, r=matthiaskrgrbors-8/+11
Rollup of 7 pull requests Successful merges: - #114157 (Enable triagebot no-merges check) - #116257 (Suggest trait bounds for used associated type on type param) - #116430 (vendoring in tarball sources) - #116709 (Update minifier version to 0.2.3) - #116786 (Update my mailmap entry) - #116790 (opt-dist: disable unused features for tabled crate) - #116802 (Remove `DefiningAnchor::Bubble` from opaque wf check) r? `@ghost` `@rustbot` modify labels: rollup
2023-10-16Elaborate comment.Camille GILLOT-0/+2
2023-10-16Update docs tooJeremy Fitzhardinge-6/+6
2023-10-16Motivate renumbering and avoid underflow.Camille GILLOT-3/+6
2023-10-16Improve display of parallel jobs in rustdoc-gui tester scriptGuillaume Gomez-2/+7
2023-10-16Rollup merge of #116790 - klensy:opt-dist-tabled-no-derive, r=KobzolMatthias Krüger-1/+1
opt-dist: disable unused features for tabled crate Features looks unused, so left only used ones. r? `@Kobzol`
2023-10-16Rollup merge of #116709 - GuillaumeGomez:update-minifier, r=notriddleMatthias Krüger-1/+1
Update minifier version to 0.2.3 Thanks for the fix `@notriddle` ! r? `@notriddle`
2023-10-16Rollup merge of #116430 - onur-ozkan:vendoring-in-tarball-sources, r=clubby789Matthias Krüger-6/+9
vendoring in tarball sources fixes #94782
2023-10-16Auto merge of #116731 - Alexendoo:hash-untracked-state, r=oli-obkbors-0/+2
Add `Config::hash_untracked_state` callback For context, I'm looking to use [late module passes](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/context/struct.LintStore.html#structfield.late_module_passes) in Clippy which unlike regular late passes run incrementally per module However we have a config file which can change between runs, we need changes to that to invalidate the `lint_mod` query. This PR adds a side channel for us to hash some extra state into `Options` in order to do that This does not make any changes to Clippy, I plan to do that in a PR to the Clippy repo along with some other required changes An alternative implementation would be to add a new query to track this state and override the `lint_mod` query in Clippy to first call that cc `@rust-lang/clippy`
2023-10-16Normalize alloc-id in tests.Camille GILLOT-0/+29
2023-10-16Auto merge of #116550 - nnethercote:rustc-features-more, r=Nilstriebbors-8/+8
Cleanup `rustc_features` some more The sequel to #116437. r? `@Nilstrieb`
2023-10-16Auto merge of #114330 - RalfJung:dagling-ptr-deref, r=oli-obkbors-295/+380
don't UB on dangling ptr deref, instead check inbounds on projections This implements https://github.com/rust-lang/reference/pull/1387 in Miri. See that PR for what the change is about. Detecting dangling references in `let x = &...;` is now done by validity checking only, so some tests need to have validity checking enabled. There is no longer inherently a "nodangle" check in evaluating the expression `&*ptr` (aside from the aliasing model). r? `@oli-obk` Based on: - https://github.com/rust-lang/reference/pull/1387 - https://github.com/rust-lang/rust/pull/115524
2023-10-16opt-dist: disable unused features for tabled crateklensy-1/+1
2023-10-16triagebot: re-enable merge commit checkRalf Jung-4/+3
2023-10-16Rename `ACTIVE_FEATURES` as `UNSTABLE_FEATURES`.Nicholas Nethercote-8/+8
It's a better name, and lets "active features" refer to the features that are active in a particular program, due to being declared or enabled by the edition. The commit also renames `Features::enabled` as `Features::active` to match this; I changed my mind and have decided that "active" is a little better thatn "enabled" for this, particularly because a number of pre-existing comments use "active" in this way. Finally, the commit renames `Status::Stable` as `Status::Accepted`, to match `ACCEPTED_FEATURES`.
2023-10-15Auto merge of #3118 - eduardosm:intrinsics-x86-sse41, r=RalfJungbors-0/+581
Implement `llvm.x86.sse41.*` intrinsics
2023-10-15Rollup merge of #116341 - Ayush1325:uefi-args, r=Mark-SimulacrumMatthias Krüger-0/+2
Implement sys::args for UEFI - Uses `EFI_LOADED_IMAGE_PROTOCOL`, which is implemented for all loaded images. Tested on qemu with OVMF cc ``@nicholasbishop`` cc ``@dvdhrm``
2023-10-15Implement `llvm.x86.sse41.*` intrinsicsEduardo Sánchez Muñoz-0/+581
2023-10-15separate bounds-check from alignment checkRalf Jung-24/+13
2023-10-15more precise error for 'based on misaligned pointer' caseRalf Jung-50/+55
2023-10-15place evaluation: require the original pointer to be aligned if an access ↵Ralf Jung-8/+55
happens
2023-10-15don't UB on dangling ptr deref, instead check inbounds on projectionsRalf Jung-220/+264
2023-10-15Implement args for UEFIAyush Singh-0/+2
- Uses `EFI_LOADED_IMAGE_PROTOCOL` - verify that cli args are valid UTF-16 - Update Docs Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
2023-10-15Fix podman detection in CI scriptsNilstrieb-1/+1
When docker-podman compat was set up in a way that causes "docker" to be the argv[0] of podman, the previous detection did not work. This was for example the case in the compat package from nixpkgs. This checks the output and should work everywhere.
2023-10-15Rollup merge of #116741 - mejrs:string_pat, r=fee1-deadMatthias Krüger-0/+45
Document `string_deref_patterns` feature Rendered: ![image](https://github.com/rust-lang/rust/assets/59372212/aa3ef9e7-080d-4979-a363-3c24fe299c00)
2023-10-15add x.py.zsh to tidy checkonur-ozkan-1/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-15optimize `GenerateCompletions::run`onur-ozkan-17/+18
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-15generate zsh autocompletion for xonur-ozkan-2/+756
Signed-off-by: onur-ozkan <work@onurozkan.dev>