Commit Graph

160451 Commits

Author SHA1 Message Date
Jieyou Xu 05d5fdadbb Preparing for merge from rustc 2025-04-02 23:26:26 +08:00
clubby789 ebae4c65a1 Fix partial clone link 2025-03-30 13:21:01 +01:00
Tshepang Mbambo 9302f4d94f add rustfmt settings file 2025-03-30 00:31:44 +02:00
Tshepang Mbambo 471a2a8b87 example assumes a static exists
This was removed, likely by mistake, during a refactor.
2025-03-30 00:16:39 +02:00
Tshepang Mbambo 1faf7ff9a4 update rustc-{driver,interface} examples 2025-03-29 23:52:57 +02:00
Tshepang Mbambo 9448b79201 Merge pull request #2289 from y1lan/fix_compiler_err_of_examples
Fix compile errors of all the examples
2025-03-29 23:10:13 +02:00
许杰友 Jieyou Xu (Joe) 70cbe19fe0 Merge pull request #2288 from rust-lang/tshepang-known-bug-takes-args
mention that known-bug test directive takes arguments
2025-03-30 02:31:33 +08:00
Tshepang Mbambo 865a5a7e16 mention that know-bug test directive takes arguments 2025-03-29 20:02:01 +02:00
Samuel Tardieu 5952f01712 Fix trivial typo of BoundVariableKind 2025-03-28 21:04:21 +01:00
Santiago Pastorino cdbb219f83 Fix code generation link 2025-03-28 12:38:32 -03:00
mejrs a9a21bde85 Delete from_method from rustc_on_unimplemented documentation 2025-03-27 18:32:48 +01:00
Tshepang Mbambo 62ec34bf5b typo 2025-03-24 10:41:19 +02:00
Tshepang Mbambo de8b6beac8 add needed break 2025-03-24 10:40:03 +02:00
许杰友 Jieyou Xu (Joe) b34181ad56 Merge pull request #2299 from jieyouxu/test-jobs-reorg
Slightly reorganize ecosystem tests, stub out codegen backend test pages
2025-03-24 16:29:25 +08:00
Chiichen ee6a159826 doc: fix reference to #create-a-configtoml 2025-03-23 12:38:46 +08:00
Jieyou Xu d58ccd86c2 Stub out codegen backend test pages 2025-03-21 16:48:58 +08:00
Jieyou Xu 957aacd036 Move Fuchsia and RfL under ecosystem-test-jobs/ folder
Includes redirects to avoid breaking existing links.
2025-03-21 16:48:57 +08:00
Boxy 2de68a1bb1 Update ParamEnv section for TypingEnv changes 2025-03-20 17:30:22 +00:00
Vadim Petrochenkov 904ec4daed Merge pull request #2199 from sagudev/patch-1
Fix rib example
2025-03-20 15:26:12 +03:00
许杰友 Jieyou Xu (Joe) 594eed922d Merge pull request #2295 from lolbinarycat/rustdoc-htmldocck
add new section on the `rustdoc` test suite
2025-03-20 14:49:50 +08:00
Tshepang Mbambo 2daaf49381 use correct code block markers
This makes this command pass

  mdbook test --chapter "Remarks on perma-unstable features"
2025-03-19 18:06:50 +02:00
Jakub Beránek 88478aca86 Set linkcheck in ci.yml 2025-03-19 17:25:07 +08:00
binarycat eeda54f110 update filename in link 2025-03-18 13:29:14 -05:00
binarycat 7f29b47410 normalize link titles 2025-03-18 13:25:39 -05:00
binarycat 40b9be0c45 clean up wording/grammar and mention double quotes 2025-03-18 13:23:37 -05:00
binarycat 1081d98cf6 rename htmldocck.md -> rustdoc-test-suite.md 2025-03-18 13:21:15 -05:00
binarycat 6893f0ac7a rustdoc test suite: clean up wording and intro 2025-03-18 13:19:33 -05:00
binarycat a172f23df0 htmldocck: expand limitations and mention compiletest directives 2025-03-18 13:10:26 -05:00
binarycat 3668c36662 add htmldocck.md to SUMMARY.md 2025-03-18 12:10:43 -05:00
binarycat 4f053a9ee9 add new section on the rustdoc test suite 2025-03-18 12:04:47 -05:00
Jakub Beránek c987d34a7e Add Fuchsia ping group page 2025-03-18 16:22:57 +01:00
Jakub Beránek 9ff4936afb Reorder RfL tests page to move the "what if it breaks" section to the top 2025-03-18 16:17:59 +01:00
Jakub Beránek 74698d7c2c Add Fuchsia ping group notice 2025-03-18 16:16:28 +01:00
许杰友 Jieyou Xu (Joe) 7faf2a53a0 Merge pull request #2268 from xizheyin/issue-137421
Add issue link for explaining that why rustc_private linker fails
2025-03-18 22:44:16 +08:00
xizheyin 3e448fd4f5 Add chapter Remarks on perma-unstable features
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-03-18 20:49:20 +08:00
Jieyou Xu 69ed0232ef Merge from rustc 2025-03-18 12:08:38 +08:00
Jieyou Xu 6d515a73e2 Preparing for merge from rustc 2025-03-18 12:08:16 +08:00
bors 493c38ba37 Auto merge of #127173 - bjorn3:mangle_rustc_std_internal_symbol, r=wesleywiser,jieyouxu
Mangle rustc_std_internal_symbols functions

This reduces the risk of issues when using a staticlib or rust dylib compiled with a different rustc version in a rust program. Currently this will either (in the case of staticlib) cause a linker error due to duplicate symbol definitions, or (in the case of rust dylibs) cause rustc_std_internal_symbols functions to be silently overridden. As rust gets more commonly used inside the implementation of libraries consumed with a C interface (like Spidermonkey, Ruby YJIT (curently has to do partial linking of all rust code to hide all symbols not part of the C api), the Rusticl OpenCL implementation in mesa) this is becoming much more of an issue. With this PR the only symbols remaining with an unmangled name are rust_eh_personality (LLVM doesn't allow renaming it) and `__rust_no_alloc_shim_is_unstable`.

Helps mitigate https://github.com/rust-lang/rust/issues/104707

try-job: aarch64-gnu-debug
try-job: aarch64-apple
try-job: x86_64-apple-1
try-job: x86_64-mingw-1
try-job: i686-mingw-1
try-job: x86_64-msvc-1
try-job: i686-msvc-1
try-job: test-various
try-job: armhf-gnu
2025-03-17 22:16:22 +00:00
bors 43a2e9d2c7 Auto merge of #138611 - matthiaskrgr:rollup-hmjbqva, r=matthiaskrgr
Rollup of 7 pull requests

Successful merges:

 - #133870 (Stabilize `asm_goto` feature gate)
 - #137449 (Denote `ControlFlow` as `#[must_use]`)
 - #137465 (mir_build: Avoid some useless work when visiting "primary" bindings)
 - #138349 (Emit function declarations for functions with `#[linkage="extern_weak"]`)
 - #138412 (Install licenses into `share/doc/rust/licenses`)
 - #138577 (rustdoc-json: Don't also include `#[deprecated]` in `Item::attrs`)
 - #138588 (Avoid double lowering of idents)

Failed merges:

 - #138321 ([bootstrap] Distribute split debuginfo if present)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-03-17 19:04:14 +00:00
bors 8279176ccd Auto merge of #137081 - Shourya742:2025-02-15-change-config.toml-to-bootstrap.toml, r=onur-ozkan,jieyouxu,kobzol
change config.toml to bootstrap.toml

Currently, both Bootstrap and Cargo uses same name as their configuration file, which can be confusing. This PR is based on a discussion to rename `config.toml` to `bootstrap.toml` for Bootstrap. Closes: https://github.com/rust-lang/rust/issues/126875.

I have split the PR into atomic commits to make it easier to review. Once the changes are finalized, I will squash them. I am particularly concerned about the changes made to modules that are not part of Bootstrap. How should we handle those changes? Should we ping the respective maintainers?
2025-03-17 15:51:28 +00:00
bit-aloo 4579615b14 modify config.toml->bootstrap.toml for new upstream changes 2025-03-17 21:12:23 +05:30
Matthias Krüger b15e663dbd Rollup merge of #138577 - aDotInTheVoid:deprecate-deprecations, r=GuillaumeGomez
rustdoc-json: Don't also include `#[deprecated]` in `Item::attrs`

Closes #138378

Not sure if this should bump `FORMAT_VERSION` or not. CC `@Enselic` `@LukeMathWalker` `@obi1kenobi`

r? `@GuillaumeGomez,` best reviewed commit-by-commit
2025-03-17 16:34:51 +01:00
Matthias Krüger 78d141fca0 Rollup merge of #138412 - cuviper:licenses, r=jieyouxu
Install licenses into `share/doc/rust/licenses`

This changes the path from "licences" to "licenses" for consistency
across the repo, including the usage directly around this line. This is
a US/UK spelling difference, but I believe the US spelling is also more
common in open source in general.
2025-03-17 16:34:50 +01:00
Matthias Krüger 9adf2189f5 Rollup merge of #137449 - compiler-errors:control-flow, r=Amanieu,lnicola
Denote `ControlFlow` as `#[must_use]`

I've repeatedly hit bugs in the compiler due to `ControlFlow` not being marked `#[must_use]`. There seems to be an accepted ACP to make the type `#[must_use]` (https://github.com/rust-lang/libs-team/issues/444), so this PR implements that part of it.

Most of the usages in the compiler that trigger this new warning are "root" usages (calling into an API that uses control-flow internally, but for which the callee doesn't really care) and have been suppressed by `let _ = ...`, but I did legitimately find one instance of a missing `?` and one for a never-used `ControlFlow` value in #137448.

Presumably this needs an FCP too, so I'm opening this and nominating it for T-libs-api.

This PR also touches the tools (incl. rust-analyzer), but if this went into FCP, I'd split those out into separate PRs which can land before this one does.

r? libs-api
`@rustbot` label: T-libs-api I-libs-api-nominated
2025-03-17 16:34:47 +01:00
Matthias Krüger 3d3f817ff9 Rollup merge of #133870 - nbdd0121:asm, r=traviscross,nnethercote
Stabilize `asm_goto` feature gate

Stabilize `asm_goto` feature (tracked by #119364). The issue will remain open and be updated to track `asm_goto_with_outputs`.

Reference PR: https://github.com/rust-lang/reference/pull/1693

# Stabilization Report

This feature adds a `label <block>` operand type to `asm!`. `<block>` must be a block expression with type unit or never. The address of the block is substituted and the assembly may jump to the block. When block completes the `asm!` block returns and continues execution.

The block starts a new safety context and unsafe operations within must have additional `unsafe`s; the effect of `unsafe` that surrounds `asm!` block is cancelled. See https://github.com/rust-lang/rust/issues/119364#issuecomment-2316037703 and https://github.com/rust-lang/rust/pull/131544.

It's currently forbidden to use `asm_goto` with output operands; that is still unstable under `asm_goto_with_outputs`.

Example:

```rust
unsafe {
    asm!(
        "jmp {}",
        label {
            println!("Jumped from asm!");
        }
    );
}
```

Tests:
- tests/ui/asm/x86_64/goto.rs
- tests/ui/asm/x86_64/goto-block-safe.stderr
- tests/ui/asm/x86_64/bad-options.rs
- tests/codegen/asm/goto.rs
2025-03-17 16:34:47 +01:00
bjorn3 0b0ccd403b Fix miri 2025-03-17 14:08:10 +00:00
Gary Guo 292c622507 Stabilize asm_goto 2025-03-17 11:12:10 +00:00
Jacob Pratt 87b87b1966 Rollup merge of #138592 - onur-ozkan:follow-up-137147, r=Kobzol
update change entry for #137147

r? `@RalfJung`
2025-03-17 05:47:54 -04:00
Jacob Pratt 47d0c6b14e Rollup merge of #138586 - jyn514:doc-register-tool, r=jieyouxu
Document `#![register_tool]`

cc https://github.com/rust-lang/rust/issues/66079
2025-03-17 05:47:52 -04:00
Jacob Pratt 62c2a7b93b Rollup merge of #137793 - NobodyXu:stablise-annoymous-pipe, r=joshtriplett
Stablize anonymous pipe

Since #135822 is staled, I create this PR to stablise anonymous pipe

Closes #127154

try-job: test-various
2025-03-17 05:47:50 -04:00