Skip to content

ast: Remove variable assignment and use Assignment instead

Sign in for the full log view
GitHub Actions / clippy failed Nov 13, 2024 in 0s

clippy

21 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 21
Warning 0
Note 0
Help 0

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check failure on line 538 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:538:10
    |
538 |     ) -> Result<Vec<T>, Error> {
    |          ^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 527 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:527:10
    |
527 |     ) -> Result<Option<T>, Error> {
    |          ^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 519 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:519:43
    |
519 |     fn boxed(&mut self, ast: Box<Ast>) -> Result<Box<Ast>, Error> {
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 470 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:470:38
    |
470 |     fn visit(&mut self, ast: Ast) -> Result<Ast, Error> {
    |                                      ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 463 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:463:55
    |
463 |     fn visit_empty(&mut self, location: SpanTuple) -> Result<Ast, Error> {
    |                                                       ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 456 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:456:72
    |
456 |     fn visit_constant(&mut self, location: SpanTuple, value: Value) -> Result<Ast, Error> {
    |                                                                        ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 447 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:447:10
    |
447 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 436 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:436:81
    |
436 |     fn visit_var_or_empty_type(&mut self, location: SpanTuple, name: Symbol) -> Result<Ast, Error> {
    |                                                                                 ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 427 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:427:10
    |
427 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 413 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:413:10
    |
413 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 393 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:393:10
    |
393 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 378 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:378:10
    |
378 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 363 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:363:10
    |
363 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 343 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:343:10
    |
343 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 329 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:329:10
    |
329 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 316 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:316:10
    |
316 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 298 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:298:10
    |
298 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 282 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:282:10
    |
282 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 267 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:267:10
    |
267 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 247 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:247:10
    |
247 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check failure on line 234 in ast/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

error: the `Err`-variant returned from this function is very large
   --> ast/src/lib.rs:234:10
    |
234 |     ) -> Result<Ast, Error> {
    |          ^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 144 bytes
    |
    = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box<error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
    = note: `-D clippy::result-large-err` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::result_large_err)]`