about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-03-18rename 'invalidate' bench to something more clearRalf Jung-2/+3
2024-03-18add exposed-provenance example where we miss UBRalf Jung-0/+26
2024-03-18Rollup merge of #122657 - beetrees:option-env-tests, r=compiler-errors,NilstriebMatthias Krüger-3/+1
Move `option_env!` and `env!` tests to the `env-macro` directory This PR moves the `option_env!` tests to there own directory (`extoption_env`), matching the naming convention used by the tests for `env!` (which live in the `extenv` directory).
2024-03-17LLVM bitcode linker: use --cfg=parallell_compiler to avoid trashing the ↵Kjetil Kjeka-1/+73
cache of rustdoc
2024-03-17Move `option_env!` and `env!` tests to the `env-macro` directorybeetrees-3/+1
2024-03-18use `--cap-lints` only when deny and forbid rules are not specifiedonur-ozkan-2/+7
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-03-18pass ignored lints after manual onesonur-ozkan-1/+1
Previously, when passing lint rules manually using `x clippy ..`, ignored lints would override manual ones. This change corrects the order by passing ignored lints after the manual ones. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-03-18add unit test: `order_of_clippy_rules`onur-ozkan-5/+49
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-03-18reorder clippy rules to their original order before passing themonur-ozkan-6/+29
We need to keep the order of the given clippy lint rules before passing them. Since clap doesn't offer any useful interface for this purpose out of the box, we have to handle it manually. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-03-17Fix style errorsMichael Howell-2/+2
2024-03-17Use `pushd` and `popd`Josh Stone-2/+2
Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
2024-03-17Use the rust-lang/gcc repo directlyJosh Stone-1/+1
Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
2024-03-17MIRI tests to confirm it's typedScott McMurray-0/+78
2024-03-17ci: Build gccjit from a git archiveJosh Stone-7/+11
A full `git clone` of GCC includes quite a lot of history, and it's completely unnecessary for building it in CI. We can use a GitHub archive URL to get a simple tarball that is much faster to download. Also, the `gcc-build` directory can be removed after install to reduce the image size even further.
2024-03-17Rollup merge of #122636 - matthiaskrgr:compl3, r=compiler-errorsMatthias Krüger-4/+4
some minor code simplifications
2024-03-17Update the minimum external LLVM to 17Josh Stone-81/+15
2024-03-17Mark UEFI std support as WIPAyush Singh-3/+4
Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
2024-03-17Enable frame pointers for the libraryBen Kimock-0/+4
2024-03-17Print a backtrace in const eval if interruptedBen Kimock-15/+11
2024-03-17Auto merge of #122637 - matthiaskrgr:rollup-bczj5bp, r=matthiaskrgrbors-14/+66
Rollup of 3 pull requests Successful merges: - #121236 (Don't show suggestion if slice pattern is not top-level) - #121787 (run change tracker even when config parse fails) - #122633 (avoid unnecessary collect()) r? `@ghost` `@rustbot` modify labels: rollup
2024-03-17fetch submodule before checking llvm stamponur-ozkan-1/+1
Previously, we were checking the LLVM stamp before fetching the submodule which leads to not being able to compile llvm on submodule updates. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-03-17make 'invalidate' benchmark shorterRalf Jung-1/+1
2024-03-17Rollup merge of #121787 - onur-ozkan:improve-change-tracker, r=albertlarsan68Matthias Krüger-14/+66
run change tracker even when config parse fails Please note that we are currently validating the build configuration on two entry points (e.g., profile validation is handled on the python side), and change tracker system is handled on the rust side. Once #94829 is completed (scheduled for 2024), we will be able to handle this more effectively. Fixes #121756
2024-03-17some minor code simplificationsMatthias Krüger-4/+4
2024-03-17Auto merge of #122628 - lnicola:sync-from-ra, r=lnicolabors-1917/+3374
Subtree update of `rust-analyzer`
2024-03-17compiletest: Remove unneeded pub on get_lib_name()Martin Nordholts-1/+1
2024-03-17fix Zulip topic for PR-creation messageRalf Jung-1/+1
2024-03-17Merge commit '5ecace48f693afaa6adf8cb23086b651db3aec96' into sync-from-raLaurențiu Nicola-1917/+3374
2024-03-17Rollup merge of #122295 - Nadrieril:mir-opt-run-current-target, ↵Matthias Krüger-2/+4
r=Mark-Simulacrum mir-opt: always run tests for the current target Currently, `./x.py test tests/mir-opt` runs only the tests for the current target, and `./x.py test tests/mir-opt --bless` runs tests for a representative set of targets. That representative set does not include the current target however, which means `--bless` can succeed when tests fail without it. This PR ensures we run the current target always. Fixes https://github.com/rust-lang/rust/issues/122292 cc ``@RalfJung``
2024-03-17Rollup merge of #122248 - jieyouxu:rmake-sysroot, r=Mark-SimulacrumMatthias Krüger-30/+36
Respect stage0 sysroot when compiling rmake.rs with COMPILETEST_FORCE_STAGE0 Context: <https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/stage0.20compiletest.20broken>. > cg_clif uses `COMPILETEST_FORCE_STAGE0=1 ./x.py test --stage 0` for running the rustc test suite. With the introduction of rmake.rs this broke. `librun_make_support.rlib` is compiled using the bootstrap rustc wrapper which sets `--sysroot build/aarch64-unknown-linux-gnu/stage0-sysroot`, but then compiletest will compile `rmake.rs` using the sysroot of the bootstrap compiler causing it to not find the `libstd.rlib` against which `librun_make_support.rlib` is compiled. cc ``@bjorn3`` Fixes #122196.
2024-03-17Merge from rustcThe Miri Cronjob Bot-268/+383
2024-03-17Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-03-16rustdoc-search: shard the search result descriptionsMichael Howell-228/+427
The descriptions are, on almost all crates[^1], the majority of the size of the search index, even though they aren't really used for searching. This makes it relatively easy to separate them into their own files. This commit also bumps us to ES8. Out of the browsers we support, all of them support async functions according to caniuse. https://caniuse.com/async-functions [^1]: <https://microsoft.github.io/windows-docs-rs/>, a crate with 44MiB of pure names and no descriptions for them, is an outlier and should not be counted.
2024-03-17Auto merge of #122321 - majaha:mingw_ci_new, r=Mark-Simulacrumbors-10/+13
`mv` tools off the path instead of `rm -r`-ing them in `install-msys2.sh` This is a follow up patch to https://github.com/rust-lang/rust/pull/121182 r? `@Mark-Simulacrum`
2024-03-17Auto merge of #121885 - reitermarkus:generic-nonzero-inner, ↵bors-68/+50
r=oli-obk,wesleywiser Move generic `NonZero` `rustc_layout_scalar_valid_range_start` attribute to inner type. Tracking issue: https://github.com/rust-lang/rust/issues/120257 r? `@dtolnay`
2024-03-17Auto merge of #122607 - fmease:rollup-ozl1eeq, r=fmeasebors-0/+4
Rollup of 9 pull requests Successful merges: - #117918 (Add `wasm_c_abi` `future-incompat` lint) - #121545 (fix attribute validation on associated items in traits) - #121720 (Split refining_impl_trait lint into _reachable, _internal variants) - #122270 (fix `long-linker-command-lines` failure caused by `rust.rpath=false`) - #122564 (Delegation: fix ICE on duplicated associative items) - #122577 (Remove obsolete parameter `speculative` from `instantiate_poly_trait_ref`) - #122601 (Optimize `ptr::replace`) - #122604 (Mention jieyouxu for changes to compiletest, run-make tests and the run-make-support library) - #122605 (rustc-metadata: Store crate name in self-profile of metadata_register_crate) r? `@ghost` `@rustbot` modify labels: rollup
2024-03-16Note that type param is chosen by caller when suggesting return impl Trait许杰友 Jieyou Xu (Joe)-0/+1
2024-03-16Rollup merge of #121720 - tmandry:split-refining, r=compiler-errorsLeón Orell Valerian Liehr-0/+4
Split refining_impl_trait lint into _reachable, _internal variants As discussed in https://github.com/rust-lang/rust/issues/119535#issuecomment-1909352040: > We discussed this today in triage and developed a consensus to: > > * Add a separate lint against impls that refine a return type defined with RPITIT even when the trait is not crate public. > * Place that in a lint group along with the analogous crate public lint. > * Create an issue to solicit feedback on these lints (or perhaps two separate ones). > * Have the warnings displayed with each lint reference this issue in a similar manner to how we do that today with the required `Self: '0'` bound on GATs. > * Make a note to review this feedback on 2-3 release cycles. This points users to https://github.com/rust-lang/rust/issues/121718 to leave feedback.
2024-03-16Auto merge of #122594 - Mark-Simulacrum:bump-version, r=Mark-Simulacrumbors-1/+1
Bump to 1.79.0 r? `@Mark-Simulacrum`
2024-03-16Rollup merge of #122590 - ↵Chris Denton-63/+79
Nilstrieb:bootstrap-do-you-know-what-the-word-copy-means, r=Mark-Simulacrum bootstrap: Don't name things copy that are not copies The bootstrap copy methods don't actually copy, they just hard link. Simply lying about it being "copying" can be very confusing! (ask me how I know!). I'm not sure whether the name I chose is the ideal name, but it's definitely better than before.
2024-03-16Rollup merge of #122401 - ChrisDenton:check-tier1, r=Mark-SimulacrumChris Denton-0/+4
Check library crates for all tier 1 targets in PR CI Let's try checking all tier 1 targets. Shouldn't take much time. Not sure if this is the right place to put it or not but let's see if it works first.
2024-03-16Rollup merge of #122390 - ChrisDenton:bindgen, r=Mark-SimulacrumChris Denton-1/+1
Bump windows-bindgen to 0.55.0 windows-bindgen is the crate used to generate std's Windows API bindings. Not many changes for us, it's mostly just simplifying the generate code (e.g. no more `-> ()`). The one substantial change is some structs now use `i8` byte arrays instead of `u8`. However, this only impacts one test.
2024-03-16Rollup merge of #122372 - onur-ozkan:change-id-improvement, r=Mark-SimulacrumChris Denton-5/+15
prevent notifying the same changes more than once Prevents re-reporting of previously notified changes by using the .last-warned-change-id value for change detection. Resolves #122344
2024-03-16Rollup merge of #122323 - heiher:loongarch64-musl-root, r=Mark-SimulacrumChris Denton-0/+2
configure.py: add flag for loongarch64 musl-root
2024-03-16Bump to 1.79.0Mark Rousskov-1/+1
2024-03-16Auto merge of #122593 - ChrisDenton:windows-support-1, r=Nilstriebbors-6/+4
Remove Windows support note The note is redundant now that Windows 10 is the minimum supported in tier 1.
2024-03-16Remove Windows support noteChris Denton-6/+4
2024-03-16Remove double remove_fileNilstrieb-1/+0
2024-03-16bootstrap: Don't name things copy that are not copiesNilstrieb-62/+79
The bootstrap copy methods don't actually copy, they just hard link. Simply lying about it being "copying" can be very confusing! (ask me how I know!).
2024-03-16Auto merge of #119418 - aaupov:master, r=Kobzolbors-1/+3
[BOLT] Use CDSort and CDSplit CDSort and CDSplit are the most recent versions of function ordering and function splitting algorithms with some improvements over the previous baseline (ext-tsp and two-way splitting).