about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2023-12-04Option<CoroutineKind>Eric Holk-10/+24
2023-12-04Merge Async and Gen into CoroutineKindEric Holk-20/+228
2023-12-04Rollup merge of #118600 - GuillaumeGomez:fields-heading, r=notriddleGuillaume Gomez-1/+8
[rustdoc] Don't generate the "Fields" heading if there is no field displayed Fixes https://github.com/rust-lang/rust/issues/118195. If no field is displayed, we should not generate the `Fields` heading in enum struct variants. r? ``@notriddle``
2023-12-04Rollup merge of #118508 - notriddle:notriddle/fmt-newline, r=GuillaumeGomezGuillaume Gomez-8/+50
rustdoc: do not escape quotes in body text Escaping quote marks is only needed in attributes, not text. ```console $ du -hs doc-old/ doc-new/ 670M doc-old/ 669M doc-new/ ```
2023-12-04Auto merge of #118592 - lnicola:sync-from-ra, r=lnicolabors-170/+821
Subtree update of `rust-analyzer` r? `@ghost`
2023-12-04Update booksrustbot-0/+0
2023-12-04Auto merge of #118602 - TaKO8Ki:rollup-njcouns, r=TaKO8Kibors-0/+73
Rollup of 5 pull requests Successful merges: - #118495 (Restrict what symbols can be used in `#[diagnostic::on_unimplemented]` format strings) - #118540 (codegen, miri: fix computing the offset of an unsized field in a packed struct) - #118551 (more targeted errors when extern types end up in places they should not) - #118573 (rustc: Harmonize `DefKind` and `DefPathData`) - #118586 (Improve example in `slice::windows()` doc) r? `@ghost` `@rustbot` modify labels: rollup
2023-12-04Avoid adding compiler-used functions to `symbols.o`DianQK-0/+1
2023-12-04Rollup merge of #118540 - RalfJung:unsized-packed-offset, r=TaKO8KiTakayuki Maeda-0/+73
codegen, miri: fix computing the offset of an unsized field in a packed struct `#[repr(packed)]` strikes again. Fixes https://github.com/rust-lang/rust/issues/118537 Fixes https://github.com/rust-lang/miri/issues/3200 `@bjorn3` I assume cranelift needs the same fix.
2023-12-04Don't generate the "Fields" heading if there is no field displayedGuillaume Gomez-1/+8
2023-12-04Don't ask for a specific branch in cargotestLaurențiu Nicola-1/+1
2023-12-04Merge commit 'e402c494b7c7d94a37c6d789a216187aaf9ccd3e' into sync-from-raLaurențiu Nicola-170/+821
2023-12-04fix clippyRalf Jung-1/+2
2023-12-04fmtThe Miri Conjob Bot-10/+2
2023-12-04Merge from rustcThe Miri Conjob Bot-111/+223
2023-12-04Preparing for merge from rustcThe Miri Conjob Bot-1/+1
2023-12-04Auto merge of #116915 - bend-n:unwet, r=saethlinbors-21/+16
Add an assume that the index is inbounds to slice::get_unchecked Fixes #116878
2023-12-04use `assume(idx < self.len())` in `[T]::get_unchecked`bendn-21/+16
2023-12-03Auto merge of #117840 - RalfJung:miri-promise-align, r=cjgillotbors-96/+191
miri: support 'promising' alignment for symbolic alignment check Then use that ability in `slice::align_to`, so that even with `-Zmiri-symbolic-alignment-check`, it no longer has to return spuriously empty "middle" parts. Fixes https://github.com/rust-lang/miri/issues/3068
2023-12-03miri: support 'promising' alignment for symbolic alignment checkRalf Jung-96/+191
2023-12-03Rollup merge of #117869 - GuillaumeGomez:comment-highlighting-item-decl, ↵Matthias Krüger-8/+14
r=notriddle [rustdoc] Add highlighting for comments in items declaration Fixes #117555. So after the discussion in https://github.com/rust-lang/rust/pull/117643, the outcome was that having the comments in the item declaration at the same level (in term of color) as the rest of the code was actually a bit distracting and could be improved. The current highlighting color for comments is "lighter" than the rest and I think it fits perfectly to improve the current situation. With this, we now have different "levels" which makes it easier to read and filter out what we want when reading the items declaration. Here's a screenshot: ![image](https://github.com/rust-lang/rust/assets/3050060/dbd98029-e98b-4997-9a89-6b823eaac9a4) r? `@notriddle`
2023-12-03SIMD bitmasks: use 'round up to multiple of 8' rather than 'clamp to at least 8'Ralf Jung-13/+16
2023-12-03Auto merge of #113730 - belovdv:jobserver-init-check, r=petrochenkovbors-0/+8
Report errors in jobserver inherited through environment variables This pr attempts to catch situations, when jobserver exists, but is not being inherited. r? `@petrochenkov`
2023-12-03disable a test that currently fails on big-endianRalf Jung-5/+9
2023-12-03also test directly calling simd_select_bitmaskRalf Jung-4/+39
2023-12-03handle the array case consistently for simd_select_bitmask and simd_bitmaskRalf Jung-43/+45
also move the two next to each other
2023-12-03also test simd_select_bitmask on arrays for less than 8 elementsRalf Jung-1/+6
2023-12-03Fix miri script target dir and update doc linkJefffrey-3/+4
2023-12-03Auto merge of #118567 - RalfJung:miri, r=RalfJungbors-30/+105
Miri subtree update r? `@ghost`
2023-12-03compiler: replace cstr macro with c str literals in compiler and few other c ↵klensy-1/+0
str replacements
2023-12-03Parse a pattern with no armNadrieril-8/+17
2023-12-03Auto merge of #3204 - RalfJung:simd, r=RalfJungbors-5/+74
add new SIMD intrinsics
2023-12-03add simd_bswap and simd_bitreverseRalf Jung-0/+19
2023-12-03add simd_cttz and simd_ctlzRalf Jung-2/+27
2023-12-03simd_select_bitmask: support passing the mask as an arrayRalf Jung-3/+28
2023-12-03new trophy case entryRalf Jung-0/+1
2023-12-03Auto merge of #118546 - RalfJung:hashbrown, r=Amanieubors-0/+3
update hashbrown I had to also pull in an updated syn to make that work, and then cargo pulled in some more package updates. r? `@Amanieu`
2023-12-03codegen, miri: fix computing the offset of an unsized field in a packed structRalf Jung-0/+73
2023-12-03Auto merge of #118487 - RalfJung:exposed-provenance, r=thomccbors-7/+7
move exposed-provenance APIs into separate feature gate We have already stated explicitly for all the 'exposed' functions that > Using this method means that code is *not* following strict provenance rules. However, they were part of the same feature gate and still described as part of the strict provenance experiment. Unfortunately, their semantics are much less clear and certainly nowhere near stabilization, so in preparation for an attempt to stabilize the strict provenance APIs, I suggest we split the things related to "exposed" into their own feature gate. I also used this opportunity to better explain how Exposed Provenance fits into the larger plan here: this is *one possible candidate* for `as` semantics, but we don't know if it is actually viable, so we can't really promise that it is equivalent to `as`. If it works out we probably want to make `as` equivalent to the 'exposed' APIs; if it doesn't, we will remove them again and try to find some other semantics for `as`.
2023-12-03Merge from rustcThe Miri Conjob Bot-1184/+3668
2023-12-03Preparing for merge from rustcThe Miri Conjob Bot-1/+1
2023-12-02Update cargoWeihang Lo-0/+0
2023-12-02allow zerocopy licenseRalf Jung-0/+3
2023-12-02Auto merge of #118077 - calebzulawski:sync-portable-simd-2023-11-19, ↵bors-9/+7
r=workingjubilee Portable SIMD subtree update Syncs nightly to the latest changes from rust-lang/portable-simd r? `@rust-lang/libs`
2023-12-02Rollup merge of #118539 - RalfJung:packed-struct-tests, r=lqdMatthias Krüger-1/+1
move packed-struct tests into packed/ folder We already have a bunch of other tests named `packed/packed-struct*`, no reason to have these two tests be separate.
2023-12-02Rollup merge of #118528 - onur-ozkan:use-std-once-lock, r=clubby789Matthias Krüger-15/+14
replace `once_cell::sync::OnceCell` with std `OnceLock` > https://github.com/rust-lang/rust/blob/0919ad18381f6f4fcaddc809e786553e028bbde0/src/bootstrap/src/core/builder.rs#L28-L33 Partially resolves that.
2023-12-02move packed-struct tests into packed/ folderRalf Jung-1/+1
2023-12-02Auto merge of #118507 - flip1995:clippy-subtree-sync, r=matthiaskrgrbors-1174/+3660
Clippy subtree sync r? `@Manishearth`
2023-12-02replace `once_cell::sync::OnceCell` with std `OnceLock`onur-ozkan-15/+14
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-02Merge from rustcRalf Jung-120/+159