mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 12:33:57 +00:00
Permit mutables as comparable in all contexts.
This commit is contained in:
parent
f955d06ca9
commit
f522605f6b
|
@ -369,7 +369,7 @@ let process_crate (cx:ctxt) (crate:Ast.crate) : unit =
|
||||||
| Ast.TY_constrained (ty, _) ->
|
| Ast.TY_constrained (ty, _) ->
|
||||||
is_comparable_or_ordered comparable ty
|
is_comparable_or_ordered comparable ty
|
||||||
| Ast.TY_mutable ty ->
|
| Ast.TY_mutable ty ->
|
||||||
ucx.mut_ok && is_comparable_or_ordered comparable ty
|
is_comparable_or_ordered comparable ty
|
||||||
| Ast.TY_box ty ->
|
| Ast.TY_box ty ->
|
||||||
ucx.box_ok && is_comparable_or_ordered comparable ty
|
ucx.box_ok && is_comparable_or_ordered comparable ty
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue