Commit Graph

3421 Commits

Author SHA1 Message Date
Tshepang Mbambo ac84606523 toolchain version does not need to be specified
- Rust backcompat removes the need to specify the version here
- Using these commands can result in a needless toolchain getting
  downloaded, like in the case where user only has Nightly installed
2025-04-19 13:34:13 +02:00
Tshepang Mbambo 1fdfd58142
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 1bc859ed76
readme: be copy-paste friendly 2025-04-19 13:08:43 +02:00
Manuel Drehwald 8e69daa139
Merge pull request #2340 from rust-lang/autodiff-build-instr
upstream autodiff build instructions
2025-04-17 20:54:12 -04:00
Manuel Drehwald 23c4b36751 upstream autodiff build instructions 2025-04-17 20:52:07 -04:00
许杰友 Jieyou Xu (Joe) b8d3c51b30
Merge pull request #2339 from rust-lang/autodiff-docs 2025-04-17 14:03:30 +08:00
Manuel Drehwald 5cedd19842
add a first version of autodiff docs 2025-04-17 14:01:05 +08:00
Jakub Beránek 01928b1abd
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 523f2a571a
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 85c796488d
Merge pull request #2333 from rust-lang/convetions-chapt-cleaning
Coding conventions chapter cleaning
2025-04-14 08:43:05 +02:00
Tshepang Mbambo 07d3c69637 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) 78a5c64129
Merge pull request #2334 from rust-lang/consistency 2025-04-13 23:38:27 +08:00
许杰友 Jieyou Xu (Joe) bfdad0b85b
Merge pull request #2321 from jieyouxu/ui-lint-allows 2025-04-13 23:36:30 +08:00
Jieyou Xu 79af744efe
tests: document `-A {unused,internal_features}` ui test mode presets 2025-04-13 23:34:24 +08:00
Urgau d852a384de
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 031d694d69
Enable [canonicalize-issue-links] and [no-mentions] in triagebot.toml 2025-04-12 18:24:59 +02:00
Tshepang Mbambo 4a71db13fa use consistent title capitalization 2025-04-12 13:01:16 +02:00
Tshepang Mbambo a4f63f36fc
Merge pull request #2331 from rust-lang/tshepang-patch-6
fix path
2025-04-12 10:43:27 +02:00
Tshepang Mbambo e4fab61c10
fix path 2025-04-12 10:41:48 +02:00
Tshepang Mbambo 2904f18294
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 a0a83bc7c8
date-check rdg contribution section 2025-04-12 10:28:15 +02:00
许杰友 Jieyou Xu (Joe) 72c9cc85cd
Merge pull request #2327 from rust-lang/tshepang-patch-1 2025-04-12 16:25:17 +08:00
Tshepang Mbambo d7794fb801
Merge pull request #2329 from rust-lang/tshepang-patch-4
add missing word
2025-04-12 10:25:07 +02:00
许杰友 Jieyou Xu (Joe) 27763b98c8
Merge pull request #2328 from rust-lang/tshepang-patch-3 2025-04-12 16:25:00 +08:00
Tshepang Mbambo 8721d56e32
add missing word 2025-04-12 10:24:31 +02:00
Tshepang Mbambo 962701f408
remove implied text
"how much to trust" implies the opposite
2025-04-12 10:21:10 +02:00
Tshepang Mbambo 5c08026fe2
use more simple language
Not obvious what "sort by" means
2025-04-12 09:39:13 +02:00
Tshepang Mbambo 758f3224f1
Merge pull request #2326 from rust-lang/tshepang-patch-3
ease copy-paste
2025-04-12 06:15:10 +02:00
Tshepang Mbambo 8d31603721
ease copy-paste 2025-04-12 06:14:37 +02:00
Tshepang Mbambo c45a3540ee
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 54b7da853a Update "crater" link to actually point to crater.md 2025-04-12 00:05:26 +02:00
Tshepang Mbambo 58cbfe4ea8
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 281f106cde 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 fae54100d2
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 ca410e88e4
Fix link to rustc_* TEST attributes in ui.md 2025-04-11 12:12:46 +03:00
许杰友 Jieyou Xu (Joe) cdc10f0a22
Merge pull request #2318 from rust-lang/tshepang-patch-3
improve flow
2025-04-07 13:00:41 +08:00
Tshepang Mbambo e76ab78d1d
improve flow 2025-04-07 06:42:37 +02:00
许杰友 Jieyou Xu (Joe) 5f6d843eef
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 216eb512fb Merge from rustc 2025-04-07 04:12:22 +00:00
The rustc-dev-guide Cronjob Bot e6458031c0 Preparing for merge from rustc 2025-04-07 04:06:33 +00:00
bors 372b40ba42 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
Takayuki Maeda ff6719eac2
Merge pull request #2317 from kxxt/patch-1
Fix deadlink in libs-and-metadata.md
2025-04-06 21:43:27 +09:00
Levi Zim 4188afe2e7
Fix deadlink in libs-and-metadata.md 2025-04-06 20:05:03 +08:00
bors 124fda2559 Auto merge of #139292 - compiler-errors:folder-experiment-7, r=lqd
Folder experiment: Micro-optimize RegionEraserVisitor

**NOTE:** This is one of a series of perf experiments that I've come up with while sick in bed. I'm assigning them to lqd b/c you're a good reviewer and you'll hopefully be awake when these experiments finish, lol.

r? lqd

The region eraser is very hot, so let's see if we can avoid erasing types (and visiting consts and preds that don't have region-ful types) unnecessarily.
2025-04-05 12:33:47 +00:00
bors 7678ec9428 Auto merge of #139281 - petrochenkov:ctxtdecod6, r=wesleywiser
hygiene: Avoid recursion in syntax context decoding

#139241 has two components
- Avoiding recursion during syntax context decoding
- Encoding/decoding only the non-redundant data, and recalculating the redundant data again during decoding

Both of these parts may influence compilation times, possibly in opposite directions.
So this PR contains only the first part to evaluate its effect in isolation.
2025-04-05 06:18:04 +00:00
bors 793fdc36e6 Auto merge of #138785 - lcnr:typing-mode-borrowck, r=compiler-errors,oli-obk
add `TypingMode::Borrowck`

Shares the first commit with #138499, doesn't really matter which PR to land first 😊 😁

Introduces `TypingMode::Borrowck` which unlike `TypingMode::Analysis`, uses the hidden type computed by HIR typeck as the initial value of opaques instead of an unconstrained infer var. This is a part of https://github.com/rust-lang/types-team/issues/129.

Using this new `TypingMode` is unfortunately a breaking change for now, see tests/ui/impl-trait/non-defining-uses/as-projection-term.rs. Using an inference variable as the initial value results in non-defining uses in the defining scope. We therefore only enable it if with `-Znext-solver=globally` or `-Ztyping-mode-borrowck`

To do that the PR contains the following changes:
- `TypeckResults::concrete_opaque_type` are already mapped to the definition of the opaque type
  - writeback now checks that the non-lifetime parameters of the opaque are universal
  - for this, `fn check_opaque_type_parameter_valid` is moved from `rustc_borrowck` to `rustc_trait_selection`
- we add a new `query type_of_opaque_hir_typeck` which, using the same visitors as MIR typeck, attempts to merge the hidden types from HIR typeck from all defining scopes
  - done by adding a `DefiningScopeKind` flag to toggle between using borrowck and HIR typeck
  - the visitors stop checking that the MIR type matches the HIR type. This is trivial as the HIR type are now used as the initial hidden types of the opaque. This check is useful as a safeguard when not using `TypingMode::Borrowck`, but adding it to the new structure is annoying and it's not soundness critical, so I intend to not add it back.
- add a `TypingMode::Borrowck`  which behaves just like `TypingMode::Analysis` except when normalizing opaque types
   - it uses `type_of_opaque_hir_typeck(opaque)` as the initial value after replacing its regions with new inference vars
   - it uses structural lookup in the new solver

fixes #112201, fixes #132335, fixes #137751

r? `@compiler-errors` `@oli-obk`
2025-04-04 19:54:42 +00:00
bors 8ce8eb22d7 Auto merge of #137869 - Noratrieb:Now_I_am_become_death,_the_destroyer_of_i686-pc-windows-gnu, r=workingjubilee
Demote i686-pc-windows-gnu to Tier 2

In accordance with [RFC 3771](https://github.com/rust-lang/rfcs/pull/3771). FCP has been completed.

tracking issue #138422

I also added a stub doc page for the target and renamed the windows-gnullvm page for consistency.
2025-04-04 15:45:03 +00:00
bors c189a961fc Auto merge of #139213 - bjorn3:cg_clif_test_coretests, r=jieyouxu
Run coretests and alloctests with cg_clif in CI

Part of https://github.com/rust-lang/rustc_codegen_cranelift/issues/1290
2025-04-04 11:59:59 +00:00
Yuki Okushi 664ab4cd4f
Merge pull request #2316 from szabgab/patch-1
Update book.toml fix the authors field
2025-04-04 15:31:01 +09:00
bors 484e2c183f Auto merge of #139287 - compiler-errors:folder-experiment-1, r=lqd
Folder experiment: Monomorphize region resolver

**NOTE:** This is one of a series of perf experiments that I've come up with while sick in bed. I'm assigning them to lqd b/c you're a good reviewer and you'll hopefully be awake when these experiments finish, lol.

r? lqd

This is actually two tweaks to the `RegionFolder`, monomorphizing its callback and accounting for flags to avoid folding unnecessarily.
2025-04-04 05:41:45 +00:00