From f03074da23c4b3e4e8ffcff3408151929a583fdf Mon Sep 17 00:00:00 2001 From: Jieyou Xu Date: Mon, 30 Jun 2025 15:09:03 +0800 Subject: [PATCH] Move compiletest `main.rs` to `src/bin/` To make it obvious `compiletest`-the-tool has two components: 1. The core compiletest library, and 2. The tool binary, which will be executed by bootstrap. --- src/tools/compiletest/Cargo.toml | 4 ++++ src/tools/compiletest/src/{ => bin}/main.rs | 0 2 files changed, 4 insertions(+) rename src/tools/compiletest/src/{ => bin}/main.rs (100%) diff --git a/src/tools/compiletest/Cargo.toml b/src/tools/compiletest/Cargo.toml index 3b544d8b8281..cdada5a22306 100644 --- a/src/tools/compiletest/Cargo.toml +++ b/src/tools/compiletest/Cargo.toml @@ -6,6 +6,10 @@ edition = "2024" [lib] doctest = false +[[bin]] +name = "compiletest" +path = "src/bin/main.rs" + [dependencies] # tidy-alphabetical-start anstyle-svg = "0.1.3" diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/bin/main.rs similarity index 100% rename from src/tools/compiletest/src/main.rs rename to src/tools/compiletest/src/bin/main.rs