Skip to content

Commit 5098c6c

Browse files
Rollup merge of #141603 - nnethercote:reduce-P, r=fee1-dead
Reduce `ast::ptr::P` to a typedef of `Box` As per the MCP at rust-lang/compiler-team#878. r? `@fee1-dead`
2 parents 99adefc + 79a9897 commit 5098c6c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/modules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impl<'ast, 'psess, 'c> ModResolver<'ast, 'psess> {
174174
) -> Result<(), ModuleResolutionError> {
175175
for item in items {
176176
if is_cfg_if(&item) {
177-
self.visit_cfg_if(Cow::Owned(item.into_inner()))?;
177+
self.visit_cfg_if(Cow::Owned(*item))?;
178178
continue;
179179
}
180180

src/parse/macros/cfg_if.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn parse_cfg_if_inner<'a>(
6262

6363
while parser.token != TokenKind::CloseBrace && parser.token.kind != TokenKind::Eof {
6464
let item = match parser.parse_item(ForceCollect::No) {
65-
Ok(Some(item_ptr)) => item_ptr.into_inner(),
65+
Ok(Some(item_ptr)) => *item_ptr,
6666
Ok(None) => continue,
6767
Err(err) => {
6868
err.cancel();

0 commit comments

Comments
 (0)