about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorFlorian Gilcher <florian.gilcher@asquera.de>2020-03-06 10:37:23 +0100
committerFlorian Gilcher <florian.gilcher@asquera.de>2020-03-10 18:11:36 +0100
commit69aaed872cec119b1034c52151d00fb5308e7407 (patch)
tree6ac81703f47f4965c2e44bf8b3fa1fc8a0e55bdd /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent4a1b69d53aeb59a83de192ea67dbe4707b9a7b73 (diff)
downloadrust-69aaed872cec119b1034c52151d00fb5308e7407.tar.gz
rust-69aaed872cec119b1034c52151d00fb5308e7407.zip
Make Point `Copy` in arithmetic documentation
Small composite types like `Point { x: i32, y: i32}` are plain
old data and we should encourage users to derive `Copy` on them.

This changes the semantics of the edited examples slightly: instead
of consuming the operands during addition, it will copy them. This
is desired behaviour.

Co-Authored-By: Jake Goulding <shepmaster@mac.com>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions