Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f3f4f32
test: audit debuginfo test
Embers-of-the-Fire Mar 23, 2026
a0bd47f
test: audit no_std test
Embers-of-the-Fire Mar 23, 2026
512cfe2
test: audit specialization test
Embers-of-the-Fire Mar 23, 2026
1cb6e2c
test: audit dyn-keyword test
Embers-of-the-Fire Mar 23, 2026
46e8220
test: audit privacy test
Embers-of-the-Fire Mar 23, 2026
18790e4
test: audit where-clauses tests
Embers-of-the-Fire Mar 23, 2026
dbe0141
test: audit methods tests
Embers-of-the-Fire Mar 23, 2026
e520bf5
test: audit async-await tests
Embers-of-the-Fire Mar 23, 2026
f5a4b84
test: audit const-prop tests
Embers-of-the-Fire Mar 23, 2026
d34684e
test: audit cross-crate tests
Embers-of-the-Fire Mar 23, 2026
fd13f30
test: audit macros tests
Embers-of-the-Fire Mar 23, 2026
b9f1014
test: audit keyword tests
Embers-of-the-Fire Mar 23, 2026
1b90ded
test: audit feature-gates tests
Embers-of-the-Fire Mar 23, 2026
862a40b
test: audit overloaded tests
Embers-of-the-Fire Mar 23, 2026
46081fa
test: audit enum tests
Embers-of-the-Fire Mar 23, 2026
d26078e
test: audit let-else tests
Embers-of-the-Fire Mar 23, 2026
7cc2484
test: audit unboxed-closures tests
Embers-of-the-Fire Mar 23, 2026
1d3469a
test: audit layout tests
Embers-of-the-Fire Mar 23, 2026
63be370
test: audit coercion tests
Embers-of-the-Fire Mar 23, 2026
b716dec
test: audit allocator tests
Embers-of-the-Fire Mar 23, 2026
ec35d6b
test: audit cfg tests
Embers-of-the-Fire Mar 23, 2026
aac8028
test: audit unsized tests
Embers-of-the-Fire Mar 23, 2026
de8c4e8
test: audit sized tests
Embers-of-the-Fire Mar 23, 2026
56857ca
test: audit union tests
Embers-of-the-Fire Mar 23, 2026
433ec8e
test: audit cast tests
Embers-of-the-Fire Mar 23, 2026
623ee7e
test: audit recursion tests
Embers-of-the-Fire Mar 23, 2026
b800a5d
test: audit structs-enums tests
Embers-of-the-Fire Mar 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/ui/allocator/dyn-compatible.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass

// Check that `Allocator` is dyn-compatible, this allows for polymorphic allocators

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/async-await/context-is-sorta-unwindsafe.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
// Tests against a regression surfaced by crater in https://github.com/rust-lang/rust/issues/125193
// Unwind Safety is not a very coherent concept, but we'd prefer no regressions until we kibosh it
// and this is an unstable feature anyways sooo...
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/async-await/interior-with-const-generic-expr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ edition:2018
//@ run-pass
//@ build-pass

#![allow(incomplete_features)]
#![feature(generic_const_exprs)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cast/cast-region-to-uint.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass

pub fn main() {
let x: isize = 3;
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cast/cast-to-box-arr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! regression test for <https://github.com/rust-lang/rust/issues/22403>
//@ run-pass
//@ build-pass
fn main() {
let x = Box::new([1, 2, 3]);
let y = x as Box<[i32]>;
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cast/constant-expression-cast-9942.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://github.com/rust-lang/rust/issues/9942
//@ run-pass
//@ build-pass

pub fn main() {
const S: usize = 23 as usize; [0; S]; ()
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cast/owned-struct-to-trait-cast-6318.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://github.com/rust-lang/rust/issues/6318
//@ run-pass
//@ build-pass

pub enum Thing {
A(Box<dyn Foo+'static>)
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cast/supported-cast.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass

pub fn main() {
let f = 1_usize as *const String;
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/cfg-attr-cfg.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
// main is conditionally compiled, but the conditional compilation
// is conditional too!

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/cfg-attr-crate.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
// https://github.com/rust-lang/rust/issues/21833#issuecomment-72353044


Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/cfg-false-use-item.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Test that use items with cfg(false) are properly filtered out

//@ run-pass
//@ check-pass
//@ reference: cfg.predicate.literal
//@ reference: cfg.attr.effect

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/cfg-in-crate-1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
//@ compile-flags: --cfg bar --check-cfg=cfg(bar) -D warnings

#![cfg(bar)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/cfg-match-arm.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(dead_code)]

enum Foo {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/cfg-target-abi.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
//@ reference: cfg.target_abi.def
//@ reference: cfg.target_abi.values

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/cfg-target-compact.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
#![feature(cfg_target_compact)]

#[cfg(target(os = "linux", pointer_width = "64"))]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/cfg-target-vendor.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
//@ reference: cfg.target_vendor.def
//@ reference: cfg.target_vendor.values
#[cfg(target_vendor = "unknown")]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/cfg_attr.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
//@ compile-flags:--cfg set1 --cfg set2
//@ reference: cfg.cfg_attr.intro
//@ reference: cfg.cfg_attr.syntax
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/cfg_inner_static.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
//@ aux-build:cfg_inner_static.rs


Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/conditional-compilation-struct-11085.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Regression test for https://github.com/rust-lang/rust/issues/11085
//@ run-pass
//@ check-pass

#![allow(dead_code)]

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/conditional-compile-arch.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
//@ reference: cfg.target_arch.def
//@ reference: cfg.target_arch.values

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/crt-static-off-works.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
//@ compile-flags:-C target-feature=-crt-static -Z unstable-options
//@ ignore-musl - requires changing the linker which is hard

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/crt-static-on-works.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
//@ compile-flags:-C target-feature=+crt-static
//@ only-msvc

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cfg/struct-field-empty.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! regression test for <https://github.com/rust-lang/rust/issues/16819>
//@ run-pass
//@ check-pass
#![allow(unused_variables)]
// `#[cfg]` on struct field permits empty unusable struct

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/coercion/basic-ptr-coercions.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Tests basic pointer coercions
//@ run-pass
//@ build-pass

pub fn main() {
// &mut -> &
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/coercion/coerce-expect-unsized.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
#![allow(unused_braces)]

use std::cell::RefCell;
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/coercion/coerce-many-with-ty-var.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
// Check that least upper bound coercions don't resolve type variable merely based on the first
// coercion. Check issue #136420.

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/coercion/coerce-reborrow-imm-ptr-arg.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
#![allow(dead_code)]

fn negate(x: &isize) -> isize {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/coercion/coerce-reborrow-imm-vec-arg.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
#![allow(dead_code)]

fn sum(x: &[isize]) -> isize {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/coercion/coerce-unify-return.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
// Check that coercions unify the expected return type of a polymorphic
// function call, instead of leaving the type variables as they were.

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/coercion/coerce-unsize-subtype.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(dead_code)]

use std::rc::Rc;
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/coercion/trait-object-arrays-11205.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Regression test for https://github.com/rust-lang/rust/issues/11205
//@ run-pass
//@ build-pass

#![allow(dead_code)]

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/const_prop/const-prop-ice3.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass (ensure that const-prop is run)
//@ build-pass (ensure that const-prop is run)

struct A<T: ?Sized>(T);

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cross-crate/cross-crate-const-pat.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
//@ aux-build:cci_const.rs


Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cross-crate/cross-crate-map-usage-5521.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://github.com/rust-lang/rust/issues/5521
//@ run-pass
//@ build-pass
#![allow(dead_code)]
//@ aux-build:aux-5521.rs

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cross-crate/static-array-across-crate.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
#![allow(dead_code)]
//@ aux-build:pub_static_array.rs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://github.com/rust-lang/rust/issues/8259
//@ run-pass
//@ build-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cross-crate/trait-lifetime-param.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
#![allow(dead_code)]
//@ aux-build:xcrate-trait-lifetime-param.rs

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/debuginfo/impl-copy-function-debuginfo-58463.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://github.com/rust-lang/rust/issues/58463
//@ run-pass
//@ build-pass
//@ compile-flags:-C debuginfo=2

fn foo() -> impl Copy {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/debuginfo/issue-105386-debuginfo-ub.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
//@ compile-flags: -Copt-level=3 -Cdebuginfo=2 -Zmir-opt-level=3
//@ edition: 2021

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
//@ aux-build:aux-8401.rs
// https://github.com/rust-lang/rust/issues/8401

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/enum/enum-with-uninhabited-variant.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! regression test for issue https://github.com/rust-lang/rust/issues/50442
//@ run-pass
//@ build-pass
#![allow(dead_code)]
enum Void {}

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/enum/issue-19340-1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
#![allow(unused_variables)]
//@ aux-build:issue-19340-1.rs

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/enum/issue-19340-2.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
#![allow(unused_variables)]

enum Homura {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/enum/issue-42747.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
macro_rules! fooN {
($cur:ident $prev:ty) => {
#[allow(dead_code)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/enum/match-either-enum-variants-6117.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://github.com/rust-lang/rust/issues/6117
//@ run-pass
//@ build-pass
#![allow(dead_code)]

enum Either<T, U> { Left(T), Right(U) }
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/enum/simple-enum-usage-8506.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://github.com/rust-lang/rust/issues/8506
//@ run-pass
//@ build-pass
#![allow(non_upper_case_globals)]

#![allow(dead_code)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/enum/zero-variant-enum-pattern-matching-3037.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://github.com/rust-lang/rust/issues/3037
//@ run-pass
//@ check-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// This is due to the fact that 'public_private_dependencies' just enables
// a lint, so disabling it shouldn't cause any code to stop compiling.

//@ run-pass
//@ build-pass
//@ aux-build:pub_dep.rs

// Without ![feature(public_private_dependencies)],
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/feature-gates/feature-gate-trivial_bounds-lint.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass

#![allow(unused)]
#![deny(trivial_bounds)] // Ignored without the trivial_bounds feature flag.
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/keyword/raw-identifier-for-function-57198.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://github.com/rust-lang/rust/issues/57198
//@ run-pass
//@ build-pass

mod m {
pub fn r#for() {}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/layout/big-type-no-err.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Enormous types are allowed if they are never actually instantiated.
//@ run-pass
//@ build-pass
trait Foo {
type Assoc;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/let-else/let-else-temp-borrowck.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
//
// from issue #93951, where borrowck complained the temporary that `foo(&x)` was stored in was to
// be dropped sometime after `x` was. It then suggested adding a semicolon that was already there.
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/macros/die-macro.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
#![allow(dead_code)]
// Just testing that panic!() type checks in statement or expr

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/macros/edition-macro-pats.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
//@ edition:2021

macro_rules! foo {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/macros/html-literals.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass

#![allow(non_camel_case_types)]
// A test of the macro system. Can we do HTML literals?
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/macros/issue-2804.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass

#![allow(non_camel_case_types)]
#![allow(dead_code)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/macros/issue-33185.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
#![allow(dead_code)]

#[macro_export]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/macros/issue-40469.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass

#![allow(dead_code)]

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/macros/issue-40770.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
#![allow(unused_macros)]
macro_rules! m {
($e:expr) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/macros/macro-attribute-expansion.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
macro_rules! descriptions {
($name:ident is $desc:expr) => {
// Check that we will correctly expand attributes
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/macros/macro-doc-comments.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
#![allow(non_snake_case)]

macro_rules! doc {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/macros/macro-doc-escapes.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
// When expanding a macro, documentation attributes (including documentation comments) must be
// passed "as is" without being parsed. Otherwise, some text will be incorrectly interpreted as
// escape sequences, leading to an ICE.
Expand Down
Loading
Loading