Skip to content

Commit

Permalink
Fix compile_fail tests for 1.84 Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Jan 10, 2025
1 parent 17d61c3 commit de4a214
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions tests/compile_fail/as_ref/renamed_generic.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ error[E0599]: the method `as_ref` exists for struct `Baz<i32>`, but its trait bo
= note: trait bound `Foo<i32>: AsRef<Foo<i32>>` was not satisfied
note: the trait `AsRef` must be implemented
--> $RUST/core/src/convert/mod.rs
|
| pub trait AsRef<T: ?Sized> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `as_ref`, perhaps you need to implement it:
candidate #1: `AsRef`
2 changes: 1 addition & 1 deletion tests/compile_fail/debug/lifetime_no_debug.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error[E0277]: `NoDebug<'_>` doesn't implement `Debug`
5 | #[derive(derive_more::Debug)]
| ^^^^^^^^^^^^^^^^^^ `NoDebug<'_>` cannot be formatted using `{:?}`
|
= help: the trait `Debug` is not implemented for `NoDebug<'_>`, which is required by `&NoDebug<'_>: Debug`
= help: the trait `Debug` is not implemented for `NoDebug<'_>`
= note: add `#[derive(Debug)]` to `NoDebug<'_>` or manually `impl Debug for NoDebug<'_>`
= note: required for `&NoDebug<'_>` to implement `Debug`
= note: required for the cast from `&&NoDebug<'_>` to `&dyn Debug`
Expand Down
4 changes: 2 additions & 2 deletions tests/compile_fail/debug/unclosed_brace.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error: invalid format string: expected `'}'`, found `')'`
error: invalid format string: expected `}`, found `)`
--> tests/compile_fail/debug/unclosed_brace.rs:3:21
|
3 | #[debug("Stuff({)", bar)]
| -^ expected `'}'` in format string
| -^ expected `}` in format string
| |
| because of this opening brace
|
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error: invalid format string: expected `'}'`, found `')'`
error: invalid format string: expected `}`, found `)`
--> tests/compile_fail/display/shared_format_unclosed_brace.rs:2:19
|
2 | #[display("Stuff({)")]
| -^ expected `'}'` in format string
| -^ expected `}` in format string
| |
| because of this opening brace
|
Expand Down
4 changes: 2 additions & 2 deletions tests/compile_fail/display/unclosed_brace.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error: invalid format string: expected `'}'`, found `')'`
error: invalid format string: expected `}`, found `)`
--> tests/compile_fail/display/unclosed_brace.rs:2:19
|
2 | #[display("Stuff({)", bar)]
| -^ expected `'}'` in format string
| -^ expected `}` in format string
| |
| because of this opening brace
|
Expand Down

0 comments on commit de4a214

Please sign in to comment.