Skip to content

Commit f5a1fc7

Browse files
Update uitests
1 parent e668836 commit f5a1fc7

29 files changed

Lines changed: 156 additions & 156 deletions

tests/ui/attributes/crate-only-as-outer.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: crate-level attribute should be an inner attribute: add an exclamation ma
44
LL | #[crate_name = "owo"]
55
| ^^^^^^^^^^^^^^^^^^^^^
66
|
7-
note: This attribute does not have an `!`, which means it is applied to this function
7+
note: this attribute does not have an `!`, which means it is applied to this function
88
--> $DIR/crate-only-as-outer.rs:5:1
99
|
1010
LL | fn main() {}

tests/ui/attributes/malformed-attrs.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ warning: crate-level attribute should be an inner attribute: add an exclamation
771771
LL | #[crate_name]
772772
| ^^^^^^^^^^^^^
773773
|
774-
note: This attribute does not have an `!`, which means it is applied to this function
774+
note: this attribute does not have an `!`, which means it is applied to this function
775775
--> $DIR/malformed-attrs.rs:116:1
776776
|
777777
LL | / fn test() {

tests/ui/attributes/malformed-no-std.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ error: crate-level attribute should be an inner attribute: add an exclamation ma
5858
LL | #[no_std]
5959
| ^^^^^^^^^
6060
|
61-
note: This attribute does not have an `!`, which means it is applied to this extern crate
61+
note: this attribute does not have an `!`, which means it is applied to this extern crate
6262
--> $DIR/malformed-no-std.rs:26:1
6363
|
6464
LL | extern crate core;
@@ -75,7 +75,7 @@ error: crate-level attribute should be an inner attribute: add an exclamation ma
7575
LL | #[no_core]
7676
| ^^^^^^^^^^
7777
|
78-
note: This attribute does not have an `!`, which means it is applied to this extern crate
78+
note: this attribute does not have an `!`, which means it is applied to this extern crate
7979
--> $DIR/malformed-no-std.rs:26:1
8080
|
8181
LL | extern crate core;

tests/ui/consts/const-mut-refs/issue-76510.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ error[E0764]: mutable borrows of temporaries that have their lifetime extended u
44
LL | const S: &'static mut str = &mut " hello ";
55
| ^^^^^^^^^^^^^^ this mutable borrow refers to such a temporary
66
|
7-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
8-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
9-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
7+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
8+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
9+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
1010

1111
error: aborting due to 1 previous error
1212

tests/ui/consts/const-mut-refs/mut_ref_in_final.stderr

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ error[E0764]: mutable borrows of temporaries that have their lifetime extended u
44
LL | const B: *mut i32 = &mut 4;
55
| ^^^^^^ this mutable borrow refers to such a temporary
66
|
7-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
8-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
9-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
7+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
8+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
9+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
1010

1111
error[E0764]: mutable borrows of temporaries that have their lifetime extended until the end of the program are not allowed
1212
--> $DIR/mut_ref_in_final.rs:21:35
1313
|
1414
LL | const B3: Option<&mut i32> = Some(&mut 42);
1515
| ^^^^^^^ this mutable borrow refers to such a temporary
1616
|
17-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
18-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
19-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
17+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
18+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
19+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
2020

2121
error[E0716]: temporary value dropped while borrowed
2222
--> $DIR/mut_ref_in_final.rs:24:42
@@ -86,39 +86,39 @@ error[E0764]: mutable borrows of temporaries that have their lifetime extended u
8686
LL | static RAW_MUT_CAST_S: SyncPtr<i32> = SyncPtr { x : &mut 42 as *mut _ as *const _ };
8787
| ^^^^^^^ this mutable borrow refers to such a temporary
8888
|
89-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
90-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
91-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
89+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
90+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
91+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
9292

9393
error[E0764]: mutable borrows of temporaries that have their lifetime extended until the end of the program are not allowed
9494
--> $DIR/mut_ref_in_final.rs:73:54
9595
|
9696
LL | static RAW_MUT_COERCE_S: SyncPtr<i32> = SyncPtr { x: &mut 0 };
9797
| ^^^^^^ this mutable borrow refers to such a temporary
9898
|
99-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
100-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
101-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
99+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
100+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
101+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
102102

103103
error[E0764]: mutable borrows of temporaries that have their lifetime extended until the end of the program are not allowed
104104
--> $DIR/mut_ref_in_final.rs:75:52
105105
|
106106
LL | const RAW_MUT_CAST_C: SyncPtr<i32> = SyncPtr { x : &mut 42 as *mut _ as *const _ };
107107
| ^^^^^^^ this mutable borrow refers to such a temporary
108108
|
109-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
110-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
111-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
109+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
110+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
111+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
112112

113113
error[E0764]: mutable borrows of temporaries that have their lifetime extended until the end of the program are not allowed
114114
--> $DIR/mut_ref_in_final.rs:77:53
115115
|
116116
LL | const RAW_MUT_COERCE_C: SyncPtr<i32> = SyncPtr { x: &mut 0 };
117117
| ^^^^^^ this mutable borrow refers to such a temporary
118118
|
119-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
120-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
121-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
119+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
120+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
121+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
122122

123123
error[E0080]: constructing invalid value at .<enum-variant(Some)>.0: encountered a dangling reference (0x2a[noalloc] has no provenance)
124124
--> $DIR/mut_ref_in_final.rs:86:5

tests/ui/consts/const-promoted-opaque.atomic.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ error[E0492]: interior mutable shared borrows of temporaries that have their lif
1313
LL | const BAZ: &Foo = &FOO;
1414
| ^^^^ this borrow of an interior mutable value refers to such a temporary
1515
|
16-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
17-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
18-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
16+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
17+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
18+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
1919

2020
error[E0716]: temporary value dropped while borrowed
2121
--> $DIR/const-promoted-opaque.rs:40:26

tests/ui/consts/issue-17718-const-bad-values.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ error[E0764]: mutable borrows of temporaries that have their lifetime extended u
44
LL | const C1: &'static mut [usize] = &mut [];
55
| ^^^^^^^ this mutable borrow refers to such a temporary
66
|
7-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
8-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
9-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
7+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
8+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
9+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
1010

1111
error: aborting due to 1 previous error
1212

tests/ui/consts/issue-17718-const-borrow.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@ error[E0492]: interior mutable shared borrows of temporaries that have their lif
44
LL | const B: &'static UnsafeCell<usize> = &A;
55
| ^^ this borrow of an interior mutable value refers to such a temporary
66
|
7-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
8-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
9-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
7+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
8+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
9+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
1010

1111
error[E0492]: interior mutable shared borrows of temporaries that have their lifetime extended until the end of the program are not allowed
1212
--> $DIR/issue-17718-const-borrow.rs:9:39
1313
|
1414
LL | const E: &'static UnsafeCell<usize> = &D.a;
1515
| ^^^^ this borrow of an interior mutable value refers to such a temporary
1616
|
17-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
18-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
19-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
17+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
18+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
19+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
2020

2121
error[E0492]: interior mutable shared borrows of temporaries that have their lifetime extended until the end of the program are not allowed
2222
--> $DIR/issue-17718-const-borrow.rs:11:23
2323
|
2424
LL | const F: &'static C = &D;
2525
| ^^ this borrow of an interior mutable value refers to such a temporary
2626
|
27-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
28-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
29-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
27+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
28+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
29+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
3030

3131
error: aborting due to 3 previous errors
3232

tests/ui/consts/partial_qualif.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ error[E0492]: interior mutable shared borrows of temporaries that have their lif
44
LL | &{a}
55
| ^^^^ this borrow of an interior mutable value refers to such a temporary
66
|
7-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
8-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
9-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
7+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
8+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
9+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
1010

1111
error: aborting due to 1 previous error
1212

tests/ui/consts/qualif_overwrite.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ error[E0492]: interior mutable shared borrows of temporaries that have their lif
44
LL | &{a}
55
| ^^^^ this borrow of an interior mutable value refers to such a temporary
66
|
7-
= note: Temporaries in constants and statics can have their lifetime extended until the end of the program
8-
= note: To avoid accidentally creating global mutable state, such temporaries must be immutable
9-
= help: If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
7+
= note: temporaries in constants and statics can have their lifetime extended until the end of the program
8+
= note: to avoid accidentally creating global mutable state, such temporaries must be immutable
9+
= help: if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
1010

1111
error: aborting due to 1 previous error
1212

0 commit comments

Comments
 (0)