Update ui test suite to nightly-2026-01-21
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Tolnay · committed by David Tolnay · parent cce0579 · Browse files · 1 file·+13 added−13 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+13 added−13 removed
- tests:+13 added−13 removed
Provenance
- Commit
54036cc- Tree
0f52bfd- Author
David Tolnay <dtolnay@gmail.com>- Committer
David Tolnay <dtolnay@gmail.com>- Parent
cce0579
1 file changed+13 added−13 removed
modified:tests/ui/ensure-nonbool.stderr+13 added-13 removed
1-error[E0277]: the trait bound `&str: __private::not::Bool` is not satisfied1+error[E0277]: the trait bound `&str: anyhow::__private::not::Bool` is not satisfied2 --> tests/ui/ensure-nonbool.rs:25:133 |4 25 | ensure!("...");5 | --------^^^^^-6 | | |7- | | the trait `__private::not::Bool` is not implemented for `&str`7+ | | the trait `anyhow::__private::not::Bool` is not implemented for `&str`8 | required by a bound introduced by this call9 |10-help: the following other types implement trait `__private::not::Bool`10+help: the following other types implement trait `anyhow::__private::not::Bool`11 --> src/lib.rs12 |13 | impl Bool for bool {14 | ^^^^^^^^^^^^^^^^^^ `bool`5 unmodified lines20 |21 | pub fn not(cond: impl Bool) -> bool {22 | ^^^^ required by this bound in `not`23 24-error[E0277]: the trait bound `&mut bool: __private::not::Bool` is not satisfied24+error[E0277]: the trait bound `&mut bool: anyhow::__private::not::Bool` is not satisfied25 --> tests/ui/ensure-nonbool.rs:29:3126 |27 29 | Bool(cond) => ensure!(cond),28 | --------^^^^-29 | | |30- | | the trait `__private::not::Bool` is not implemented for `&mut bool`30+ | | the trait `anyhow::__private::not::Bool` is not implemented for `&mut bool`31 | required by a bound introduced by this call32 |33- = note: `__private::not::Bool` is implemented for `&bool`, but not for `&mut bool`33+ = note: `anyhow::__private::not::Bool` is implemented for `&bool`, but not for `&mut bool`34 note: required by a bound in `anyhow::__private::not`35 --> src/lib.rs36 |37 | pub fn not(cond: impl Bool) -> bool {2 unmodified lines40 |41 29 | Bool(cond) => ensure!(*cond),42 | +43 44-error[E0277]: the trait bound `DerefBool: __private::not::Bool` is not satisfied44+error[E0277]: the trait bound `DerefBool: anyhow::__private::not::Bool` is not satisfied45 --> tests/ui/ensure-nonbool.rs:33:1346 |47 33 | ensure!(db);48 | --------^^-49 | | |50 | | unsatisfied trait bound51 | required by a bound introduced by this call52 |53-help: the trait `__private::not::Bool` is not implemented for `DerefBool`53+help: the trait `anyhow::__private::not::Bool` is not implemented for `DerefBool`54 --> tests/ui/ensure-nonbool.rs:6:155 |56 6 | struct DerefBool(bool);57 | ^^^^^^^^^^^^^^^^6 unmodified lines64 |65 33 | ensure!(*db);66 | +67 68-error[E0277]: the trait bound `&DerefBool: __private::not::Bool` is not satisfied68+error[E0277]: the trait bound `&DerefBool: anyhow::__private::not::Bool` is not satisfied69 --> tests/ui/ensure-nonbool.rs:34:1370 |71 34 | ensure!(&db);72 | --------^^^-73 | | |74- | | the trait `__private::not::Bool` is not implemented for `&DerefBool`74+ | | the trait `anyhow::__private::not::Bool` is not implemented for `&DerefBool`75 | required by a bound introduced by this call76 |77 note: required by a bound in `anyhow::__private::not`78 --> src/lib.rs4 unmodified lines83 |84 34 | ensure!(&*db);85 | +86 87-error[E0277]: the trait bound `NotBool: __private::not::Bool` is not satisfied87+error[E0277]: the trait bound `NotBool: anyhow::__private::not::Bool` is not satisfied88 --> tests/ui/ensure-nonbool.rs:37:1389 |90 37 | ensure!(nb);91 | --------^^-92 | | |93 | | unsatisfied trait bound94 | required by a bound introduced by this call95 |96-help: the trait `__private::not::Bool` is not implemented for `NotBool`96+help: the trait `anyhow::__private::not::Bool` is not implemented for `NotBool`97 --> tests/ui/ensure-nonbool.rs:8:198 |99 8 | struct NotBool(bool);100 | ^^^^^^^^^^^^^^101-help: the following other types implement trait `__private::not::Bool`101+help: the following other types implement trait `anyhow::__private::not::Bool`102 --> src/lib.rs103 |104 | impl Bool for bool {105 | ^^^^^^^^^^^^^^^^^^ `bool`8 unmodified lines