Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uprustc_privacy: Fix bugs in SanePrivacyVisitor #29726
Conversation
rust-highfive
assigned
alexcrichton
Nov 9, 2015
This comment has been minimized.
This comment has been minimized.
|
(rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
I'm not actually sure if the part of SanePrivacyVisitor ensuring that there's no |
alexcrichton
reviewed
Nov 10, 2015
| hir::ItemTrait(..) | hir::ItemDefaultImpl(..) | | ||
| hir::ItemConst(..) | hir::ItemStatic(..) | hir::ItemStruct(..) | | ||
| hir::ItemFn(..) | hir::ItemMod(..) | hir::ItemTy(..) | | ||
| hir::ItemExternCrate(_) | hir::ItemUse(_) => {} |
This comment has been minimized.
This comment has been minimized.
alexcrichton
Nov 10, 2015
Member
I personally like to always have exhaustive matches wherever possible, e.g. it's easy to skim over this list and say "ah yeah pub is allowed on each of these". Perhaps this part could stay?
This comment has been minimized.
This comment has been minimized.
|
Looks good to me! (just a minor nit) Scheduling a crater run just to double check |
alexcrichton
added
the
S-waiting-on-crater
label
Nov 10, 2015
This comment has been minimized.
This comment has been minimized.
|
Crater reports one regression, but I believe it's spurious, so otherwise this should be good to go. |
alexcrichton
removed
the
S-waiting-on-crater
label
Nov 10, 2015
This comment has been minimized.
This comment has been minimized.
|
Updated with exhaustive matching. |
petrochenkov commentedNov 9, 2015
Technically it's a [breaking-change], but I expect no breakage because, well, it's sane privacy visitor, if code is broken it must be insane by definition!