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
cc #82920
The value of a `DefId` is not stable across compilation sessions. If we
sort by `DefIds`, and then include the sorted list as part of a query
result, then the query will no longer be a pure function of its input
(e.g. the `DefId` can change while the `DefPathHash` remains the same).
For reasons that are not yet clear, this issue lead to segfaults and
garbage slice index values when the project in the linked issue was
built with a particular incremental cache.
| ------------- -------------- first non-auto trait
17
17
| |
18
-
| first non-auto trait
18
+
| additional non-auto trait
19
19
...
20
20
LL | let _: Box<dyn Foo>;
21
21
| ^^^
22
22
| |
23
23
| trait alias used in trait object type (additional use)
24
24
| trait alias used in trait object type (first use)
25
25
|
26
-
= help: consider creating a new trait with all of these as super-traits and using that trait here instead: `trait NewTrait: std::io::Read + std::io::Write {}`
26
+
= help: consider creating a new trait with all of these as super-traits and using that trait here instead: `trait NewTrait: std::io::Write + std::io::Read {}`
27
27
= note: auto-traits like `Send` and `Sync` are traits that have special properties; for more information on them, visit <https://doc.rust-lang.org/reference/special-types-and-traits.html#auto-traits>
Copy file name to clipboardExpand all lines: src/test/ui/traits/item-privacy.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -116,8 +116,8 @@ LL | C::A;
116
116
| ^^^^ `assoc_const::C` cannot be made into an object
117
117
|
118
118
= help: consider moving `C` to another trait
119
-
= help: consider moving `B` to another trait
120
119
= help: consider moving `A` to another trait
120
+
= help: consider moving `B` to another trait
121
121
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
0 commit comments