Skip to content

Commit 010f4db

Browse files
Update UI tests for SyncView rename
1 parent 714d784 commit 010f4db

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

tests/ui/explicit-tail-calls/callee_is_weird.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
fn f() {}
55

66
fn g() {
7-
become std::sync::Exclusive::new(f)() //~ error: tail calls can only be performed with function definitions or pointers
7+
become std::sync::SyncView::new(f)() //~ error: tail calls can only be performed with function definitions or pointers
88
}
99

1010
fn h() {
11-
become (&mut &std::sync::Exclusive::new(f))() //~ error: tail calls can only be performed with function definitions or pointers
11+
become (&mut &std::sync::SyncView::new(f))() //~ error: tail calls can only be performed with function definitions or pointers
1212
}
1313

1414
fn i() {

tests/ui/explicit-tail-calls/callee_is_weird.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
error: tail calls can only be performed with function definitions or pointers
22
--> $DIR/callee_is_weird.rs:7:12
33
|
4-
LL | become std::sync::Exclusive::new(f)()
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
LL | become std::sync::SyncView::new(f)()
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: callee has type `Exclusive<fn() {f}>`
7+
= note: callee has type `SyncView<fn() {f}>`
88

99
error: tail calls can only be performed with function definitions or pointers
1010
--> $DIR/callee_is_weird.rs:11:12
1111
|
12-
LL | become (&mut &std::sync::Exclusive::new(f))()
13-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12+
LL | become (&mut &std::sync::SyncView::new(f))()
13+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1414
|
15-
= note: callee has type `&Exclusive<fn() {f}>`
15+
= note: callee has type `&SyncView<fn() {f}>`
1616

1717
error: tail calls can only be performed with function definitions or pointers
1818
--> $DIR/callee_is_weird.rs:22:12

tests/ui/impl-trait/where-allowed.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ LL | fn in_impl_Fn_return_in_return() -> &'static impl Fn() -> impl Debug { pani
387387
where A: std::marker::Tuple, F: Fn<A>, F: ?Sized;
388388
- impl<Args, F, A> Fn<Args> for Box<F, A>
389389
where Args: std::marker::Tuple, F: Fn<Args>, A: Allocator, F: ?Sized;
390-
- impl<F, Args> Fn<Args> for Exclusive<F>
390+
- impl<F, Args> Fn<Args> for SyncView<F>
391391
where F: Sync, F: Fn<Args>, Args: std::marker::Tuple;
392392

393393
error: unconstrained opaque type

tests/ui/traits/next-solver/well-formed-in-relate.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LL | x = unconstrained_map();
1212
where A: std::marker::Tuple, F: Fn<A>, F: ?Sized;
1313
- impl<Args, F, A> Fn<Args> for Box<F, A>
1414
where Args: std::marker::Tuple, F: Fn<Args>, A: Allocator, F: ?Sized;
15-
- impl<F, Args> Fn<Args> for Exclusive<F>
15+
- impl<F, Args> Fn<Args> for SyncView<F>
1616
where F: Sync, F: Fn<Args>, Args: std::marker::Tuple;
1717
note: required by a bound in `unconstrained_map`
1818
--> $DIR/well-formed-in-relate.rs:21:25

0 commit comments

Comments
 (0)