about summary refs log tree commit diff
path: root/library
AgeCommit message (Collapse)AuthorLines
2025-03-04atomic: clarify that failing conditional RMW operations are not 'writes'Ralf Jung-2/+3
2025-03-04Fix some typosfuyangpengqi-1/+1
Signed-off-by: fuyangpengqi <995764973@qq.com>
2025-03-04exit: document interaction with CRalf Jung-4/+32
2025-03-04Auto merge of #137959 - matthiaskrgr:rollup-62vjvwr, r=matthiaskrgrbors-1/+1
Rollup of 12 pull requests Successful merges: - #135767 (Future incompatibility warning `unsupported_fn_ptr_calling_conventions`: Also warn in dependencies) - #137852 (Remove layouting dead code for non-array SIMD types.) - #137863 (Fix pretty printing of unsafe binders) - #137882 (do not build additional stage on compiler paths) - #137894 (Revert "store ScalarPair via memset when one side is undef and the other side can be memset") - #137902 (Make `ast::TokenKind` more like `lexer::TokenKind`) - #137921 (Subtree update of `rust-analyzer`) - #137922 (A few cleanups after the removal of `cfg(not(parallel))`) - #137939 (fix order on shl impl) - #137946 (Fix docker run-local docs) - #137955 (Always allow rustdoc-json tests to contain long lines) - #137958 (triagebot.toml: Don't label `test/rustdoc-json` as A-rustdoc-search) r? `@ghost` `@rustbot` modify labels: rollup
2025-03-03make _mm256_zero{upper,all} safeRalf Jung-4/+4
2025-03-03add `vec_find_any_eq_or_0_idx_cc` and `vec_find_any_ne_or_0_idx_cc`Folkert de Vries-187/+260
2025-03-03add `vec_find_any_eq_or_0_idx` and `vec_find_any_ne_or_0_idx`Folkert de Vries-38/+146
2025-03-03add `vec_find_any_eq_cc` and `vec_find_any_ne_cc`Folkert de Vries-0/+181
2025-03-03add `vec_find_any_eq_idx` and `vec_find_any_ne_idx`Folkert de Vries-0/+95
2025-03-03add `vec_find_any_eq` and `vec_find_any_ne`Folkert de Vries-0/+119
2025-03-03add `vec_splat` and friendsFolkert de Vries-0/+149
2025-03-03add `vec_sqrt`Folkert de Vries-0/+26
2025-03-03add `vec_nabs`Folkert de Vries-2/+41
2025-03-03add `vec_subc_u128`, `vec_sube_u128`, `vec_subec_u128`, `vec_sub_u128`Folkert de Vries-0/+112
and `vec_subc`
2025-03-03add `vec_sum2`, `vec_sum4` and `vec_sum_u128`Folkert de Vries-0/+132
2025-03-03add `vec_perm`Folkert de Vries-0/+139
2025-03-03add `vec_genmask` and `vec_genmasks`Folkert de Vries-0/+109
2025-03-03pull out `ShuffleMask`Folkert de Vries-51/+61
2025-03-03add `vec_mergel` and `vec_mergeh`Folkert de Vries-0/+142
2025-03-03add `vec_revb`Folkert de Vries-0/+63
2025-03-03add `vec_reve`Folkert de Vries-0/+102
2025-03-03add `vec_rl_mask`Folkert de Vries-0/+85
2025-03-03add `vec_rli`Folkert de Vries-1/+70
2025-03-03add vector shift by byteFolkert de Vries-0/+86
2025-03-03implement rotate leftFolkert de Vries-0/+45
2025-03-03implement standard bitshiftsFolkert de Vries-0/+100
2025-03-03implement the long bitshiftsFolkert de Vries-2/+103
2025-03-03powerpc: use `llvm.fshl` for `vec_rl`Folkert de Vries-16/+45
2025-03-03use the `simd_fma` intrinsic for `vec_madd`Folkert de Vries-5/+3
2025-03-03wasm: update for rintf intrinsic renameRalf Jung-2/+2
2025-03-03fix compilation on armebv7r-none-eabiusamoi-1429/+1748
2025-03-03stabilize const_cellRalf Jung-5/+5
2025-03-03Rollup merge of #137054 - jhpratt:phantom-variance, r=Mark-SimulacrumMatthias Krüger-0/+12
Make phantom variance markers transparent
2025-03-03fix order on shl implSpeedy_Lex-1/+1
this doesn't fix any bugs, it just looks more consistent with the other impl's
2025-03-02Rollup merge of #137873 - tgross35:disable-f16-without-neon, r=workingjubileeMatthias Krüger-0/+7
Disable `f16` on Aarch64 without `neon` LLVM has crashes at some `half` operations when built with assertions enabled if fp-armv8 is not available [1]. Things seem to usually work, but we are reaching LLVM undefined behavior so this needs to be disabled. [1]: https://github.com/llvm/llvm-project/issues/129394
2025-03-02Rollup merge of #137871 - pitaj:rangebounds-is_empty-intersect, r=scottmcmMatthias Krüger-1/+1
fix `RangeBounds::is_empty` documentation One-sided ranges are never empty follow-up for https://github.com/rust-lang/rust/pull/137304#pullrequestreview-2646899461
2025-03-02Rollup merge of #137641 - kpreid:dealloc, r=AmanieuMatthias Krüger-2/+8
More precisely document `Global::deallocate()`'s safety. There is a subtlety which "other conditions must be upheld by the caller" does not capture: `GlobalAlloc`/`alloc::dealloc()` require that the provided layout will be *equal*, not just that it "fits", the layout used to allocate. This is always true here due to how `allocate()`, `grow()`, and `shrink()` are implemented (they never return a larger allocation than requested), but that is a non-local property of the implementation, so it should be documented explicitly. r? libs `@rustbot` label A-allocators
2025-03-02Rollup merge of #137375 - steffahn:clarify-read_line-comment, r=Mark-SimulacrumMatthias Krüger-1/+1
Minor internal comments fix for `BufRead::read_line` Just a little fix that came up while I was reading through this source code, and had to search for a few minutes to find out what was actually *meant* here.
2025-03-03uefi: helpers: Add DevicePathNode abstractionsAyush Singh-0/+179
- UEFI device path is a series of nodes layed out in a contiguous memory region. So it makes sense to use Iterator abstraction for modeling DevicePaths - This PR has been split off from #135368 for easier review. The allow dead_code will be removed in #135368 Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-03-02Document workings of successors more clearlyMarijn Schouten-5/+11
This is an attempt to fix #135087 together with https://github.com/rust-lang/rust/pull/135886, but I am not sure if I've succeeded in adding much clarity here, so don't be shy with your comments.
2025-03-02doc: clarify that consume can be called after BufReader::peekbinarycat-1/+5
2025-03-02dec2flt: Refactor the fast pathTrevor Gross-24/+23
This is just a bit of code cleanup to make use of returning early.
2025-03-02dec2flt: Refactor float traitsTrevor Gross-111/+264
A lot of the magic constants can be turned into expressions. This reduces some code duplication. Additionally, add traits to make these operations fully generic. This will make it easier to support `f16` and `f128`.
2025-03-02Remove outdated information from the readmeTrevor Gross-43/+5
2025-03-02dec2flt: Rename fields to be consistent with documented notationTrevor Gross-20/+24
2025-03-02dec2flt: Rename `Number` to `Decimal`Trevor Gross-22/+51
The previous commit renamed `Decimal` to `DecimalSeq`. Now, rename the type that represents a decimal floating point number to be `Decimal`. Additionally, add some tests for internal behavior.
2025-03-02dec2flt: Rename `Decimal` to `DecimalSeq`Trevor Gross-22/+70
This module currently contains two decimal types, `Decimal` and `Number`. These names don't provide a whole lot of insight into what exactly they are, and `Number` is actually the one that is more like an expected `Decimal` type. In accordance with this, rename the existing `Decimal` to `DecimalSeq`. This highlights that it contains a sequence of decimal digits, rather than representing a base-10 floating point (decimal) number. Additionally, add some tests to validate internal behavior.
2025-03-02dec2flt: Update documentation of existing methodsTrevor Gross-17/+35
Fix or elaborate existing float parsing documentation. This includes introducing a convention that should make naming more consistent.
2025-03-02float: Update some constants to `pub(crate)`Trevor Gross-6/+6
These constants can be useful outside of their current module. Make them `pub(crate)` to allow for this.
2025-03-01Disable `f16` on Aarch64 without `neon`Trevor Gross-0/+7
LLVM has crashes at some `half` operations when built with assertions enabled if fp-armv8 is not available [1]. Things seem to usually work, but we are reaching LLVM undefined behavior so this needs to be disabled. [1]: https://github.com/llvm/llvm-project/issues/129394