We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e565f1 commit 64fbdc3Copy full SHA for 64fbdc3
compiler/rustc_traits/src/dropck_outlives.rs
@@ -292,7 +292,9 @@ pub(crate) fn adt_dtorck_constraint(
292
let span = tcx.def_span(def_id);
293
debug!("dtorck_constraint: {:?}", def);
294
295
- if def.is_phantom_data() {
+ if def.is_manually_drop() {
296
+ bug!("`ManuallyDrop` should have been handled by `trivial_dropck_outlives`");
297
+ } else if def.is_phantom_data() {
298
// The first generic parameter here is guaranteed to be a type because it's
299
// `PhantomData`.
300
let substs = InternalSubsts::identity_for_item(tcx, def_id);
0 commit comments