about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-09-09detect when pthread_rwlock_t is movedKonstantinos Andrikopoulos-5/+68
For some implementations of pthreads, the address of pthread_rwlock_t (or its fields) is used to identify the lock. That means that if the contents of a pthread_rwlock_t are moved in memory, effectively a new lock object is created, which is completely independted from the original. Thus we want to detect when when such objects are moved and show an error.
2024-09-08bootstrap: handle worktrees in warn_old_master_branchbinarycat-25/+47
fixes #130111
2024-09-08Better testing infra for ratomlAli Bektas-103/+228
2024-09-08added support for GNU/Hurd on x86_64Samuel Thibault-3/+5
2024-09-08Automatically add semicolon when completing unit-returning functionsChayim Refael Friedman-40/+217
But provide a config to suppress that. I didn't check whether we are in statement expression position, because this is hard in completion (due to the natural incompleteness of source code when completion is invoked), and anyway using function returning unit as an argument to something seems... dubious.
2024-09-09Fix a link and create an implied internal link (#2051)Prashanth Mundkur-2/+3
2024-09-09link to additional LLVM update PRs (#2055)Tshepang Mbambo-0/+4
2024-09-09fix/improve rdg contributing howto (#2056)Tshepang Mbambo-9/+10
2024-09-08fixed the typo (#2058)Bilal Khan-1/+1
2024-09-08interpret: reset padding during validationRalf Jung-15/+249
2024-09-08interpret: reset provenance on typed copiesRalf Jung-3/+212
2024-09-08interpret: remove Readable trait, we can use Projectable insteadRalf Jung-4/+4
2024-09-08handle dry-run mode in `Config::get_builder_toml`onur-ozkan-0/+4
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-08use `Config::get_builder_toml` for ci-rustc config parsingonur-ozkan-5/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-08fix llvm ThinLTO behaviouronur-ozkan-2/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-08print incompatible options even if we don't downloadonur-ozkan-21/+20
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-08remove `check_ci_llvm` usageonur-ozkan-24/+0
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-08detect incompatible CI LLVM options more preciselyonur-ozkan-3/+140
Previously, the logic here was simply checking whether the option was set in `config.toml`. This approach was not manageable in our CI runners as we set so many options in config.toml. In reality, those values are not incompatible since they are usually the same value used to generate the CI llvm. Now, the new logic compares the configuration values with the values used to generate the CI llvm, so we get more precise results and make the process more manageable. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-08run-make-support: Add llvm-pdbutilFlorian Schmiderer-0/+24
2024-09-08fix typo maker -> marker (thanks @lholten)jdonszelmann-1/+1
2024-09-08Auto merge of #130072 - ChrisDenton:split-ci, r=Kobzolbors-5/+22
Split x86_64-msvc-ext into two jobs This is an attempt to mitigate (but not resolve) the high failure rate of the x86_64-msvc-ext builder. The theory being that doing less makes it less likely to fail. But this may not work as having an extra job that may fail might be worse. try-job: x86_64-msvc-ext try-job: x86_64-msvc-ext2
2024-09-07rustdoc: use a single box to store Attributes and ItemKindMichael Howell-179/+195
2024-09-07rustdoc: use `LocalDefId` for inline stmtMichael Howell-20/+22
It's never a cross-crate DefId, so save space by not storing it.
2024-09-08Auto merge of #129313 - RalfJung:coroutine-niches, r=compiler-errorsbors-0/+66
Supress niches in coroutines to avoid aliasing violations As mentioned [here](https://github.com/rust-lang/rust/issues/63818#issuecomment-2264915918), using niches in fields of coroutines that are referenced by other fields is unsound: the discriminant accesses violate the aliasing requirements of the reference pointing to the relevant field. This issue causes [Miri errors in practice](https://github.com/rust-lang/miri/issues/3780). The "obvious" fix for this is to suppress niches in coroutines. That's what this PR does. However, we have several tests explicitly ensuring that we *do* use niches in coroutines. So I see two options: - We guard this behavior behind a `-Z` flag (that Miri will set by default). There is no known case of these aliasing violations causing miscompilations. But absence of evidence is not evidence of absence... - (What this PR does right now.) We temporarily adjust the coroutine layout logic and the associated tests until the proper fix lands. The "proper fix" here is to wrap fields that other fields can point to in [`UnsafePinned`](https://github.com/rust-lang/rust/issues/125735) and make `UnsafePinned` suppress niches; that would then still permit using niches of *other* fields (those that never get borrowed). However, I know that coroutine sizes are already a problem, so I am not sure if this temporary size regression is acceptable. `@compiler-errors` any opinion? Also who else should be Cc'd here?
2024-09-07Auto merge of #130091 - matthiaskrgr:rollup-kalu1cs, r=matthiaskrgrbors-223/+285
Rollup of 10 pull requests Successful merges: - #126452 (Implement raw lifetimes and labels (`'r#ident`)) - #129555 (stabilize const_float_bits_conv) - #129594 (explain the options bootstrap passes to curl) - #129677 (Don't build by-move body when async closure is tainted) - #129847 (Do not call query to compute coroutine layout for synthetic body of async closure) - #129869 (add a few more crashtests) - #130009 (rustdoc-search: allow trailing `Foo ->` arg search) - #130046 (str: make as_mut_ptr and as_bytes_mut unstably const) - #130047 (Win: Add dbghelp to the list of import libraries) - #130059 (Remove the unused `llvm-skip-rebuild` option from x.py) r? `@ghost` `@rustbot` modify labels: rollup
2024-09-07rfc#3662 changes under unstable flagsEtomicBomb-135/+402
* All new functionality is under unstable options * Adds `--merge=shared|none|finalize` flags * Adds `--parts-out-dir=<crate specific directory>` for `--merge=none` to write cross-crate info file for a single crate * Adds `--include-parts-dir=<previously specified directory>` for `--merge=finalize` to write cross-crate info files * update tests/run-make/rustdoc-default-output/rmake.rs golden
2024-09-07librustdoc::config: removed Input from OptionsEtomicBomb-35/+34
The `librustdoc::config::Options` struct no longer includes `rustc_session::config::Input`. This is so that Input can be optional. In rfc#3662, the crate input is not required if `--merge=finalize`. Replacing Input with Option<Input> was decided against. In most places that Input is needed, it should be statically known to not be optional (means fewer unwraps). We just want to have an Input-free Options in librustdoc::main_args, where we can run the write shared procedure.
2024-09-07Rollup merge of #130059 - gurry:130039-remove-skip-rebuild, r=KobzolMatthias Krüger-148/+19
Remove the unused `llvm-skip-rebuild` option from x.py Fixes #130039
2024-09-07Rollup merge of #130009 - notriddle:notriddle/trailing-arrow, ↵Matthias Krüger-5/+6
r=lolbinarycat,GuillaumeGomez rustdoc-search: allow trailing `Foo ->` arg search Fixes #129710
2024-09-07Rollup merge of #129594 - lolbinarycat:explain-curl-options, r=albertlarsan68Matthias Krüger-14/+38
explain the options bootstrap passes to curl also fixes a discrepancy where the rust side doesn't use -L docs are only on the rust side, since duplicated prose has a tendancy to get out-of-sync, and also because there are talks of removing the python script all together eventually.
2024-09-07Rollup merge of #129555 - RalfJung:const_float_bits_conv, r=dtolnayMatthias Krüger-46/+186
stabilize const_float_bits_conv This stabilizes `const_float_bits_conv`, and thus fixes https://github.com/rust-lang/rust/issues/72447. With https://github.com/rust-lang/rust/pull/128596 having landed, this is entirely a libs-only question now. ```rust impl f32 { pub const fn to_bits(self) -> u32; pub const fn from_bits(v: u32) -> Self; pub const fn to_be_bytes(self) -> [u8; 4]; pub const fn to_le_bytes(self) -> [u8; 4] pub const fn to_ne_bytes(self) -> [u8; 4]; pub const fn from_be_bytes(bytes: [u8; 4]) -> Self; pub const fn from_le_bytes(bytes: [u8; 4]) -> Self; pub const fn from_ne_bytes(bytes: [u8; 4]) -> Self; } impl f64 { pub const fn to_bits(self) -> u64; pub const fn from_bits(v: u64) -> Self; pub const fn to_be_bytes(self) -> [u8; 8]; pub const fn to_le_bytes(self) -> [u8; 8] pub const fn to_ne_bytes(self) -> [u8; 8]; pub const fn from_be_bytes(bytes: [u8; 8]) -> Self; pub const fn from_le_bytes(bytes: [u8; 8]) -> Self; pub const fn from_ne_bytes(bytes: [u8; 8]) -> Self; } ```` Cc `@rust-lang/wg-const-eval` `@rust-lang/libs-api`
2024-09-07Rollup merge of #126452 - compiler-errors:raw-lifetimes, r=spastorinoMatthias Krüger-10/+36
Implement raw lifetimes and labels (`'r#ident`) This PR does two things: 1. Reserve lifetime prefixes, e.g. `'prefix#lt` in edition 2021. 2. Implements raw lifetimes, e.g. `'r#async` in edition 2021. This PR additionally extends the `keyword_idents_2024` lint to also check lifetimes. cc `@traviscross` r? parser
2024-09-07Auto merge of #129941 - BoxyUwU:bump-boostrap, r=albertlarsan68bors-449/+450
Bump boostrap compiler to new beta Accidentally left some comments on the update cfgs commit directly xd
2024-09-07Renamed variable and fixed comments referring to renamed FileDescriptorDeSevilla-8/+8
2024-09-07Fix bash syntaxChris Denton-1/+1
2024-09-07Fix checktools.sh non-msvc buildsChris Denton-6/+7
2024-09-07Split x86_64-msvc-ext into two jobsChris Denton-5/+21
2024-09-07Generate scraped examples buttons in JSGuillaume Gomez-38/+44
2024-09-07Auto merge of #128871 - onur-ozkan:128180, r=Kobzolbors-10/+32
bypass linker configuration and cross target check for specific commands Avoids configuring the linker and checking cross-target-specific tools unless necessary. Resolves #128180 cc `@ChrisDenton`
2024-09-07Test codegen when setting deployment targetMads Marquart-2/+19
2024-09-07Remove unused option from x.pyGurinder Singh-148/+19
2024-09-06Auto merge of #128776 - Bryanskiy:deep-reject-ctxt, r=lcnrbors-2/+2
Use `DeepRejectCtxt` to quickly reject `ParamEnv` candidates The description is on the [zulip thread](https://rust-lang.zulipchat.com/#narrow/stream/144729-t-types/topic/.5Basking.20for.20help.5D.20.60DeepRejectCtxt.60.20for.20param.20env.20candidates) r? `@lcnr`
2024-09-06Fix enabling wasm-component-ld to match other toolsAlex Crichton-42/+17
It was [pointed out recently][comment] that enabling `wasm-component-ld` as a host tool is different from other host tools. This commit refactors the logic to match by deduplicating selection of when to build other tools and then using the same logic for `wasm-component-ld`. [comment]: https://github.com/rust-lang/rust/pull/127866#issuecomment-2333434720
2024-09-06Fix a typo in the wasm-component-ld READMEAlex Crichton-2/+2
2024-09-06Make `download-ci-llvm = true` check if CI llvm is availableUrgau-2/+9
and make it the default for the compiler profile, as to prevent unnecessarily checking out `src/llvm-project` with `"if-unchanged"`.
2024-09-06Fix toolsMichael Goulet-9/+11
2024-09-06Fix toolsMichael Goulet-10/+36
2024-09-06improve query system documentation (#2041)Jonathan Dönszelmann-4/+20
* improve query system documentation * fix typo messages => message * Update src/queries/incremental-compilation-in-detail.md Co-authored-by: lcnr <rust@lcnr.de> --------- Co-authored-by: lcnr <rust@lcnr.de>
2024-09-06add section on overlap checks (#2042)Jonathan Dönszelmann-2/+100
* add section on overlap checks * fix some typos * merge piece on overlap checks with docs about coherence (based on review comments) * fix comments after discussion
2024-09-06Run `download_prerequisites` before running gcc `configure`Guillaume Gomez-0/+1