Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion tests/ui/abi/relocation_model_pic.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
//@ compile-flags: -C relocation-model=pic
//@ needs-relocation-model-pic

Expand Down
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/array-slice-vec/array_const_index-2.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(dead_code)]

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/array-slice-vec/cast-in-array-size.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass


// issues #10618 and #16382
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/array-slice-vec/copy-out-of-array-1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass

// Ensure that we can copy out of a fixed-size array.
//
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/array-slice-vec/empty-mutable-vec.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass


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

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/array-slice-vec/issue-18425.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
// Check that codegen doesn't ICE when codegenning an array repeat
// expression with a count of 1 and a non-Copy element type.

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/array-slice-vec/ivec-pass-by-value.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass

fn f(_a: Vec<isize> ) { }
pub fn main() { f(vec![1, 2, 3, 4, 5]); }
2 changes: 1 addition & 1 deletion tests/ui/array-slice-vec/mut-vstore-expr.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass

pub fn main() {
let _x: &mut [isize] = &mut [ 1, 2, 3 ];
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/array-slice-vec/vec-macro-with-brackets.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(unused_variables)]


Expand Down
2 changes: 1 addition & 1 deletion tests/ui/array-slice-vec/vec-repeat-with-cast.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass


pub fn main() { let _a = [0; 1 as usize]; }
2 changes: 1 addition & 1 deletion tests/ui/array-slice-vec/vector-no-ann-2.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass


pub fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/asm/empty_global_asm.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ needs-asm-support
//@ run-pass
//@ build-pass

use std::arch::global_asm;

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/asm/may_unwind.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
//@ needs-asm-support
//@ needs-unwind
//@ ignore-backends: gcc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass

#![deny(dead_code)]

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

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/associated-consts/mismatched_impl_ty_2.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
trait Trait {
const ASSOC: fn(&'static u32);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/associated-consts/mismatched_impl_ty_3.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
trait Trait {
const ASSOC: for<'a, 'b> fn(&'a u32, &'b u32);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
// Test equality constraints on associated types in a where clause.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
// Test that we evaluate projection predicates to winnow out
// candidates during trait selection and method resolution (#20296).
// If we don't properly winnow out candidates based on the output type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(dead_code)]
// Check that we do not report ambiguities when equivalent predicates
// (modulo bound lifetime names) appears in the environment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(dead_code)]
// Check that we do not report ambiguities when the same predicate
// appears in the environment twice. Issue #21965.
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/associated-types/associated-types-eq-obj.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
// Test equality constraints on associated types inside of an object type


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass

trait Foo: Iterator<Item = i32> {}
trait Bar: Foo {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ edition:2015
//@ run-pass
//@ check-pass
#![allow(dead_code)]
#![allow(unused_mut)]
#![allow(unused_imports)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/associated-types/associated-types-issue-21212.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(unused_variables)]
// Regression test for #21212: an overflow occurred during trait
// checking where normalizing `Self::Input` led to normalizing the
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/associated-types/associated-types-method.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
// Test that methods whose impl-trait-ref contains associated types
// are supported.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(unused_variables)]
// Test that we can resolve nested projection types. Issue #20666.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(unused_variables)]
// Test that we normalize associated types that appear in a bound that
// contains a binding. Issue #21664.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
// Regression test for issue #21010: Normalize associated types in
// various special paths in the `type_is_immediate` function.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(dead_code)]
#![allow(unused_imports)]
// Corrected regression test for #20831. The original did not compile.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
// Test associated type references in structure fields.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
#![allow(dead_code)]
// Regression test for #20582. This test caused an ICE related to
// inconsistent region erasure in codegen.
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/associated-types/associated-types-sugar-path.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(dead_code)]
#![allow(unused_variables)]
#![allow(unused_imports)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ edition:2015
//@ run-pass
//@ check-pass
#![allow(dead_code)]
#![allow(unused_imports)]
// Test how resolving a projection interacts with inference. In this
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/associated-types/issue-22828.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(dead_code)]
// Test transitive analysis for associated types. Collected types
// should be normalized and new obligations generated.
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/associated-types/issue-23208.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
trait TheTrait : TheSuperTrait<<Self as TheTrait>::Item> {
type Item;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/associated-types/issue-25339.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(dead_code)]
#![allow(unused_variables)]
#![feature(associated_type_defaults)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/associated-types/issue-47139-1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
// Regression test for issue #47139:
//
// Coherence was encountering an (unnecessary) overflow trying to
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/associated-types/issue-47139-2.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
// Regression test for issue #47139:
//
// Same as issue-47139-1.rs, but the impls of dummy are in the
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/associated-types/issue-54467.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass

pub trait Stream {
type Item;
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/async-await/async-drop/ex-ice-132103.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ build-pass
//! This test used to ICE: rust-lang/rust#132103
//! Fixed when re-work async drop to shim drop glue coroutine scheme.
//@ compile-flags: -Zvalidate-mir -Zinline-mir=yes
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/async-await/issue-60709.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//@ compile-flags: -Copt-level=z -Cdebuginfo=2
//@ edition: 2018

//@ run-pass
//@ build-pass

use std::future::Future;
use std::task::Poll;
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/async-await/issues/issue-54752-async-block.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass

//@ edition:2018
//@ pp-exact
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/async-await/issues/issue-55809.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ edition:2018
//@ run-pass
//@ check-pass

trait Foo { }

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/async-await/issues/issue-59972.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// types as entirely uninhabited, when they were in fact constructible. This
// caused us to hit "unreachable" code (illegal instruction on x86).

//@ run-pass
//@ check-pass

//@ compile-flags: -Aunused
//@ edition: 2018
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/async-await/multiple-lifetimes/elided.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ edition:2018
//@ run-pass
//@ check-pass

// Test that we can use async fns with multiple arbitrary lifetimes.

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/async-await/multiple-lifetimes/fn-ptr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ edition:2018
//@ run-pass
//@ check-pass

// Test that we can use async fns with multiple arbitrary lifetimes.

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/async-await/multiple-lifetimes/named.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ edition:2018
//@ run-pass
//@ check-pass

// Test that we can use async fns with multiple arbitrary lifetimes.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ edition:2018
//@ run-pass
//@ check-pass

async fn lotsa_lifetimes<'a, 'b, 'c>(a: &'a u32, b: &'b u32, c: &'c u32) -> (&'a u32, &'b u32)
where 'b: 'a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ edition:2018
//@ run-pass
//@ check-pass

// Test member constraints that appear in the `impl Trait`
// return type of an async function.
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/attributes/crate-name-attr-validation.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Checks proper validation of the `#![crate_name]` attribute.

//@ run-pass
//@ check-pass
//@ compile-flags:--crate-name crate_name_attr_used -F unused-attributes


Expand Down
2 changes: 1 addition & 1 deletion tests/ui/attributes/inline-attribute-on-closure.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/49632

//@ run-pass
//@ build-pass
#![feature(stmt_expr_attributes)]

pub fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/attributes/inline-main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Test that #[inline(always)] can be applied to main function

//@ run-pass
//@ check-pass

#[inline(always)]
fn main() {}
2 changes: 1 addition & 1 deletion tests/ui/attributes/log-backtrace.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
//
// This test makes sure that log-backtrace option at least parses correctly
//
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/auto-traits/auto-is-contextual.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass

#![allow(path_statements)]
#![allow(dead_code)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/auto-traits/auto-traits-type-parameter.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Checks how type parameters interact with auto-traits like `Send` and `Sync` with implicit
//! bounds
//@ run-pass
//@ check-pass

#![allow(non_camel_case_types)]
#![allow(dead_code)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/auto-traits/auto-traits.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(unused_doc_comments)]
#![feature(auto_traits)]
#![feature(negative_impls)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/autoref-autoderef/auto-ref-bounded-ty-param.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
trait Foo {
fn f(&self);
}
Expand Down
Loading
Loading