]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #106100 - scottmcm:derived-less-than-test, r=compiler-errors
authorMatthias Krüger <matthias.krueger@famsik.de>
Sat, 24 Dec 2022 07:53:48 +0000 (08:53 +0100)
committerGitHub <noreply@github.com>
Sat, 24 Dec 2022 07:53:48 +0000 (08:53 +0100)
commit09ee7048fdae23fde07fd813e4310fdb640d0f20
tree0d6ea4e4ce287d50b3fdd4eb95ff8c9f7270c7c3
parentedb2b71fdb2e4905aaf501b972680ad0930144c9
parent4cb7bd36d7809d656d585656b9002b12d6d40e4f
Rollup merge of #106100 - scottmcm:derived-less-than-test, r=compiler-errors

Codegen test for derived `<` on trivial newtype [TEST ONLY]

I originally wrote this for #106065, but the libcore changes there aren't necessarily a win.

So I pulled out this test to be its own PR since it's important (see https://github.com/rust-lang/rust/pull/105840#discussion_r1056030324) and well-intentioned changes to core or the derive could accidentally break it without that being obvious (other than by massive unexplained perf changes).