We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfdf9d3 commit 66a02ecCopy full SHA for 66a02ec
src/librustc_privacy/lib.rs
@@ -637,7 +637,7 @@ impl EmbargoVisitor<'tcx> {
637
&mut self,
638
segments: &[hir::PathSegment<'_>],
639
) {
640
- if let Some([module, segment]) = segments.rchunks_exact(2).next() {
+ if let [.., module, segment] = segments {
641
if let Some(item) = module
642
.res
643
.and_then(|res| res.mod_def_id())
0 commit comments