]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #93018 - pierwill:rm-unused-ord, r=davidtwco
authorMatthias Krüger <matthias.krueger@famsik.de>
Tue, 18 Jan 2022 21:00:50 +0000 (22:00 +0100)
committerGitHub <noreply@github.com>
Tue, 18 Jan 2022 21:00:50 +0000 (22:00 +0100)
commit73988b6d82fede9361be3a4df36253e025a113be
treeadedc7c687705d9cfa96a7bfee9b0af435ce2d26
parent262f48eab0ceb324a0606303d430ac7541f4a90f
parentae9b624bf6c1bc97e3c2db912391acbec1564263
Rollup merge of #93018 - pierwill:rm-unused-ord, r=davidtwco

Remove some unused `Ord` derives based on `Span`

Remove some `Ord`, `PartialOrd` derivations that rely on underlying ordering of `Span`. These ordering traits appear to be unused right now.

If we're going to attempt to remove ordering traits from `Span` as suggested in https://github.com/rust-lang/rust/issues/90317#issuecomment-1013980591, we might want to slowly remove code that depends on this ordering (as opposed to the all-at-once approach in https://github.com/rust-lang/rust/pull/90749 and https://github.com/rust-lang/rust/pull/90408).

cc `@tmiasko` `@cjgillot`
compiler/rustc_ast/src/ast.rs