Skip to content

Refactor errors to include position, span (offset + len), and optional miette integration #290

Refactor errors to include position, span (offset + len), and optional miette integration

Refactor errors to include position, span (offset + len), and optional miette integration #290

Triggered via pull request October 22, 2024 17:11
Status Failure
Total duration 34s
Artifacts

scheduled.yml

on: pull_request
ubuntu / nightly
21s
ubuntu / nightly
ubuntu / beta / updated
22s
ubuntu / beta / updated
Fit to window
Zoom out
Zoom in

Annotations

28 errors
[clippy] src/resolve.rs#L198: 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`
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L198: 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`
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[clippy] src/resolve.rs#L125: 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> */))? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ubuntu / nightly
Process completed with exit code 101.
ubuntu / beta / updated
Process completed with exit code 101.