Skip to content

Commit 277feac

Browse files
committed
Use LocalExpnId where possible.
1 parent abf449f commit 277feac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/utils.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use rustc_ast::ast::{
66
};
77
use rustc_ast::ptr;
88
use rustc_ast_pretty::pprust;
9-
use rustc_span::{sym, symbol, BytePos, ExpnId, Span, Symbol, SyntaxContext};
9+
use rustc_span::{sym, symbol, BytePos, LocalExpnId, Span, Symbol, SyntaxContext};
1010
use unicode_width::UnicodeWidthStr;
1111

1212
use crate::comment::{filter_normal_code, CharClasses, FullCodeCharKind, LineClasses};
@@ -675,7 +675,7 @@ pub(crate) trait NodeIdExt {
675675

676676
impl NodeIdExt for NodeId {
677677
fn root() -> NodeId {
678-
NodeId::placeholder_from_expn_id(ExpnId::root())
678+
NodeId::placeholder_from_expn_id(LocalExpnId::ROOT)
679679
}
680680
}
681681

0 commit comments

Comments
 (0)