Tshepang Mbambo
52616fa902
Merge pull request #2344 from rust-lang/tshepang-patch-1
...
readme: be copy-paste friendly
2025-04-19 13:09:15 +02:00
Tshepang Mbambo
311ef44dca
readme: be copy-paste friendly
2025-04-19 13:08:43 +02:00
Manuel Drehwald
9e2e6d71b3
Merge pull request #2340 from rust-lang/autodiff-build-instr
...
upstream autodiff build instructions
2025-04-17 20:54:12 -04:00
Manuel Drehwald
834dbf565c
upstream autodiff build instructions
2025-04-17 20:52:07 -04:00
许杰友 Jieyou Xu (Joe)
35a3c3bfd5
Merge pull request #2339 from rust-lang/autodiff-docs
2025-04-17 14:03:30 +08:00
Manuel Drehwald
1236dcb9ce
add a first version of autodiff docs
2025-04-17 14:01:05 +08:00
Jakub Beránek
a9bcdb0ca1
Merge pull request #2337 from xizheyin/sync-code
...
Remind to update dev branch while behind too many commits
2025-04-16 07:36:00 +02:00
xizheyin
855ecf9a96
Remind to update dev branch while behind too many commits
...
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-04-16 13:09:29 +08:00
Tshepang Mbambo
97be6a6131
Merge pull request #2333 from rust-lang/convetions-chapt-cleaning
...
Coding conventions chapter cleaning
2025-04-14 08:43:05 +02:00
Tshepang Mbambo
9e99fc3a73
clean "Coding conventions" chapter
...
- use correct code block markers
- add missing title
- rustfmt can now use edition setting in its config
... and this is set in Rust repo
- reduce visual noise
- needless repetition
- convention is to start sentence with upper case
- sembr
- whitespace
- semi-heading not adding much value
- fix grammar
2025-04-14 08:41:22 +02:00
许杰友 Jieyou Xu (Joe)
b3b89b6854
Merge pull request #2334 from rust-lang/consistency
2025-04-13 23:38:27 +08:00
许杰友 Jieyou Xu (Joe)
38f06e3701
Merge pull request #2321 from jieyouxu/ui-lint-allows
2025-04-13 23:36:30 +08:00
Jieyou Xu
8c378f7990
tests: document -A {unused,internal_features} ui test mode presets
2025-04-13 23:34:24 +08:00
Urgau
de1dfd37b7
Merge pull request #2335 from Urgau/triagebot-feat-1
...
Enable `[canonicalize-issue-links]` and `[no-mentions]` in triagebot.toml
2025-04-12 20:48:38 +02:00
Urgau
40bfc14c7d
Enable [canonicalize-issue-links] and [no-mentions] in triagebot.toml
2025-04-12 18:24:59 +02:00
Tshepang Mbambo
2af7ec32be
use consistent title capitalization
2025-04-12 13:01:16 +02:00
Tshepang Mbambo
17f72ff668
Merge pull request #2331 from rust-lang/tshepang-patch-6
...
fix path
2025-04-12 10:43:27 +02:00
Tshepang Mbambo
667aa2e952
fix path
2025-04-12 10:41:48 +02:00
Tshepang Mbambo
f79a89da92
Merge pull request #2330 from rust-lang/tshepang-patch-5
...
date-check rdg contribution section
2025-04-12 10:28:49 +02:00
Tshepang Mbambo
e33a6d6f60
date-check rdg contribution section
2025-04-12 10:28:15 +02:00
许杰友 Jieyou Xu (Joe)
14ea903d4d
Merge pull request #2327 from rust-lang/tshepang-patch-1
2025-04-12 16:25:17 +08:00
Tshepang Mbambo
208e421ed3
Merge pull request #2329 from rust-lang/tshepang-patch-4
...
add missing word
2025-04-12 10:25:07 +02:00
许杰友 Jieyou Xu (Joe)
af4419a32b
Merge pull request #2328 from rust-lang/tshepang-patch-3
2025-04-12 16:25:00 +08:00
Tshepang Mbambo
7ba53b7b75
add missing word
2025-04-12 10:24:31 +02:00
Tshepang Mbambo
770a6fcb48
remove implied text
...
"how much to trust" implies the opposite
2025-04-12 10:21:10 +02:00
Tshepang Mbambo
3ae1c9df5b
use more simple language
...
Not obvious what "sort by" means
2025-04-12 09:39:13 +02:00
Tshepang Mbambo
1a20e2193e
Merge pull request #2326 from rust-lang/tshepang-patch-3
...
ease copy-paste
2025-04-12 06:15:10 +02:00
Tshepang Mbambo
e0a2250f20
ease copy-paste
2025-04-12 06:14:37 +02:00
Tshepang Mbambo
46df4576c5
Merge pull request #2325 from freyacodes/crater-link-fix
...
Update "crater" link to actually point to crater.md
2025-04-12 05:30:29 +02:00
Freya Arbjerg
c5e23697c0
Update "crater" link to actually point to crater.md
2025-04-12 00:05:26 +02:00
Tshepang Mbambo
e6eb98f8a3
Merge pull request #2320 from smanilov/patch-1
...
Update table of contents in about-this-guide.md
2025-04-11 18:43:11 +02:00
Stan Manilov
b2fce61869
Update table of contents in about-this-guide.md
...
1. added two new parts: Bootstrapping and Supporting Infrastructure;
2. touched up names of pre-existing parts, to match actual names in sidebar;
3. syntactic nits (start description of Analysis with a capital letter); and
4. make numbered list use only 1.
Co-authored-by: Tshepang Mbambo <tshepang@gmail.com>
2025-04-11 16:57:44 +03:00
Tshepang Mbambo
5806cb565d
Merge pull request #2324 from smanilov/patch-3
...
Fix link to rustc_* TEST attributes in ui.md
2025-04-11 12:08:56 +02:00
Stan Manilov
c285fe7256
Fix link to rustc_* TEST attributes in ui.md
2025-04-11 12:12:46 +03:00
许杰友 Jieyou Xu (Joe)
e6b1fe4af2
Merge pull request #2318 from rust-lang/tshepang-patch-3
...
improve flow
2025-04-07 13:00:41 +08:00
Tshepang Mbambo
eb676fd2da
improve flow
2025-04-07 06:42:37 +02:00
许杰友 Jieyou Xu (Joe)
30fb3d9da3
Merge pull request #2291 from rust-lang/rustc-pull
...
Rustc pull update
2025-04-07 12:37:32 +08:00
The rustc-dev-guide Cronjob Bot
5a28e1e8de
Merge from rustc
2025-04-07 04:12:22 +00:00
The rustc-dev-guide Cronjob Bot
f74e85e2c2
Preparing for merge from rustc
2025-04-07 04:06:33 +00:00
bors
25a615bf82
Auto merge of #138951 - jwnrt:alloc-raw-vec-strict-prov, r=Noratrieb
...
Replace last `usize` -> `ptr` transmute in `alloc` with strict provenance API
This replaces the `usize -> ptr` transmute in `RawVecInner::new_in` with a strict provenance API (`NonNull::without_provenance`).
The API is changed to take an `Alignment` which encodes the non-null constraint needed for `Unique` and allows us to do the construction safely.
Two internal-only APIs were added to let us avoid UB-checking in this hot code: `Layout::alignment` to get the `Alignment` type directly rather than as a `usize`, and `Unique::from_non_null` to create `Unique` in const context without a transmute.
2025-04-06 23:07:48 +00:00
bors
2fa8b11f09
Auto merge of #136077 - rust-lang:cargo_update, r=clubby789
...
Weekly `cargo update`
Automation to keep dependencies in `Cargo.lock` current.
The following is the output from `cargo update`:
```txt
compiler & tools dependencies:
Locking 11 packages to latest compatible versions
Updating blake3 v1.8.0 -> v1.8.1
Updating ctrlc v3.4.5 -> v3.4.6
Updating env_logger v0.11.7 -> v0.11.8
Updating errno v0.3.10 -> v0.3.11
Updating flate2 v1.1.0 -> v1.1.1
Updating indexmap v2.8.0 -> v2.9.0
Updating miniz_oxide v0.8.5 -> v0.8.7
Updating openssl-sys v0.9.106 -> v0.9.107
Updating redox_syscall v0.5.10 -> v0.5.11
Updating smallvec v1.14.0 -> v1.15.0
Updating tokio v1.44.1 -> v1.44.2
note: pass `--verbose` to see 40 unchanged dependencies behind latest
library dependencies:
Locking 1 package to latest compatible version
Updating miniz_oxide v0.8.5 -> v0.8.7
note: pass `--verbose` to see 4 unchanged dependencies behind latest
rustbook dependencies:
Locking 30 packages to latest compatible versions
Updating cc v1.2.17 -> v1.2.18
Updating clap v4.5.32 -> v4.5.35
Updating clap_builder v4.5.32 -> v4.5.35
Updating darling v0.20.10 -> v0.20.11
Updating darling_core v0.20.10 -> v0.20.11
Updating darling_macro v0.20.10 -> v0.20.11
Updating env_logger v0.11.7 -> v0.11.8
Updating errno v0.3.10 -> v0.3.11
Updating flate2 v1.1.0 -> v1.1.1
Updating iana-time-zone v0.1.61 -> v0.1.63
Updating icu_locid_transform_data v1.5.0 -> v1.5.1
Updating icu_normalizer_data v1.5.0 -> v1.5.1
Updating icu_properties_data v1.5.0 -> v1.5.1
Updating indexmap v2.8.0 -> v2.9.0
Updating log v0.4.26 -> v0.4.27
Updating miniz_oxide v0.8.5 -> v0.8.7
Updating once_cell v1.21.1 -> v1.21.3
Updating pest v2.7.15 -> v2.8.0
Updating pest_derive v2.7.15 -> v2.8.0
Updating pest_generator v2.7.15 -> v2.8.0
Updating pest_meta v2.7.15 -> v2.8.0
Updating redox_syscall v0.5.10 -> v0.5.11
Updating rustix v1.0.3 -> v1.0.5
Updating smallvec v1.14.0 -> v1.15.0
Updating string_cache v0.8.8 -> v0.8.9
Updating windows-core v0.52.0 -> v0.61.0
Adding windows-implement v0.60.0
Adding windows-interface v0.59.1
Adding windows-result v0.3.2
Adding windows-strings v0.4.0
```
2025-04-06 19:57:47 +00:00
bors
fd4dc18e68
Auto merge of #139452 - GuillaumeGomez:rollup-u9edkjo, r=GuillaumeGomez
...
Rollup of 6 pull requests
Successful merges:
- #138562 (Optimize slice {Chunks,Windows}::nth)
- #138876 (Trusty: Implement `write_vectored` for stdio )
- #139072 (Add `slice::align_to_uninit_mut`)
- #139367 (Add `*_value` methods to proc_macro lib)
- #139391 (Check if merged attributes list is empty in expr)
- #139414 (Fix typo in `RawList`'s documentation)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-04-06 16:46:30 +00:00
Guillaume Gomez
b3e051aced
Rollup merge of #139414 - Adamkob12:fix_typo_raw_list, r=Nadrieril
...
Fix typo in `RawList`'s documentation
2025-04-06 18:08:11 +02:00
Guillaume Gomez
b1d67b2492
Rollup merge of #139391 - TaKO8Ki:check-if-merged-attrs-list-is-empty, r=jdonszelmann
...
Check if merged attributes list is empty in expr
Fixes #139373
In the example code, an [`UnrecognizedReprHint`](6b5ccfc87f/compiler/rustc_attr_parsing/src/attributes/repr.rs (L155) ) error is output, and the list of merged attributes becomes empty. This causes a [panic](6b5ccfc87f/compiler/rustc_ast_lowering/src/lib.rs (L618) ) to occur. So, it's necessary to check if merged attributes list is empty as other functions do.
ref: 6b5ccfc87f/compiler/rustc_ast_lowering/src/lib.rs (L896)
2025-04-06 18:08:11 +02:00
Guillaume Gomez
ed81e347f1
Rollup merge of #139367 - GuillaumeGomez:proc-macro-values, r=Urgau
...
Add `*_value` methods to proc_macro lib
This is the (re-)implementation of https://github.com/rust-lang/libs-team/issues/459 .
It allows to get the actual value (unescaped) of the different string literals.
It was originally done in https://github.com/rust-lang/rust/pull/136355 but it broke the artifacts build so we decided to move the crate to crates.io to go around this limitation.
Part of https://github.com/rust-lang/rust/issues/136652 .
Considering this is a copy-paste of the originally approved PR, no need to go through the whole process again. \o/
r? `@Urgau`
2025-04-06 18:08:10 +02:00
Guillaume Gomez
d1da78b201
Rollup merge of #139072 - nickkuk:align_to_uninit_mut, r=Mark-Simulacrum
...
Add `slice::align_to_uninit_mut`
Add new `slice::align_to_uninit_mut` method.
Tracking issue: https://github.com/rust-lang/rust/issues/139062
ACP: https://github.com/rust-lang/libs-team/issues/564
2025-04-06 18:08:10 +02:00
Guillaume Gomez
962fa98eeb
Rollup merge of #138876 - thaliaarchi:trusty-stdio, r=Noratrieb
...
Trusty: Implement `write_vectored` for stdio
Currently, `write` for stdout and stderr on Trusty is implemented with the semantics of `write_all`. Instead, call the underlying syscall only once in `write` and use the default implementation of `write_all` like other platforms. Also, implement `write_vectored` by adding support for `IoSlice`.
Refactor stdin to reuse the unsupported type like https://github.com/rust-lang/rust/pull/136769 .
It requires #138875 to fix the build for Trusty, though they do not conflict and can merge in either order.
cc `@randomPoison`
2025-04-06 18:08:09 +02:00
Guillaume Gomez
7bd89b90e8
Rollup merge of #138562 - kornelski:nth-panic, r=Noratrieb
...
Optimize slice {Chunks,Windows}::nth
I've noticed that the `nth` functions on slice iters had non-optimized-out bounds checks.
The new implementation even generates branchless code.
2025-04-06 18:08:08 +02:00
bors
175dcc7773
Auto merge of #139439 - weihanglo:update-cargo, r=weihanglo
...
Update cargo
17 commits in a6c604d1b8a2f2a8ff1f3ba6092f9fda42f4b7e9..0e93c5bf6a1d5ee7bc2af63d1afb16cd28793601
2025-03-26 18:11:00 +0000 to 2025-04-05 00:00:24 +0000
- chore(deps): bump openssl from 0.10.71 to 0.10.72 (rust-lang/cargo#15394 )
- chore(ci): restore cargo-util semver check (rust-lang/cargo#15389 )
- docs(changelog): polish changelog items (rust-lang/cargo#15379 )
- chore(deps): update msrv (1 version) to v1.86 (rust-lang/cargo#15381 )
- chore: add aarch64 linux runner (rust-lang/cargo#15077 )
- Added `build_directory` field to cargo metadata output (rust-lang/cargo#15377 )
- chore(deps): update rust crate rusqlite to 0.34.0 (rust-lang/cargo#15373 )
- Prevent undeclared public network access (rust-lang/cargo#15368 )
- rename the `author` field to be `authors` in book.toml (rust-lang/cargo#15362 )
- move modules from kebab-case to snake_case (rust-lang/cargo#14439 )
- chore: bump to 0.89.0; update changelog (rust-lang/cargo#15372 )
- docs(unstable): update `-Zrustdoc-depinfo` tracking issue link (rust-lang/cargo#15371 )
- fix(tree): Make output more deterministic (rust-lang/cargo#15369 )
- feat: rustdoc depinfo rebuild detection via -Zrustdoc-depinfo (rust-lang/cargo#15359 )
- Rename the gc config table (rust-lang/cargo#15367 )
- Revert "Temporarily ignore cargo_test_doctest_xcompile_ignores" (rust-lang/cargo#15357 )
- Don't canonicalize executable path in `cargo_exe` (rust-lang/cargo#15355 )
r? ghost
2025-04-06 13:23:48 +00:00
Takayuki Maeda
1ec36e12e8
Merge pull request #2317 from kxxt/patch-1
...
Fix deadlink in libs-and-metadata.md
2025-04-06 21:43:27 +09:00