Skip to content

Commit d6018cf

Browse files
committed
fix rustdoc-ui tests
1 parent fe10b22 commit d6018cf

6 files changed

Lines changed: 3 additions & 38 deletions

File tree

tests/rustdoc-ui/const-evalutation-ice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ check-pass
12
// Just check we don't get an ICE for `N`.
23

34
use std::cell::Cell;
@@ -8,4 +9,3 @@ pub struct S {
89
}
910

1011
pub const N: usize = 0 - (mem::size_of::<S>() != 400) as usize;
11-
//~^ ERROR overflow

tests/rustdoc-ui/const-evalutation-ice.stderr

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
//@ check-pass
12
//@ only-64bit
23

34
#![feature(const_transmute)]
45

56
pub const ZST: &[u8] = unsafe { std::mem::transmute(1usize) };
6-
//~^ ERROR transmuting from 8-byte type to 16-byte type

tests/rustdoc-ui/issues/issue-79494.stderr

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1+
//@ check-pass
12
//@ compile-flags: -Z track-diagnostics
23

3-
// Normalize the emitted location so this doesn't need
4-
// updating everytime someone adds or removes a line.
5-
//@ normalize-stderr: ".rs:\d+:\d+" -> ".rs:LL:CC"
6-
74
struct A;
85
struct B;
96

107
pub const S: A = B;
11-
//~^ ERROR mismatched types
12-
//~| NOTE created at
13-
//~| NOTE expected `A`, found `B`

tests/rustdoc-ui/track-diagnostics.stderr

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)