Refactor errors to include position, span (offset + len), and optional miette integration #290
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (13)
src/resolve.rs|198 col 40| error[E0026]: variant resolve::Error::FailedToParseIndex
does not have a field named position
--> src/resolve.rs:198:40
|
198 | Self::FailedToParseIndex { position, .. }
| ^^^^^^^^
| |
| variant resolve::Error::FailedToParseIndex
does not have this field
| help: resolve::Error::FailedToParseIndex
has a field named 0
src/resolve.rs|125 col 5| error[E0559]: variant resolve::Error::FailedToParseIndex
has no field named position
--> src/resolve.rs:291:33
|
125 | FailedToParseIndex(Positioned),
| ------------------ resolve::Error::FailedToParseIndex
defined here
...
291 | position,
| ^^^^^^^^ field does not exist
|
help: resolve::Error::FailedToParseIndex
is a tuple variant, use the appropriate syntax
|
290 | .map_err(|source| Error::FailedToParseIndex(/* error::Positionedindex::ParseIndexError /))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/resolve.rs|125 col 5| error[E0559]: variant resolve::Error::FailedToParseIndex
has no field named offset
--> src/resolve.rs:292:33
|
125 | FailedToParseIndex(Positioned),
| ------------------ resolve::Error::FailedToParseIndex
defined here
...
292 | offset,
| ^^^^^^ field does not exist
|
help: resolve::Error::FailedToParseIndex
is a tuple variant, use the appropriate syntax
|
290 | .map_err(|source| Error::FailedToParseIndex(/ error::Positionedindex::ParseIndexError /))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/resolve.rs|125 col 5| error[E0559]: variant resolve::Error::FailedToParseIndex
has no field named source
--> src/resolve.rs:293:33
|
125 | FailedToParseIndex(Positioned),
| ------------------ resolve::Error::FailedToParseIndex
defined here
...
293 | source,
| ^^^^^^ field does not exist
|
help: resolve::Error::FailedToParseIndex
is a tuple variant, use the appropriate syntax
|
290 | .map_err(|source| Error::FailedToParseIndex(/ error::Positionedindex::ParseIndexError /))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/resolve.rs|125 col 5| error[E0559]: variant resolve::Error::FailedToParseIndex
has no field named position
--> src/resolve.rs:355:13
|
125 | FailedToParseIndex(Positioned),
| ------------------ resolve::Error::FailedToParseIndex
defined here
...
355 | position,
| ^^^^^^^^ field does not exist
|
help: resolve::Error::FailedToParseIndex
is a tuple variant, use the appropriate syntax
|
354 | .map_err(|source| Error::FailedToParseIndex(/ error::Positionedindex::ParseIndexError /))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/resolve.rs|125 col 5| error[E0559]: variant resolve::Error::FailedToParseIndex
has no field named offset
--> src/resolve.rs:356:13
|
125 | FailedToParseIndex(Positioned),
| ------------------ resolve::Error::FailedToParseIndex
defined here
...
356 | offset,
| ^^^^^^ field does not exist
|
help: resolve::Error::FailedToParseIndex
is a tuple variant, use the appropriate syntax
|
354 | .map_err(|source| Error::FailedToParseIndex(/ error::Positionedindex::ParseIndexError /))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/resolve.rs|125 col 5| error[E0559]: variant resolve::Error::FailedToParseIndex
has no field named source
--> src/resolve.rs:357:13
|
125 | FailedToParseIndex(Positioned),
| ------------------ resolve::Error::FailedToParseIndex
defined here
...
357 | source,
| ^^^^^^ field does not exist
|
help: resolve::Error::FailedToParseIndex
is a tuple variant, use the appropriate syntax
|
354 | .map_err(|source| Error::FailedToParseIndex(/ error::Positionedindex::ParseIndexError /))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/resolve.rs|125 col 5| error[E0559]: variant resolve::Error::FailedToParseIndex
has no field named position
--> src/resolve.rs:399:33
|
125 | FailedToParseIndex(Positioned),
| ------------------ resolve::Error::FailedToParseIndex
defined here
...
399 | position,
| ^^^^^^^^ field does not exist
|
help: resolve::Error::FailedToParseIndex
is a tuple variant, use the appropriate syntax
|
398 | .map_err(|source| Error::FailedToParseIndex(/ error::Positionedindex::ParseIndexError /))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/resolve.rs|125 col 5| error[E0559]: variant resolve::Error::FailedToParseIndex
has no field named offset
--> src/resolve.rs:400:33
|
125 | FailedToParseIndex(Positioned),
| ------------------ resolve::Error::FailedToParseIndex
defined here
...
400 | offset,
| ^^^^^^ field does not exist
|
help: resolve::Error::FailedToParseIndex
is a tuple variant, use the appropriate syntax
|
398 | .map_err(|source| Error::FailedToParseIndex(/ error::Positionedindex::ParseIndexError /))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/resolve.rs|125 col 5| error[E0559]: variant resolve::Error::FailedToParseIndex
has no field named source
--> src/resolve.rs:401:33
|
125 | FailedToParseIndex(Positioned),
| ------------------ resolve::Error::FailedToParseIndex
defined here
...
401 | source,
| ^^^^^^ field does not exist
|
help: resolve::Error::FailedToParseIndex
is a tuple variant, use the appropriate syntax
|
398 | .map_err(|source| Error::FailedToParseIndex(/ error::Positionedindex::ParseIndexError /))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/resolve.rs|125 col 5| error[E0559]: variant resolve::Error::FailedToParseIndex
has no field named position
--> src/resolve.rs:442:33
|
125 | FailedToParseIndex(Positioned),
| ------------------ resolve::Error::FailedToParseIndex
defined here
...
442 | position,
| ^^^^^^^^ field does not exist
|
help: resolve::Error::FailedToParseIndex
is a tuple variant, use the appropriate syntax
|
441 | .map_err(|source| Error::FailedToParseIndex(/ error::Positionedindex::ParseIndexError /))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/resolve.rs|125 col 5| error[E0559]: variant resolve::Error::FailedToParseIndex
has no field named offset
--> src/resolve.rs:443:33
|
125 | FailedToParseIndex(Positioned),
| ------------------ resolve::Error::FailedToParseIndex
defined here
...
443 | offset,
| ^^^^^^ field does not exist
|
help: resolve::Error::FailedToParseIndex
is a tuple variant, use the appropriate syntax
|
441 | .map_err(|source| Error::FailedToParseIndex(/ error::Positionedindex::ParseIndexError /))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/resolve.rs|125 col 5| error[E0559]: variant resolve::Error::FailedToParseIndex
has no field named source
--> src/resolve.rs:444:33
|
125 | FailedToParseIndex(Positioned),
| ------------------ resolve::Error::FailedToParseIndex
defined here
...
444 | source,
| ^^^^^^ field does not exist
|
help: resolve::Error::FailedToParseIndex
is a tuple variant, use the appropriate syntax
|
441 | .map_err(|source| Error::FailedToParseIndex(/ error::Positionedindex::ParseIndexError */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Filtered Findings (0)
Annotations
Check failure on line 198 in src/resolve.rs
github-actions / clippy
[clippy] src/resolve.rs#L198
error[E0026]: variant `resolve::Error::FailedToParseIndex` does not have a field named `position`
--> src/resolve.rs:198:40
|
198 | Self::FailedToParseIndex { position, .. }
| ^^^^^^^^
| |
| variant `resolve::Error::FailedToParseIndex` does not have this field
| help: `resolve::Error::FailedToParseIndex` has a field named `0`
Raw output
src/resolve.rs:198:40:e:error[E0026]: variant `resolve::Error::FailedToParseIndex` does not have a field named `position`
--> src/resolve.rs:198:40
|
198 | Self::FailedToParseIndex { position, .. }
| ^^^^^^^^
| |
| variant `resolve::Error::FailedToParseIndex` does not have this field
| help: `resolve::Error::FailedToParseIndex` has a field named `0`
__END__
Check failure on line 125 in src/resolve.rs
github-actions / clippy
[clippy] src/resolve.rs#L125
error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `position`
--> src/resolve.rs:291:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
291 | position,
| ^^^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
290 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw output
src/resolve.rs:125:5:e:error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `position`
--> src/resolve.rs:291:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
291 | position,
| ^^^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
290 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__END__
Check failure on line 125 in src/resolve.rs
github-actions / clippy
[clippy] src/resolve.rs#L125
error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `offset`
--> src/resolve.rs:292:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
292 | offset,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
290 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw output
src/resolve.rs:125:5:e:error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `offset`
--> src/resolve.rs:292:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
292 | offset,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
290 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__END__
Check failure on line 125 in src/resolve.rs
github-actions / clippy
[clippy] src/resolve.rs#L125
error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `source`
--> src/resolve.rs:293:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
293 | source,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
290 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw output
src/resolve.rs:125:5:e:error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `source`
--> src/resolve.rs:293:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
293 | source,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
290 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__END__
Check failure on line 125 in src/resolve.rs
github-actions / clippy
[clippy] src/resolve.rs#L125
error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `position`
--> src/resolve.rs:355:13
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
355 | position,
| ^^^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
354 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw output
src/resolve.rs:125:5:e:error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `position`
--> src/resolve.rs:355:13
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
355 | position,
| ^^^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
354 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__END__
Check failure on line 125 in src/resolve.rs
github-actions / clippy
[clippy] src/resolve.rs#L125
error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `offset`
--> src/resolve.rs:356:13
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
356 | offset,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
354 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw output
src/resolve.rs:125:5:e:error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `offset`
--> src/resolve.rs:356:13
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
356 | offset,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
354 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__END__
Check failure on line 125 in src/resolve.rs
github-actions / clippy
[clippy] src/resolve.rs#L125
error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `source`
--> src/resolve.rs:357:13
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
357 | source,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
354 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw output
src/resolve.rs:125:5:e:error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `source`
--> src/resolve.rs:357:13
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
357 | source,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
354 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__END__
Check failure on line 125 in src/resolve.rs
github-actions / clippy
[clippy] src/resolve.rs#L125
error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `position`
--> src/resolve.rs:399:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
399 | position,
| ^^^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
398 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw output
src/resolve.rs:125:5:e:error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `position`
--> src/resolve.rs:399:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
399 | position,
| ^^^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
398 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__END__
Check failure on line 125 in src/resolve.rs
github-actions / clippy
[clippy] src/resolve.rs#L125
error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `offset`
--> src/resolve.rs:400:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
400 | offset,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
398 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw output
src/resolve.rs:125:5:e:error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `offset`
--> src/resolve.rs:400:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
400 | offset,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
398 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__END__
Check failure on line 125 in src/resolve.rs
github-actions / clippy
[clippy] src/resolve.rs#L125
error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `source`
--> src/resolve.rs:401:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
401 | source,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
398 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw output
src/resolve.rs:125:5:e:error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `source`
--> src/resolve.rs:401:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
401 | source,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
398 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__END__
Check failure on line 125 in src/resolve.rs
github-actions / clippy
[clippy] src/resolve.rs#L125
error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `position`
--> src/resolve.rs:442:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
442 | position,
| ^^^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
441 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw output
src/resolve.rs:125:5:e:error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `position`
--> src/resolve.rs:442:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
442 | position,
| ^^^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
441 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__END__
Check failure on line 125 in src/resolve.rs
github-actions / clippy
[clippy] src/resolve.rs#L125
error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `offset`
--> src/resolve.rs:443:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
443 | offset,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
441 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw output
src/resolve.rs:125:5:e:error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `offset`
--> src/resolve.rs:443:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
443 | offset,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
441 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__END__
Check failure on line 125 in src/resolve.rs
github-actions / clippy
[clippy] src/resolve.rs#L125
error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `source`
--> src/resolve.rs:444:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
444 | source,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
441 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw output
src/resolve.rs:125:5:e:error[E0559]: variant `resolve::Error::FailedToParseIndex` has no field named `source`
--> src/resolve.rs:444:33
|
125 | FailedToParseIndex(Positioned<ParseIndexError>),
| ------------------ `resolve::Error::FailedToParseIndex` defined here
...
444 | source,
| ^^^^^^ field does not exist
|
help: `resolve::Error::FailedToParseIndex` is a tuple variant, use the appropriate syntax
|
441 | .map_err(|source| Error::FailedToParseIndex(/* error::Positioned<index::ParseIndexError> */))?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__END__