Skip to content

Commit

Permalink
Remove impl Error for &dyn RubyException
Browse files Browse the repository at this point in the history
See rust-lang/rust#75180.

```
error[E0119]: conflicting implementations of trait `std::error::Error` for type `&(dyn error::RubyException + 'static)`:
   --> artichoke-backend/src/error.rs:128:1
    |
128 | impl error::Error for &dyn RubyException {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: conflicting implementation in crate `std`:
            - impl<'a, T> std::error::Error for &'a T
              where T: std::error::Error, T: ?Sized;

error[E0119]: conflicting implementations of trait `std::error::Error` for type `&(dyn error::RubyException + 'static)`:
   --> artichoke-backend/src/error.rs:128:1
    |
128 | impl error::Error for &dyn RubyException {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: conflicting implementation in crate `std`:
            - impl<'a, T> std::error::Error for &'a T
              where T: std::error::Error, T: ?Sized;

error: aborting due to previous error

For more information about this error, try `rustc --explain E0119`.
error: could not document `artichoke-backend`
```
  • Loading branch information
lopopolo committed Jan 26, 2021
1 parent 1d573ab commit fe984c0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions artichoke-backend/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,3 @@ impl RubyException for Box<dyn RubyException> {
}

impl error::Error for Box<dyn RubyException> {}

impl error::Error for &dyn RubyException {}

0 comments on commit fe984c0

Please sign in to comment.