You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #147251 - jackh726:global-cache-non-concurrent-change, r=lcnr
Do not assert that a change in global cache only happens when concurrent
Fixesrust-lang/trait-system-refactor-initiative#234
I think it should just be safe to remove this assert (rather than delaying a bug). If the previous and current result are the same, I wouldn't expect issues.
r? lcnr
Copy file name to clipboardExpand all lines: tests/ui/delegation/unsupported.current.stderr
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,43 +1,43 @@
1
-
error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsupported.rs:21:5: 21:24>::opaque_ret::{anon_assoc#0}`
2
-
--> $DIR/unsupported.rs:22:25
1
+
error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsupported.rs:29:5: 29:24>::opaque_ret::{anon_assoc#0}`
2
+
--> $DIR/unsupported.rs:30:25
3
3
|
4
4
LL | reuse to_reuse::opaque_ret;
5
5
| ^^^^^^^^^^
6
6
|
7
7
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
8
-
--> $DIR/unsupported.rs:22:25
8
+
--> $DIR/unsupported.rs:30:25
9
9
|
10
10
LL | reuse to_reuse::opaque_ret;
11
11
| ^^^^^^^^^^
12
-
= note: ...which again requires computing type of `opaque::<impl at $DIR/unsupported.rs:21:5: 21:24>::opaque_ret::{anon_assoc#0}`, completing the cycle
13
-
note: cycle used when checking assoc item `opaque::<impl at $DIR/unsupported.rs:21:5: 21:24>::opaque_ret` is compatible with trait definition
14
-
--> $DIR/unsupported.rs:22:25
12
+
= note: ...which again requires computing type of `opaque::<impl at $DIR/unsupported.rs:29:5: 29:24>::opaque_ret::{anon_assoc#0}`, completing the cycle
13
+
note: cycle used when checking assoc item `opaque::<impl at $DIR/unsupported.rs:29:5: 29:24>::opaque_ret` is compatible with trait definition
14
+
--> $DIR/unsupported.rs:30:25
15
15
|
16
16
LL | reuse to_reuse::opaque_ret;
17
17
| ^^^^^^^^^^
18
18
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
19
19
20
-
error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsupported.rs:24:5: 24:25>::opaque_ret::{anon_assoc#0}`
21
-
--> $DIR/unsupported.rs:25:24
20
+
error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsupported.rs:32:5: 32:25>::opaque_ret::{anon_assoc#0}`
21
+
--> $DIR/unsupported.rs:33:24
22
22
|
23
23
LL | reuse ToReuse::opaque_ret;
24
24
| ^^^^^^^^^^
25
25
|
26
26
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
27
-
--> $DIR/unsupported.rs:25:24
27
+
--> $DIR/unsupported.rs:33:24
28
28
|
29
29
LL | reuse ToReuse::opaque_ret;
30
30
| ^^^^^^^^^^
31
-
= note: ...which again requires computing type of `opaque::<impl at $DIR/unsupported.rs:24:5: 24:25>::opaque_ret::{anon_assoc#0}`, completing the cycle
32
-
note: cycle used when checking assoc item `opaque::<impl at $DIR/unsupported.rs:24:5: 24:25>::opaque_ret` is compatible with trait definition
33
-
--> $DIR/unsupported.rs:25:24
31
+
= note: ...which again requires computing type of `opaque::<impl at $DIR/unsupported.rs:32:5: 32:25>::opaque_ret::{anon_assoc#0}`, completing the cycle
32
+
note: cycle used when checking assoc item `opaque::<impl at $DIR/unsupported.rs:32:5: 32:25>::opaque_ret` is compatible with trait definition
33
+
--> $DIR/unsupported.rs:33:24
34
34
|
35
35
LL | reuse ToReuse::opaque_ret;
36
36
| ^^^^^^^^^^
37
37
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsupported.rs:29:5: 29:24>::opaque_ret::{anon_assoc#0}`
2
+
--> $DIR/unsupported.rs:30:25
3
+
|
4
+
LL | reuse to_reuse::opaque_ret;
5
+
| ^^^^^^^^^^
6
+
|
7
+
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
8
+
--> $DIR/unsupported.rs:30:25
9
+
|
10
+
LL | reuse to_reuse::opaque_ret;
11
+
| ^^^^^^^^^^
12
+
= note: ...which again requires computing type of `opaque::<impl at $DIR/unsupported.rs:29:5: 29:24>::opaque_ret::{anon_assoc#0}`, completing the cycle
13
+
= note: cycle used when computing implied outlives bounds for `<u8 as opaque::ToReuse>::opaque_ret::{anon_assoc#0}` (hack disabled = false)
14
+
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
15
+
16
+
error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsupported.rs:32:5: 32:25>::opaque_ret::{anon_assoc#0}`
17
+
--> $DIR/unsupported.rs:33:24
18
+
|
19
+
LL | reuse ToReuse::opaque_ret;
20
+
| ^^^^^^^^^^
21
+
|
22
+
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
23
+
--> $DIR/unsupported.rs:33:24
24
+
|
25
+
LL | reuse ToReuse::opaque_ret;
26
+
| ^^^^^^^^^^
27
+
= note: ...which again requires computing type of `opaque::<impl at $DIR/unsupported.rs:32:5: 32:25>::opaque_ret::{anon_assoc#0}`, completing the cycle
28
+
= note: cycle used when computing implied outlives bounds for `<u16 as opaque::ToReuse>::opaque_ret::{anon_assoc#0}` (hack disabled = false)
29
+
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
30
+
31
+
error: recursive delegation is not supported yet
32
+
--> $DIR/unsupported.rs:46:22
33
+
|
34
+
LL | pub reuse to_reuse2::foo;
35
+
| --- callee defined here
36
+
...
37
+
LL | reuse to_reuse1::foo;
38
+
| ^^^
39
+
40
+
error[E0283]: type annotations needed
41
+
--> $DIR/unsupported.rs:56:18
42
+
|
43
+
LL | reuse Trait::foo;
44
+
| ^^^ cannot infer type
45
+
|
46
+
= note: cannot satisfy `_: effects::Trait`
47
+
48
+
error: aborting due to 4 previous errors
49
+
50
+
Some errors have detailed explanations: E0283, E0391.
51
+
For more information about an error, try `rustc --explain E0283`.
0 commit comments