mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Mark edition field as unused
This commit is contained in:
parent
2cf5d8811a
commit
e7852803c5
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ pub(crate) struct Parser<'t> {
|
|||
pos: usize,
|
||||
events: Vec<Event>,
|
||||
steps: Cell<u32>,
|
||||
edition: Edition,
|
||||
_edition: Edition,
|
||||
}
|
||||
|
||||
#[non_exhaustive]
|
||||
|
@ -40,7 +40,7 @@ static PARSER_STEP_LIMIT: Limit = Limit::new(15_000_000);
|
|||
|
||||
impl<'t> Parser<'t> {
|
||||
pub(super) fn new(inp: &'t Input, edition: Edition) -> Parser<'t> {
|
||||
Parser { inp, pos: 0, events: Vec::new(), steps: Cell::new(0), edition }
|
||||
Parser { inp, pos: 0, events: Vec::new(), steps: Cell::new(0), _edition: edition }
|
||||
}
|
||||
|
||||
pub(crate) fn finish(self) -> Vec<Event> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue