惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
腾讯CDC
Jina AI
Jina AI
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
小众软件
小众软件
M
MIT News - Artificial intelligence
MyScale Blog
MyScale Blog
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
月光博客
月光博客
L
LangChain Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
C
Check Point Blog
U
Unit 42
人人都是产品经理
人人都是产品经理

Rust Blog

Security Advisory for Cargo (CVE-2026-5223) | Rust Blog Security Advisory for Cargo (CVE-2026-5222) | Rust Blog Project goals update — April 2026 (end of 2025H2) | Rust Blog Rust is participating in Outreachy | Rust Blog Raising the baseline for the `nvptx64-nvidia-cuda` target | Rust Blog Announcing Google Summer of Code 2026 selected projects | Rust Blog Announcing Rust 1.95.0 | Rust Blog docs.rs: building fewer targets by default | Rust Blog Changes to WebAssembly targets and handling undefined symbols | Rust Blog Announcing Rust 1.94.1 | Rust Blog Security advisory for Cargo | Rust Blog What we heard about Rust's challenges | Rust Blog Call for Testing: Build Dir Layout v2 | Rust Blog Announcing rustup 1.29.0 | Rust Blog Announcing Rust 1.94.0 | Rust Blog 2025 State of Rust Survey Results | Rust Blog Rust debugging survey 2026 | Rust Blog Update on the October 15, 2018 incident on crates.io Announcing Rust 1.29.2 Announcing Rust 1.29 Announcing Rust 1.28 What is Rust 2018? Announcing Rust 1.27.2 Announcing Rust 1.27.1 Security Advisory for rustdoc Announcing Rust 1.27 Announcing Rust 1.26.2 Announcing Rust 1.26.1 Rust turns three Announcing Rust 1.26
This Month in Our Test Infra: November 2024 | Inside Rust...
Jieyou Xu on behalf of the Bootstrap Team · 2024-12-09 · via Rust Blog

This Month in Our Test Infra: November 2024

This is a quick summary of the changes in the test infrastructure for the rust-lang/rust repository1 for November 2024. It also includes brief descriptions of on-going work.

As usual, if you encounter bugs or UX issues when using our test infrastructure, please file an issue. Bugs and papercuts can't be fixed if we don't know about them!

Thanks to everyone who contributed to our test infra!

Highlights

compiletest: Add proc-macro auxiliary build directive

@ehuss added a //@ proc-macro directive that behaves like //@ aux-build, but it packages the usual //@ force-host and //@ no-prefer-dynamic boilerplate that previously was needed by proc-macro auxiliaries. If the main test file also uses a sufficiently new edition (i.e. Edition 2018 onwards), the proc-macro auxiliary is also made available via extern prelude.

Before: test writer need to write //@ force-host and //@ no-prefer-dynamic for each and every proc-macro auxiliary.

// tests/ui/foo/my-main-test.rs
//@ aux-build: my-proc-macro.rs
// tests/ui/foo/auxiliary/my-proc-macro.rs
//@ no-prefer-dynamic
//@ force-host

After: only //@ proc-macro directive is needed in main test file.

// tests/ui/foo/my-main-test.rs
//@ proc-macro: my-proc-macro.rs
// tests/ui/foo/auxiliary/my-proc-macro.rs

Thanks Eric!

rustc: make rustc consider itself a stable compiler when RUSTC_BOOTSTRAP=-1 is set

In #132993, I modified rustc's stability checking logic to also now recognize RUSTC_BOOTSTRAP=-1 to force any rustc to consider itself a stable compiler, regardless of which channel it is from (e.g. beta or dev or nightly or stable)2. This is useful for e.g. diagnostics that differ between nightly and stable, and also provides a way to make the rustc under test behave as if it was a stable compiler.

In tests, the //@ rustc-env directive may be used with RUSTC_BOOTSTRAP=-13.

//@ rustc-env:RUSTC_BOOTSTRAP=-1
//@ compile-flags: -Z unstable-options
//@ regex-error-pattern: error: the option `Z` is only accepted on the nightly compiler
// This will fail because the `rustc` under test rejects the `-Z unstable-options` unstable flag.

PR listing

Improvements

Cleanups

Documentation updates

On-going efforts

Note: there are certainly many more spontaneous efforts, this is more what I know is "planned".

  1. The test infra here refers to the test harness compiletest and supporting components in our build system bootstrap. This test infra is used mainly by rustc and rustdoc. Other tools like cargo, miri or rustfmt maintain their own test infra.

  2. This is only for internal testing usages. Anything else that relies on this that breaks will be considered PEBKAC.

  3. The //@ rustc-env directive handling has a bug where it's white-space sensitive between the colon and the value, so avoid whitespace for now.