File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1672,7 +1672,7 @@ fn pyclass_hash(
1672
1672
ctx : & Ctx ,
1673
1673
) -> Result < ( Option < syn:: ImplItemFn > , Option < MethodAndSlotDef > ) > {
1674
1674
if options. hash . is_some ( ) && options. frozen . is_none ( ) {
1675
- bail_spanned ! ( options. hash. span( ) => "The `hash` option can only be using in conjunction with `frozen`." ) ;
1675
+ bail_spanned ! ( options. hash. span( ) => "The `hash` option requires the `frozen` option ." ) ;
1676
1676
}
1677
1677
// FIXME: Use hash.map(...).unzip() on MSRV >= 1.66
1678
1678
match options. hash {
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ error: a `#[pyclass]` cannot be both a `mapping` and a `sequence`
58
58
31 | struct CannotBeMappingAndSequence {}
59
59
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
60
60
61
- error: The `hash` option can only be using in conjunction with `frozen`.
61
+ error: The `hash` option requires the `frozen` option .
62
62
--> tests/ui/invalid_pyclass_args.rs:36:11
63
63
|
64
64
36 | #[pyclass(hash)]
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ error: `constructor` can't be used on a simple enum variant
30
30
26 | #[pyo3(constructor = (a, b))]
31
31
| ^^^^^^^^^^^
32
32
33
- error: The `hash` option can only be using in conjunction with `frozen`.
33
+ error: The `hash` option requires the `frozen` option .
34
34
--> tests/ui/invalid_pyclass_enum.rs:37:11
35
35
|
36
36
37 | #[pyclass(hash)]
You can’t perform that action at this time.
0 commit comments