Skip to content

Commit 698b20e

Browse files
committed
update tests
1 parent 21c5cca commit 698b20e

27 files changed

+31
-25
lines changed

src/test/incremental/const-generics/issue-61516.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
struct FakeArray<T, const N: usize>(T);
66

7-
impl<T, const N: usize> FakeArray<T, { N }> {
7+
impl<T, const N: usize> FakeArray<T, N> {
88
fn len(&self) -> usize {
99
N
1010
}

src/test/ui/array-slice-vec/vec-fixed-length.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fn test_big_vec() {}
99
#[cfg(target_pointer_width = "64")]
1010
fn test_big_vec()
1111
{
12-
assert_eq!(size_of::<[u8; (1 << 32)]>(), (1 << 32));
12+
assert_eq!(size_of::<[u8; 1 << 32]>(), (1 << 32));
1313
}
1414

1515
fn main() {

src/test/ui/block-fn-coerce.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
#![allow(unused_braces)]
23

34
fn force<F>(f: F) -> isize where F: FnOnce() -> isize { return f(); }
45

src/test/ui/cleanup-rvalue-scopes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
2+
#![allow(unused_braces)]
33
#![allow(non_snake_case)]
44
#![allow(unused_variables)]
55
// Test that destructors for rvalue temporaries run either at end of

src/test/ui/coerce/coerce-expect-unsized.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
#![allow(unused_braces)]
23
#![feature(box_syntax)]
34

45
use std::cell::RefCell;

src/test/ui/coerce/coerce-overloaded-autoderef.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
#![allow(unused_braces)]
23
#![allow(dead_code)]
34
// pretty-expanded FIXME #23616
45

src/test/ui/const-generics/issues/issue-62504.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ trait HasSize {
77
const SIZE: usize;
88
}
99

10-
impl<const X: usize> HasSize for ArrayHolder<{ X }> {
10+
impl<const X: usize> HasSize for ArrayHolder<X> {
1111
const SIZE: usize = X;
1212
}
1313

1414
struct ArrayHolder<const X: usize>([u32; X]);
1515

16-
impl<const X: usize> ArrayHolder<{ X }> {
16+
impl<const X: usize> ArrayHolder<X> {
1717
pub const fn new() -> Self {
1818
ArrayHolder([0; Self::SIZE])
1919
//~^ ERROR: mismatched types

src/test/ui/const-generics/issues/issue-70125-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ trait Foo<const X: usize> {
1313
}
1414
}
1515

16-
impl Foo<{3}> for () {}
16+
impl Foo<3> for () {}

src/test/ui/consts/const-block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
2+
#![allow(unused_braces)]
33
#![allow(dead_code)]
44
#![allow(unused_unsafe)]
55

src/test/ui/expr-block-generic-unique1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
2+
#![allow(unused_braces)]
33
#![feature(box_syntax)]
44

55
fn test_generic<T, F>(expected: Box<T>, eq: F) where T: Clone, F: FnOnce(Box<T>, Box<T>) -> bool {

0 commit comments

Comments
 (0)