about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-04 07:25:48 +0200
committerGitHub <noreply@github.com>2023-08-04 07:25:48 +0200
commit353e26869f9b6672089abcd7516b11a4a2a4c375 (patch)
tree50f220915c64405a877ba4bf0f726d3eefd62b61
parent90d93c3f766afd61e1db3c5b2fd5d84b10a302c1 (diff)
parent40729bcb6914c8d239c70ad9ac4c532a0d12e495 (diff)
downloadrust-353e26869f9b6672089abcd7516b11a4a2a4c375.tar.gz
rust-353e26869f9b6672089abcd7516b11a4a2a4c375.zip
Rollup merge of #114431 - ehuss:ssa-test, r=est31
Enable tests on rustc_codegen_ssa

This enables unittests in rustc_codegen_ssa. There are some tests, primarily in [`back/rpath/tests.rs`](https://github.com/rust-lang/rust/blob/HEAD/compiler/rustc_codegen_ssa/src/back/rpath/tests.rs) that haven't ever been running since the unittests are disabled. From what I can tell, this was just a consequence of how things evolved. When testing was initially added in https://github.com/rust-lang/rust/pull/33282, `librustc_trans` had test=false because it didn't have any tests. `rustc_codegen_ssa` eventually split off from that (https://github.com/rust-lang/rust/pull/55627), and the rpath module eventually got merged in too (from `librustc_back` where it used to live). That migration didn't enable the tests.

This also includes some fluent diagnostic tests, though I'm not sure what exactly they are testing.
-rw-r--r--compiler/rustc_codegen_ssa/Cargo.toml3
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_ssa/Cargo.toml b/compiler/rustc_codegen_ssa/Cargo.toml
index 6582fd62387..8f383f68bcd 100644
--- a/compiler/rustc_codegen_ssa/Cargo.toml
+++ b/compiler/rustc_codegen_ssa/Cargo.toml
@@ -3,9 +3,6 @@ name = "rustc_codegen_ssa"
 version = "0.0.0"
 edition = "2021"
 
-[lib]
-test = false
-
 [dependencies]
 ar_archive_writer = "0.1.3"
 bitflags = "1.2.1"