about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-03-24Merge pull request #2302 from rust-lang/tshepang-patch-1Tshepang Mbambo-1/+2
add needed break
2025-03-24add needed breakTshepang Mbambo-1/+2
2025-03-24Merge pull request #2299 from jieyouxu/test-jobs-reorg许杰友 Jieyou Xu (Joe)-11/+39
Slightly reorganize ecosystem tests, stub out codegen backend test pages
2025-03-24Merge pull request #2300 from chiichen/dev/master/correct-config-to-bootstrap许杰友 Jieyou Xu (Joe)-1/+1
doc: fix reference to #create-a-configtoml
2025-03-23doc: fix reference to #create-a-configtomlChiichen-1/+1
2025-03-21Merge pull request #2265 from BoxyUwU/typing_envlcnr-211/+211
Update `ParamEnv` section for `TypingEnv` changes
2025-03-21Stub out codegen backend test pagesJieyou Xu-2/+28
2025-03-21Move Fuchsia and RfL under `ecosystem-test-jobs/` folderJieyou Xu-9/+11
Includes redirects to avoid breaking existing links.
2025-03-20Update `ParamEnv` section for `TypingEnv` changesBoxy-211/+211
2025-03-20Merge pull request #2199 from sagudev/patch-1Vadim Petrochenkov-3/+3
Fix rib example
2025-03-20Merge pull request #2295 from lolbinarycat/rustdoc-htmldocck许杰友 Jieyou Xu (Joe)-8/+119
add new section on the `rustdoc` test suite
2025-03-19Merge pull request #2297 from rust-lang/tshepang-patch-1Tshepang Mbambo-4/+3
use correct code block markers
2025-03-19use correct code block markersTshepang Mbambo-4/+3
This makes this command pass mdbook test --chapter "Remarks on perma-unstable features"
2025-03-19Merge pull request #2296 from jieyouxu/no-external-linkcheck许杰友 Jieyou Xu (Joe)-0/+1
Don't linkcheck external web links in PR CI
2025-03-19Set linkcheck in `ci.yml`Jakub Beránek-0/+1
2025-03-18update filename in linkbinarycat-1/+1
2025-03-18normalize link titlesbinarycat-2/+2
2025-03-18clean up wording/grammar and mention double quotesbinarycat-4/+5
2025-03-18rename htmldocck.md -> rustdoc-test-suite.mdbinarycat-1/+1
2025-03-18rustdoc test suite: clean up wording and introbinarycat-3/+6
2025-03-18htmldocck: expand limitations and mention compiletest directivesbinarycat-3/+9
2025-03-18add htmldocck.md to SUMMARY.mdbinarycat-1/+1
2025-03-18add new section on the `rustdoc` test suitebinarycat-8/+109
2025-03-18Merge pull request #2294 from Kobzol/ping-groupJakub Beránek-21/+43
Add Fuchsia ping group page and mention Fuchsia and RfL ping groups in integration test pages
2025-03-18Add Fuchsia ping group pageJakub Beránek-2/+16
2025-03-18Reorder RfL tests page to move the "what if it breaks" section to the topJakub Beránek-20/+20
2025-03-18Add Fuchsia ping group noticeJakub Beránek-0/+8
2025-03-18Merge pull request #2268 from xizheyin/issue-137421许杰友 Jieyou Xu (Joe)-0/+56
Add issue link for explaining that why rustc_private linker fails
2025-03-18Add chapter Remarks on perma-unstable featuresxizheyin-0/+56
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-03-18Merge pull request #2293 from jieyouxu/rustc-pullJakub Beránek-5330/+8663
Rustc pull
2025-03-18Merge from rustcJieyou Xu-5329/+8662
2025-03-18Preparing for merge from rustcJieyou Xu-1/+1
2025-03-17Auto merge of #127173 - bjorn3:mangle_rustc_std_internal_symbol, ↵bors-76/+342
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-17Auto merge of #138611 - matthiaskrgr:rollup-hmjbqva, r=matthiaskrgrbors-335/+911
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-17Auto merge of #137081 - ↵bors-532/+570
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-17modify config.toml->bootstrap.toml for new upstream changesbit-aloo-5/+5
2025-03-17Rollup merge of #138588 - nnethercote:avoid-double-lower_ident, ↵Matthias Krüger-22/+9
r=compiler-errors Avoid double lowering of idents It's easy to double lower idents and spans because they don't change type when lowered. r? `@cjgillot`
2025-03-17Rollup merge of #138577 - aDotInTheVoid:deprecate-deprecations, r=GuillaumeGomezMatthias Krüger-10/+51
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-17Rollup merge of #138412 - cuviper:licenses, r=jieyouxuMatthias Krüger-1/+1
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-17Rollup merge of #138349 - 1c3t3a:external-weak-cfi, r=rcvalleMatthias Krüger-4/+48
Emit function declarations for functions with `#[linkage="extern_weak"]` Currently, when declaring an extern weak function in Rust, we use the following syntax: ```rust unsafe extern "C" { #[linkage = "extern_weak"] static FOO: Option<unsafe extern "C" fn() -> ()>; } ``` This allows runtime-checking the extern weak symbol through the Option. When emitting LLVM-IR, the Rust compiler currently emits this static as an i8, and a pointer that is initialized with the value of the global i8 and represents the nullabilty e.g. ``` `@FOO` = extern_weak global i8 `@_rust_extern_with_linkage_FOO` = internal global ptr `@FOO` ``` This approach does not work well with CFI, where we need to attach CFI metadata to a concrete function declaration, which was pointed out in https://github.com/rust-lang/rust/issues/115199. This change switches to emitting a proper function declaration instead of a global i8. This allows CFI to work for extern_weak functions. Example: ``` `@_rust_extern_with_linkage_FOO` = internal global ptr `@FOO` ... declare !type !61 !type !62 !type !63 !type !64 extern_weak void `@FOO(double)` unnamed_addr #6 ``` We keep initializing the Rust internal symbol with the function declaration, which preserves the correct behavior for runtime checking the Option. r? `@rcvalle` cc `@jakos-sec` try-job: test-various
2025-03-17Rollup merge of #137465 - Zalathar:visit-primary, r=oli-obkMatthias Krüger-156/+699
mir_build: Avoid some useless work when visiting "primary" bindings While looking over `visit_primary_bindings`, I noticed that it does a bunch of extra work to build up a collection of “user-type projections”, even though 2/3 of its call sites don't even use them. Those callers can get the same result via `thir::Pat::walk_always`. (And it turns out that doing so also avoids creating some redundant user-type entries in MIR for some binding constructs.) I also noticed that even when the user-type projections *are* used, the process of building them ends up eagerly cloning some nested vectors at every recursion step, even in cases where they won't be used because the current subpattern has no bindings. To avoid this, the visit method now assembles a linked list on the stack containing the information that *would* be needed to create projections, and only creates the concrete projections as needed when a primary binding is encountered. Some relevant prior PRs: - #55274 - https://github.com/rust-lang/rust/commit/0bfe184b1ad14db4b002c3a272adf44e1839822f in #55937 --- There should be no user-visible change in compiler output.
2025-03-17Rollup merge of #137449 - compiler-errors:control-flow, r=Amanieu,lnicolaMatthias Krüger-62/+67
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-17Rollup merge of #133870 - nbdd0121:asm, r=traviscross,nnethercoteMatthias Krüger-80/+36
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-17Only run symbols-all-mangled test on ELF targetsbjorn3-0/+1
2025-03-17Ignore symbols that don't contain rust as substring for executablesbjorn3-8/+7
For staticlib we still keep checking symbols that don't contain rust as substring.
2025-03-17Add test that all symbols we expect to be mangled are actually mangledbjorn3-0/+88
2025-03-17Fix miribjorn3-19/+64
2025-03-17Remove implicit #[no_mangle] for #[rustc_std_internal_symbol]bjorn3-49/+95
2025-03-17Mangle #[rustc_std_internal_symbol] to include the rustc version unless ↵bjorn3-0/+79
#[no_mangle] is used
2025-03-17Mark imports of #[rustc_std_internal_symbol] items with this attributebjorn3-3/+13
This ensures that they will be correctly mangled in a future commit.