From 105177734c0fde5e859295547247cabde6bcf25e Mon Sep 17 00:00:00 2001 From: Oneirical Date: Tue, 27 May 2025 14:24:03 -0400 Subject: [PATCH 1/4] Add a SUMMARY.md outlining immediate subdirectories of the ui test suite Co-authored-by: Jieyou Xu --- src/tests/ui.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/ui.md b/src/tests/ui.md index 9e4a11044..8f4467a55 100644 --- a/src/tests/ui.md +++ b/src/tests/ui.md @@ -13,6 +13,11 @@ used for many other purposes. For example, tests can also be configured to [run the resulting program](#controlling-passfail-expectations) to verify its behavior. +For a survey of each subdirectory's purpose under `tests/ui`, consult the +[SUMMARY.md](https://github.com/rust-lang/rust/tree/master/tests/ui/SUMMARY.md). +This is useful if you write a new test, and are looking for a category to +place it in. + If you need to work with `#![no_std]` cross-compiling tests, consult the [`minicore` test auxiliary](./minicore.md) chapter. From a19cd234f3aa156e1ae8e498a9979ee2b0cb10b8 Mon Sep 17 00:00:00 2001 From: Karan Janthe Date: Wed, 25 Jun 2025 02:06:53 +0000 Subject: [PATCH 2/4] added PrintTAFn flag for autodiff Signed-off-by: Karan Janthe --- src/autodiff/flags.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/autodiff/flags.md b/src/autodiff/flags.md index 65287d9ba..efbb9ea34 100644 --- a/src/autodiff/flags.md +++ b/src/autodiff/flags.md @@ -6,6 +6,7 @@ To support you while debugging or profiling, we have added support for an experi ```text PrintTA // Print TypeAnalysis information +PrintTAFn // Print TypeAnalysis information for a specific function PrintAA // Print ActivityAnalysis information Print // Print differentiated functions while they are being generated and optimized PrintPerf // Print AD related Performance warnings From 63a463e6119d17ee4c3586ce8fc18b5f95b03d7a Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Tue, 24 Jun 2025 21:21:13 -0700 Subject: [PATCH 3/4] Sprinkle breadcrumbs around to lead people to the rust-invalid ABI --- src/tests/ui.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/ui.md b/src/tests/ui.md index 8f4467a55..09dc476d6 100644 --- a/src/tests/ui.md +++ b/src/tests/ui.md @@ -59,6 +59,11 @@ The output is normalized to ignore unwanted differences, see the [Normalization](#normalization) section. If the file is missing, then compiletest expects the corresponding output to be empty. +A common reason to use normalization, revisions, and most of the other following tools, +is to account for platform differences. Consider alternatives to these tools, like +e.g. using the `extern "rust-invalid"` ABI that is invalid on every platform +instead of fixing the test to use cross-compilation and testing every possibly-invalid ABI. + There can be multiple stdout/stderr files. The general form is: ```text From a66ddbdc8d319548988b2eb04fb71ac25b1e44f0 Mon Sep 17 00:00:00 2001 From: The rustc-dev-guide Cronjob Bot Date: Thu, 26 Jun 2025 04:07:24 +0000 Subject: [PATCH 4/4] Preparing for merge from rustc --- rust-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-version b/rust-version index 30ba3070e..c986141b6 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -d1d8e386c5e84c4ba857f56c3291f73c27e2d62a +bc4376fa73b636eb6f2c7d48b1f731d70f022c4b