Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Goulet <[email protected]>
  • Loading branch information
saethlin and compiler-errors authored Jul 25, 2024
1 parent 775c468 commit b024b0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_middle/src/ty/sty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1864,8 +1864,8 @@ impl<'tcx> Ty<'tcx> {
// Definitely absolutely not copy.
ty::Ref(_, _, hir::Mutability::Mut) => false,

// The library has a blanket Copy impl for shared references and raw pointers,
// regardless of metadata.
// The standard library has a blanket Copy impl for shared references and raw pointers,
// for all unsized types.
ty::Ref(_, _, hir::Mutability::Not) | ty::RawPtr(..) => true,

ty::Coroutine(..) | ty::CoroutineWitness(..) => false,
Expand Down

0 comments on commit b024b0a

Please sign in to comment.