-
-
Notifications
You must be signed in to change notification settings - Fork 203
Comparing changes
Open a pull request
base repository: dtolnay/thiserror
base: 2.0.0
head repository: dtolnay/thiserror
compare: 2.0.1
- 20 commits
- 11 files changed
- 1 contributor
Commits on Nov 8, 2024
-
Add test of dynamically sized error type
error[E0599]: the method `as_display` exists for reference `&str`, but its trait bounds were not satisfied --> tests/test_path.rs:26:9 | 26 | #[error("{tail}")] | ^^^^^^^^ method cannot be called on `&str` due to unsatisfied trait bounds | = note: the following trait bounds were not satisfied: `str: Sized` which is required by `&str: AsDisplay<'_>`Configuration menu - View commit details
-
Copy full SHA for 8e8e273 - Browse repository at this point
Copy the full SHA 8e8e273View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24c04da - Browse repository at this point
Copy the full SHA 24c04daView commit details -
Merge pull request #375 from dtolnay/unsized
Support dynamically sized field in error
Configuration menu - View commit details
-
Copy full SHA for 2f6bff3 - Browse repository at this point
Copy the full SHA 2f6bff3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bb7e7a - Browse repository at this point
Copy the full SHA 1bb7e7aView commit details -
Merge pull request #376 from dtolnay/check
Check invalid Named member references before producing MemberUnraw
Configuration menu - View commit details
-
Copy full SHA for f728f12 - Browse repository at this point
Copy the full SHA f728f12View commit details -
Add test using generic type with multiple bounds
error[E0277]: the trait bound `T: UpperHex` is not satisfied --> tests/test_generics.rs:179:13 | 178 | #[derive(Error, Debug)] | ----- in this derive macro expansion 179 | #[error("0x{thing:x} 0x{thing:X}")] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `UpperHex` is not implemented for `T` | = note: required for `&T` to implement `UpperHex` note: required by a bound in `core::fmt::rt::Argument::<'_>::new_upper_hex` --> $RUSTUP_HOME/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/fmt/rt.rs:133:29 | 133 | pub fn new_upper_hex<T: UpperHex>(x: &T) -> Argument<'_> { | ^^^^^^^^ required by this bound in `Argument::<'_>::new_upper_hex` = note: this error originates in the macro `$crate::format_args` which comes from the expansion of the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info)Configuration menu - View commit details
-
Copy full SHA for fb8d3a7 - Browse repository at this point
Copy the full SHA fb8d3a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5948ee6 - Browse repository at this point
Copy the full SHA 5948ee6View commit details -
Merge pull request #377 from dtolnay/bounds
Support generic types that need multiple bounds
Configuration menu - View commit details
-
Copy full SHA for 8e5c843 - Browse repository at this point
Copy the full SHA 8e5c843View commit details -
Configuration menu - View commit details
-
Copy full SHA for 337df1d - Browse repository at this point
Copy the full SHA 337df1dView commit details -
Merge pull request #378 from dtolnay/self
Move recursion checking out of bindings
Configuration menu - View commit details
-
Copy full SHA for 17fa0d2 - Browse repository at this point
Copy the full SHA 17fa0d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24e7f87 - Browse repository at this point
Copy the full SHA 24e7f87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a77dea - Browse repository at this point
Copy the full SHA 8a77deaView commit details -
Configuration menu - View commit details
-
Copy full SHA for f4d5c2a - Browse repository at this point
Copy the full SHA f4d5c2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ee0a4d - Browse repository at this point
Copy the full SHA 3ee0a4dView commit details -
Resolve let_and_return clippy lint
warning: returning the result of a `let` binding from a block --> impl/src/fmt.rs:67:21 | 63 | / let member = match int.parse::<u32>() { 64 | | Ok(index) => MemberUnraw::Unnamed(Index { index, span }), 65 | | Err(_) => return Ok(()), 66 | | }; | |______________________- unnecessary `let` binding 67 | member | ^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `-W clippy::let-and-return` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::let_and_return)]` help: return the expression directly | 63 ~ 64 ~ match int.parse::<u32>() { 65 + Ok(index) => MemberUnraw::Unnamed(Index { index, span }), 66 + Err(_) => return Ok(()), 67 + } |Configuration menu - View commit details
-
Copy full SHA for fb59da6 - Browse repository at this point
Copy the full SHA fb59da6View commit details -
Merge pull request #379 from dtolnay/binding
Emit rebinding only for interpolations that refer to a field
Configuration menu - View commit details
-
Copy full SHA for 5dfd2cc - Browse repository at this point
Copy the full SHA 5dfd2ccView commit details -
Add test that {:p} prints the right address
thread 'test_pointer' panicked at tests/test_display.rs:265:5: assertion `left == right` failed left: "0x7fbbd7df10" right: "0x7fac000e30"Configuration menu - View commit details
-
Copy full SHA for 46586dd - Browse repository at this point
Copy the full SHA 46586ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 16f8dc1 - Browse repository at this point
Copy the full SHA 16f8dc1View commit details -
Merge pull request #380 from dtolnay/var
Print field's address instead of local's address for Pointer
Configuration menu - View commit details
-
Copy full SHA for 8956be2 - Browse repository at this point
Copy the full SHA 8956be2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4066d53 - Browse repository at this point
Copy the full SHA 4066d53View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 2.0.0...2.0.1