Skip to content
Myr

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

1 file+13 added−13 removed

modified:tests/ui/ensure-nonbool.stderr+13 added-13 removed
1error[E0277]: the trait bound `&str: __private::not::Bool` is not satisfied1error[E0277]: the trait bound `&str: anyhow::__private::not::Bool` is not satisfied2 --> tests/ui/ensure-nonbool.rs:25:133 |425 | 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 |10help: the following other types implement trait `__private::not::Bool`10help: the following other types implement trait `anyhow::__private::not::Bool`11 --> src/lib.rs12 |13 | impl Bool for bool {14 | ^^^^^^^^^^^^^^^^^^ `bool`
5 unmodified lines
20 |21 | pub fn not(cond: impl Bool) -> bool {22 | ^^^^ required by this bound in `not`2324error[E0277]: the trait bound `&mut bool: __private::not::Bool` is not satisfied24error[E0277]: the trait bound `&mut bool: anyhow::__private::not::Bool` is not satisfied25 --> tests/ui/ensure-nonbool.rs:29:3126 |2729 | 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`34note: required by a bound in `anyhow::__private::not`35 --> src/lib.rs36 |37 | pub fn not(cond: impl Bool) -> bool {
2 unmodified lines
40 |4129 | Bool(cond) => ensure!(*cond),42 | +4344error[E0277]: the trait bound `DerefBool: __private::not::Bool` is not satisfied44error[E0277]: the trait bound `DerefBool: anyhow::__private::not::Bool` is not satisfied45 --> tests/ui/ensure-nonbool.rs:33:1346 |4733 | ensure!(db);48 | --------^^-49 | | |50 | | unsatisfied trait bound51 | required by a bound introduced by this call52 |53help: the trait `__private::not::Bool` is not implemented for `DerefBool`53help: 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 lines
64 |6533 | ensure!(*db);66 | +6768error[E0277]: the trait bound `&DerefBool: __private::not::Bool` is not satisfied68error[E0277]: the trait bound `&DerefBool: anyhow::__private::not::Bool` is not satisfied69 --> tests/ui/ensure-nonbool.rs:34:1370 |7134 | 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 |77note: required by a bound in `anyhow::__private::not`78 --> src/lib.rs
4 unmodified lines
83 |8434 | ensure!(&*db);85 | +8687error[E0277]: the trait bound `NotBool: __private::not::Bool` is not satisfied87error[E0277]: the trait bound `NotBool: anyhow::__private::not::Bool` is not satisfied88 --> tests/ui/ensure-nonbool.rs:37:1389 |9037 | ensure!(nb);91 | --------^^-92 | | |93 | | unsatisfied trait bound94 | required by a bound introduced by this call95 |96help: the trait `__private::not::Bool` is not implemented for `NotBool`96help: 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 | ^^^^^^^^^^^^^^101help: the following other types implement trait `__private::not::Bool`101help: the following other types implement trait `anyhow::__private::not::Bool`102 --> src/lib.rs103 |104 | impl Bool for bool {105 | ^^^^^^^^^^^^^^^^^^ `bool`
8 unmodified lines