Skip to content

Commit

Permalink
tests: remove //@ pretty-expanded usages
Browse files Browse the repository at this point in the history
Done with

```bash
sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs
```

and

```
sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs
```
  • Loading branch information
jieyouxu committed Nov 25, 2024
1 parent 636b393 commit 6263068
Show file tree
Hide file tree
Showing 656 changed files with 23 additions and 662 deletions.
1 change: 0 additions & 1 deletion tests/ui/abi/anon-extern-mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ run-pass
//@ pretty-expanded FIXME #23616

#[link(name = "rust_test_helpers", kind = "static")]
extern "C" {
Expand Down
1 change: 0 additions & 1 deletion tests/ui/abi/c-stack-as-value.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ run-pass
//@ pretty-expanded FIXME #23616

mod rustrt {
#[link(name = "rust_test_helpers", kind = "static")]
Expand Down
1 change: 0 additions & 1 deletion tests/ui/abi/cross-crate/anon-extern-mod-cross-crate-2.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ run-pass
//@ aux-build:anon-extern-mod-cross-crate-1.rs
//@ pretty-expanded FIXME #23616

extern crate anonexternmod;

Expand Down
1 change: 0 additions & 1 deletion tests/ui/abi/cross-crate/duplicated-external-mods.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//@ run-pass
//@ aux-build:anon-extern-mod-cross-crate-1.rs
//@ aux-build:anon-extern-mod-cross-crate-1.rs
//@ pretty-expanded FIXME #23616

extern crate anonexternmod;

Expand Down
1 change: 0 additions & 1 deletion tests/ui/abi/extern/extern-pass-empty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

// Test a foreign function that accepts empty struct.

//@ pretty-expanded FIXME #23616
//@ ignore-msvc
//@ ignore-emscripten emcc asserts on an empty struct as an argument

Expand Down
1 change: 0 additions & 1 deletion tests/ui/abi/foreign/invoke-external-foreign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// successfully (and safely) invoke external, cdecl
// functions from outside the crate.

//@ pretty-expanded FIXME #23616

extern crate foreign_lib;

Expand Down
1 change: 0 additions & 1 deletion tests/ui/alias-uninit-value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

// Regression test for issue #374

//@ pretty-expanded FIXME #23616

enum sty { ty_nil, }

Expand Down
1 change: 0 additions & 1 deletion tests/ui/array-slice-vec/cast-in-array-size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


// issues #10618 and #16382
//@ pretty-expanded FIXME #23616

const SIZE: isize = 25;

Expand Down
1 change: 0 additions & 1 deletion tests/ui/array-slice-vec/empty-mutable-vec.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ run-pass

//@ pretty-expanded FIXME #23616

#![allow(unused_mut)]

Expand Down
1 change: 0 additions & 1 deletion tests/ui/array-slice-vec/issue-15730.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//@ run-pass
#![allow(unused_mut)]
#![allow(unused_variables)]
//@ pretty-expanded FIXME #23616

fn main() {
let mut array = [1, 2, 3];
Expand Down
1 change: 0 additions & 1 deletion tests/ui/array-slice-vec/issue-18425.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Check that codegen doesn't ICE when codegenning an array repeat
// expression with a count of 1 and a non-Copy element type.

//@ pretty-expanded FIXME #23616

fn main() {
let _ = [Box::new(1_usize); 1];
Expand Down
1 change: 0 additions & 1 deletion tests/ui/array-slice-vec/mut-vstore-expr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ run-pass
//@ pretty-expanded FIXME #23616

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

//@ pretty-expanded FIXME #23616

macro_rules! vec [
($($e:expr),*) => ({
Expand Down
1 change: 0 additions & 1 deletion tests/ui/array-slice-vec/vec-repeat-with-cast.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ run-pass

//@ pretty-expanded FIXME #23616

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

//@ pretty-expanded FIXME #23616

pub fn main() {
let _quux: Box<Vec<usize>> = Box::new(Vec::new());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//@ run-pass
// Test equality constraints on associated types in a where clause.

//@ pretty-expanded FIXME #23616

pub trait Foo {
type A;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// `Target=[A]`, then the impl marked with `(*)` is seen to conflict
// with all the others.

//@ pretty-expanded FIXME #23616

use std::marker::PhantomData;
use std::ops::Deref;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// (modulo bound lifetime names) appears in the environment
// twice. Issue #21965.

//@ pretty-expanded FIXME #23616

fn foo<T>(t: T) -> i32
where T : for<'a> Fn(&'a u8) -> i32,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Check that we do not report ambiguities when the same predicate
// appears in the environment twice. Issue #21965.

//@ pretty-expanded FIXME #23616

trait Foo {
type B;
Expand Down
1 change: 0 additions & 1 deletion tests/ui/associated-types/associated-types-eq-obj.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//@ run-pass
// Test equality constraints on associated types inside of an object type

//@ pretty-expanded FIXME #23616

pub trait Foo {
type A;
Expand Down
1 change: 0 additions & 1 deletion tests/ui/associated-types/associated-types-issue-20371.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Test that we are able to have an impl that defines an associated type
// before the actual trait.

//@ pretty-expanded FIXME #23616

impl X for f64 { type Y = isize; }
trait X { type Y; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#![allow(unused_variables)]
// Test that we can resolve nested projection types. Issue #20666.

//@ pretty-expanded FIXME #23616

use std::slice;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
warning: method `into_iter` is never used
--> $DIR/associated-types-nested-projections.rs:16:8
--> $DIR/associated-types-nested-projections.rs:15:8
|
LL | trait IntoIterator {
| ------------ method in this trait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Test that we normalize associated types that appear in a bound that
// contains a binding. Issue #21664.

//@ pretty-expanded FIXME #23616

#![allow(dead_code)]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Test that we normalize associated types that appear in bounds; if
// we didn't, the call to `self.split2()` fails to type check.

//@ pretty-expanded FIXME #23616

use std::marker::PhantomData;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Test that we normalize associated types that appear in bounds; if
// we didn't, the call to `self.split2()` fails to type check.

//@ pretty-expanded FIXME #23616

use std::marker::PhantomData;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// appear in associated type bindings in object types, which were not
// being properly flagged.

//@ pretty-expanded FIXME #23616

use std::ops::{Shl, Shr};
use std::cell::RefCell;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#![allow(unused_variables)]
// Test a where clause that uses a non-normalized projection type.

//@ pretty-expanded FIXME #23616

trait Int
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ check-pass
//@ pretty-expanded FIXME #23616

trait Foo<T> {
type Bar;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//@ run-pass
// Test associated type references in structure fields.

//@ pretty-expanded FIXME #23616

trait Test {
type V;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Regression test for #20582. This test caused an ICE related to
// inconsistent region erasure in codegen.

//@ pretty-expanded FIXME #23616

struct Foo<'a> {
buf: &'a[u8]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ check-pass
//@ pretty-expanded FIXME #23616

trait Get<T> {
fn get(&self) -> T;
Expand Down
1 change: 0 additions & 1 deletion tests/ui/associated-types/issue-19129-1.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ check-pass
//@ pretty-expanded FIXME #23616

trait Trait<Input> {
type Output;
Expand Down
1 change: 0 additions & 1 deletion tests/ui/associated-types/issue-19129-2.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ check-pass
#![allow(unused_variables)]
//@ pretty-expanded FIXME #23616

trait Trait<Input> {
type Output;
Expand Down
1 change: 0 additions & 1 deletion tests/ui/associated-types/issue-20763-1.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ check-pass
#![allow(dead_code)]
//@ pretty-expanded FIXME #23616

trait T0 {
type O;
Expand Down
1 change: 0 additions & 1 deletion tests/ui/associated-types/issue-20763-2.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ check-pass
#![allow(dead_code)]
//@ pretty-expanded FIXME #23616

trait T0 {
type O;
Expand Down
1 change: 0 additions & 1 deletion tests/ui/associated-types/issue-21363.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ check-pass
//@ pretty-expanded FIXME #23616

#![no_implicit_prelude]

Expand Down
1 change: 0 additions & 1 deletion tests/ui/associated-types/issue-21726.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// subtyping of projection types that resulted in an unconstrained
// region, yielding region inference failures.

//@ pretty-expanded FIXME #23616

fn main() { }

Expand Down
1 change: 0 additions & 1 deletion tests/ui/associated-types/issue-22828.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Test transitive analysis for associated types. Collected types
// should be normalized and new obligations generated.

//@ pretty-expanded FIXME #23616

trait Foo {
type A;
Expand Down
1 change: 0 additions & 1 deletion tests/ui/attr-start.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ run-pass
//@ pretty-expanded FIXME #23616

#![feature(start)]

Expand Down
1 change: 0 additions & 1 deletion tests/ui/attributes/attr-before-view-item.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ build-pass (FIXME(62277): could be check-pass?)
//@ pretty-expanded FIXME #23616

#![feature(rustc_attrs)]
#![feature(test)]
Expand Down
1 change: 0 additions & 1 deletion tests/ui/attributes/attr-before-view-item2.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ build-pass (FIXME(62277): could be check-pass?)
//@ pretty-expanded FIXME #23616

#![feature(rustc_attrs)]
#![feature(test)]
Expand Down
1 change: 0 additions & 1 deletion tests/ui/attributes/attr-mix-new.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ build-pass (FIXME(62277): could be check-pass?)
//@ pretty-expanded FIXME #23616

#![feature(rustc_attrs)]

Expand Down
1 change: 0 additions & 1 deletion tests/ui/attributes/method-attributes.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ build-pass (FIXME(62277): could be check-pass?)
//@ pp-exact - Make sure we print all the attributes
//@ pretty-expanded FIXME #23616

#![feature(rustc_attrs)]

Expand Down
1 change: 0 additions & 1 deletion tests/ui/attributes/variant-attributes.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ build-pass (FIXME(62277): could be check-pass?)
//@ pp-exact - Make sure we actually print the attributes
//@ pretty-expanded FIXME #23616

#![allow(non_camel_case_types)]
#![feature(rustc_attrs)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ run-pass
#![allow(dead_code)]
//@ pretty-expanded FIXME #23616

struct Foo {
x: isize,
Expand Down
1 change: 0 additions & 1 deletion tests/ui/bench/issue-32062.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ run-pass

//@ pretty-expanded FIXME #23616

fn main() {
let _ = test(Some(0).into_iter());
Expand Down
1 change: 0 additions & 1 deletion tests/ui/binding/inconsistent-lifetime-mismatch.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ run-pass
#![allow(dead_code)]
//@ pretty-expanded FIXME #23616

fn foo(_: &[&str]) {}

Expand Down
1 change: 0 additions & 1 deletion tests/ui/binding/match-naked-record-expr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ run-pass
//@ pretty-expanded FIXME #23616

struct X { x: isize }

Expand Down
1 change: 0 additions & 1 deletion tests/ui/binding/match-naked-record.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ run-pass
#![allow(dead_code)]
//@ pretty-expanded FIXME #23616

struct X { x: isize }

Expand Down
1 change: 0 additions & 1 deletion tests/ui/binding/match-path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#![allow(non_camel_case_types)]


//@ pretty-expanded FIXME #23616

mod m1 {
pub enum foo { foo1, foo2, }
Expand Down
1 change: 0 additions & 1 deletion tests/ui/binding/match-pattern-simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#![allow(dead_code)]


//@ pretty-expanded FIXME #23616

fn altsimple(f: isize) { match f { _x => () } }

Expand Down
1 change: 0 additions & 1 deletion tests/ui/binding/match-phi.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//@ run-pass
#![allow(dead_code)]
#![allow(unused_assignments)]
//@ pretty-expanded FIXME #23616
#![allow(non_camel_case_types)]
#![allow(unused_variables)]

Expand Down
1 change: 0 additions & 1 deletion tests/ui/binding/match-range-static.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ run-pass
//@ pretty-expanded FIXME #23616
#![allow(non_upper_case_globals)]

const s: isize = 1;
Expand Down
1 change: 0 additions & 1 deletion tests/ui/binding/match-value-binding-in-guard-3291.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ run-pass
//@ pretty-expanded FIXME #23616

fn foo(x: Option<Box<isize>>, b: bool) -> isize {
match x {
Expand Down
Loading

0 comments on commit 6263068

Please sign in to comment.