Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e1fc9ff

Browse files
committed
Auto merge of rust-lang#80539 - JohnTitor:ui-test-root-cleanup, r=petrochenkov
Reduce the entry on `src/test/ui` (UI test root) CC rust-lang#73494, similar to rust-lang#79776. r? `@petrochenkov`
2 parents f8ab56b + 9fb9f29 commit e1fc9ff

File tree

143 files changed

+20
-28
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+20
-28
lines changed
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
// run-pass
2-
#![allow(dead_code)]
3-
#![allow(stable_features)]
4-
5-
#![feature(const_indexing)]
1+
const A: [i32; 0] = [];
2+
const B: i32 = A[1];
3+
//~^ index out of bounds: the length is 0 but the index is 1
4+
//~| ERROR any use of this value will cause an error
65

76
fn main() {
8-
const ARR: [i32; 6] = [42, 43, 44, 45, 46, 47];
9-
const IDX: usize = 3;
10-
const VAL: i32 = ARR[IDX];
11-
const BLUB: [i32; (ARR[0] - 41) as usize] = [5];
7+
let _ = B;
128
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// run-pass
2+
#![allow(dead_code)]
3+
#![allow(stable_features)]
4+
5+
#![feature(const_indexing)]
6+
7+
fn main() {
8+
const ARR: [i32; 6] = [42, 43, 44, 45, 46, 47];
9+
const IDX: usize = 3;
10+
const VAL: i32 = ARR[IDX];
11+
const BLUB: [i32; (ARR[0] - 41) as usize] = [5];
12+
}
File renamed without changes.

0 commit comments

Comments
 (0)