Skip to content

Commit

Permalink
Add note to TyS::needs_drop about union dependency on it
Browse files Browse the repository at this point in the history
For now, part of unstable feature untagged_unions.
  • Loading branch information
bluss committed Jan 13, 2019
1 parent f4b2d71 commit 87c66a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc/ty/util.rs
Expand Up @@ -740,6 +740,8 @@ impl<'a, 'tcx> ty::TyS<'tcx> {
///
/// (Note that this implies that if `ty` has a destructor attached,
/// then `needs_drop` will definitely return `true` for `ty`.)
///
/// Note that this method is used to check eligible types in unions.
#[inline]
pub fn needs_drop(&'tcx self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
Expand Down

0 comments on commit 87c66a8

Please sign in to comment.