]> git.lizzy.rs Git - rust.git/commit - compiler/rustc_trait_selection/src/traits/fulfill.rs
Rollup merge of #107389 - zvavybir:master, r=estebank
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 1 Feb 2023 04:54:37 +0000 (05:54 +0100)
committerGitHub <noreply@github.com>
Wed, 1 Feb 2023 04:54:37 +0000 (05:54 +0100)
commit0d2ab6774243451c8743bad2c9dbdf2e61d10f89
tree9066e8c054962a0f98c866e173ab0550a5b7b335
parentad8e1dc2863f63c35ef3ceef3064d0851a1d2582
parentaf9671fd28601c95c4770aa47c733f81ad6ab607
Rollup merge of #107389 - zvavybir:master, r=estebank

Fixing confusion between mod and remainder

Like many programming languages, rust too confuses remainder and modulus.  The `%` operator and the associated `Rem` trait is (as the trait name suggests) the remainder, but since most people are linguistically more familiar with the modulus the documentation sometimes claims otherwise.  This PR tries to fix this problem in rustc.