mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 09:53:26 +00:00
Address nit by @flaper87
This commit is contained in:
parent
4e789e03be
commit
17358d1d21
@ -155,7 +155,7 @@ impl<'cx, 'tcx> OrphanChecker<'cx, 'tcx> {
|
||||
// We only want to permit structs/enums, but not *all* structs/enums.
|
||||
// They must be local to the current crate, so that people
|
||||
// can't do `unsafe impl Send for Rc<SomethingLocal>` or
|
||||
// `unsafe impl !Send for Box<SomethingLocalAndSend>`.
|
||||
// `impl !Send for Box<SomethingLocalAndSend>`.
|
||||
Some(self_def_id) => {
|
||||
if self_def_id.krate == ast::LOCAL_CRATE {
|
||||
None
|
||||
|
Loading…
Reference in New Issue
Block a user