about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-01-11clean up code related to the rustdoc-js test suitebinarycat-6/+7
2025-01-11rustdoc: use import stability marker in displayMichael Howell-1/+20
2025-01-11allow rustdoc-js tests to be run at stage0binarycat-1/+4
this mirrors the behavior of rustdoc-js-std tests. previously this required COMPILETEST_FORCE_STAGE0.
2025-01-11Merge pull request #4134 from RalfJung/miri-script-raOli Scherer-9/+15
adjust the way we build miri-script in RA, to fix proc-macros
2025-01-11avoid issues due to MIRI_TEST_TARGET being set from the outsideRalf Jung-0/+4
2025-01-11adjust the way we build miri-script in RA, to fix proc-macrosRalf Jung-9/+11
2025-01-11re-add --disable-minification to rustdocbinarycat-2/+23
this also makes the rust.docs-minification option work as advertised in config.toml nothing fancy this time, this is intended to be perma-unstable. it's only really here for the benefit of rustdoc devs. mitegates https://github.com/rust-lang/rust/issues/135345
2025-01-11Supported fioclex for ioctl on macosgeetanshjuneja-0/+70
2025-01-11Rollup merge of #135205 - lqd:bitsets, r=Mark-SimulacrumMatthias Krüger-18/+18
Rename `BitSet` to `DenseBitSet` r? `@Mark-Simulacrum` as you requested this in https://github.com/rust-lang/rust/pull/134438#discussion_r1890659739 after such a confusion. This PR renames `BitSet` to `DenseBitSet` to make it less obvious as the go-to solution for bitmap needs, as well as make its representation (and positives/negatives) clearer. It also expands the comments there to hopefully make it clearer when it's not a good fit, with some alternative bitsets types. (This migrates the subtrees cg_gcc and clippy to use the new name in separate commits, for easier review by their respective owners, but they can obvs be squashed)
2025-01-11Rollup merge of #134030 - folkertdev:min-fn-align, r=workingjubileeMatthias Krüger-0/+24
add `-Zmin-function-alignment` tracking issue: https://github.com/rust-lang/rust/issues/82232 This PR adds the `-Zmin-function-alignment=<align>` flag, that specifies a minimum alignment for all* functions. ### Motivation This feature is requested by RfL [here](https://github.com/rust-lang/rust/issues/128830): > i.e. the equivalents of `-fmin-function-alignment` ([GCC](https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-fmin-function-alignment_003dn), Clang does not support it) / `-falign-functions` ([GCC](https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-falign-functions), [Clang](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang1-falign-functions)). > > For the Linux kernel, the behavior wanted is that of GCC's `-fmin-function-alignment` and Clang's `-falign-functions`, i.e. align all functions, including cold functions. > > There is [`feature(fn_align)`](https://github.com/rust-lang/rust/issues/82232), but we need to do it globally. ### Behavior The `fn_align` feature does not have an RFC. It was decided at the time that it would not be necessary, but maybe we feel differently about that now? In any case, here are the semantics of this flag: - `-Zmin-function-alignment=<align>` specifies the minimum alignment of all* functions - the `#[repr(align(<align>))]` attribute can be used to override the function alignment on a per-function basis: when `-Zmin-function-alignment` is specified, the attribute's value is only used when it is higher than the value passed to `-Zmin-function-alignment`. - the target may decide to use a higher value (e.g. on x86_64 the minimum that LLVM generates is 16) - The highest supported alignment in rust is `2^29`: I checked a bunch of targets, and they all emit the `.p2align 29` directive for targets that align functions at all (some GPU stuff does not have function alignment). *: Only with `build-std` would the minimum alignment also be applied to `std` functions. --- cc `@ojeda` r? `@workingjubilee` you were active on the tracking issue
2025-01-11Add CI workflow for performing rustc-pullJakub Beránek-0/+58
2025-01-11ci: Organise shared helper scriptsKajetan Puchalski-200/+41
Move shared helper scripts used by Docker builds under docker/scripts.
2025-01-11avoid nesting the user-defined main so deeply on the stackRalf Jung-33/+9
2025-01-11use a single large catch_unwind in lang_startRalf Jung-10/+34
2025-01-11Auto merge of #135292 - lqd:rustcperfup, r=kobzolbors-0/+0
bump `rustc-perf` submodule This updates the `rustc-perf` submodule to pull in the recent changes, in particular the error handling in https://github.com/rust-lang/rustc-perf/pull/2021 fixing the error we saw in a recent run. I think I did this correctly, submodules are so annoying. r? kobzol (opening as draft to do a perf run and check that nothing has changed indeed)
2025-01-11ci: added ci format to test_renderRoss Sullivan-3/+49
2025-01-11migrate `clippy` to the `DenseBitSet` nameRémy Rakic-18/+18
2025-01-11tidyWalnut-0/+2
2025-01-11add alternate inner type lookup for hashmap/set when template args missingWalnut-1/+27
2025-01-11Rollup merge of #135326 - onur-ozkan:target-specific-compiler-builtins, ↵Jacob Pratt-2/+27
r=jieyouxu support target specific `optimized-compiler-builtins` Makes it possible to control `optimized-compiler-builtins` for per target. This was raised in the [zulip discussion](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Building.20and.20packaging.20Rust.20with.20x86_64-unknown-uefi.20support/near/492765883) yesterday.
2025-01-11Rollup merge of #135301 - lolbinarycat:bootstrap-old-master-resurected, ↵Jacob Pratt-0/+3
r=onur-ozkan re-add a warning for old master branch, but with much simpler logic instead of calling into git or checking the modification time of files, simply print the warning if there is a very large number of "modified" files. also make the wording much softer, so false positives are less alarming. (warning was removed in https://github.com/rust-lang/rust/issues/134935)
2025-01-11Rollup merge of #134074 - GrigorenkoPV:bootstrap-io-error-more, r=jieyouxuJacob Pratt-4/+1
bootstrap: `std::io::ErrorKind::CrossesDevices` is finally stable
2025-01-11More robust sequence formatterWalnut-1/+8
2025-01-11Add bstr files to linkchecker since they have a Deref to sliceJosh Triplett-0/+23
The Deref brings in the documentation from slice, so it has the same issue as slice.
2025-01-10more robust tuple summaryWalnut-3/+13
2025-01-10add alternate inner type lookup for vec/string for missing template argsWalnut-7/+86
2025-01-10add MSVC str providersWalnut-35/+114
2025-01-10organize lldb_commandsWalnut-25/+50
2025-01-10add msvc enum providersWalnut-2/+179
2025-01-10never print the warning on CIbinarycat-1/+1
2025-01-10minor: Fix grammar in doc commentsWilfred Hughes-4/+4
"too" should be "to" here.
2025-01-10jsondoclint: Check that `Path` types exitst in `Crate::paths`.Alona Enraght-Moony-1/+102
2025-01-10rustdoc-json: Include items in stripped modules in `Crate::paths`.Alona Enraght-Moony-8/+15
2025-01-10jsondoclint: Support `//@ !has <path> <value>`.Alona Enraght-Moony-4/+23
This was removed for not being used [1], but now we need it. [1]: https://github.com/rust-lang/rust/pull/133478#discussion_r1874358362
2025-01-10Update cargoWeihang Lo-0/+0
2025-01-10add `-Zmin-function-alignment`Folkert de Vries-0/+24
2025-01-10Switched FreeBSD to pthread_setname_npYoh Deadfall-41/+44
2025-01-11Merge pull request #2205 from ehuss/ci-config许杰友 Jieyou Xu (Joe)-0/+15
2025-01-10Fix calculate-job-matrix.py linkEric Huss-2/+2
2025-01-10Document how to find the configuration used in CIEric Huss-0/+15
This documents how to determine which settings are used in CI, since I see this question come up regularly. We currently don't have a great way to answer the question, but at least there is something.
2025-01-10fix clippy warningRalf Jung-1/+1
2025-01-10disable threading tests on freebsd for nowRalf Jung-2/+2
2025-01-10Preparing for merge from rustcRalf Jung-1/+1
2025-01-10ci: Move dist-aarch64-linux to an aarch64 runnerKajetan Puchalski-43/+241
Move the dist-aarch64-linux CI job to an aarch64 runner instead of cross-compiling it from an x86 one. This will make it possible to perform optimisations such as LTO, PGO and BOLT later on.
2025-01-10Merge pull request #18907 from Veykril/push-uqlzpttmvurvLukas Wirth-2/+86
Implement `#[rust_analyzer::skip]` for bodies
2025-01-10Implement `#[rust_analyzer::skip]` for bodiesLukas Wirth-2/+86
2025-01-10Missing errorsjnyfah-11/+26
2025-01-10Re-implement rust string highlighting via tool attributeLukas Wirth-173/+386
2025-01-10Merge pull request #18904 from Veykril/push-yztnorquuyzwLukas Wirth-24/+134
Improve hover module path rendering
2025-01-10Implement implicit sized bound inlay hintsLukas Wirth-12/+192