Skip to content

Commit

Permalink
Work at progress rust-lang#2
Browse files Browse the repository at this point in the history
  • Loading branch information
artyoma02 committed Oct 11, 2023
1 parent b18ddef commit 58449cf
Show file tree
Hide file tree
Showing 3 changed files with 859 additions and 336 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_ast/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,10 @@ impl Token {

pub fn span(self) -> Span {
self.span.to_span()
}
}

pub fn set_span(self, span: Span) -> Self {
Token {self.kind, SpanChain::new(vec![span])}
pub fn set_span(self, span: SpanChain) -> Self {
Token::new(self.kind, SpanChain::new(vec![span]))
}

/// Some token that will be thrown away later.
Expand Down
Loading

0 comments on commit 58449cf

Please sign in to comment.