Skip to content

Commit 7db37a3

Browse files
committed
Make Sized: Thin
1 parent 922958c commit 7db37a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/marker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ unsafe impl<T: Sync + PointeeSized> Send for &T {}
157157
// and we know that the supertraits are always implemented if the subtrait is just by looking at
158158
// the builtin impls.
159159
#[rustc_coinductive]
160-
pub trait Sized: MetaSized {
160+
pub trait Sized: MetaSized + crate::ptr::Thin {
161161
// Empty.
162162
}
163163

tests/ui/associated-types/ident-from-macro-expansion.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ LL | T::$id
1414
| --- due to this macro variable
1515
...
1616
LL | let x: type_dependent!(T, Assoc);
17-
| ^^^^^ associated type `Assoc` not found
17+
| ^^^^^ help: `T` has the following associated type: `Metadata`
1818

1919
error: aborting due to 2 previous errors
2020

0 commit comments

Comments
 (0)