Rollup merge of #72670 - rust-lang:jonas-schievink-patch-1, r=nikomatsakis

Fix incorrect comment in generator test

https://github.com/rust-lang/rust/pull/69837#discussion_r431141825 (thanks for the catch, @jplatte)
This commit is contained in:
Dylan DPC 2020-05-29 02:33:21 +02:00 committed by GitHub
commit 0204fc38d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ fn main() {
};
// Neither of these generators have the resume arg live across the `yield`, so they should be
// 4 Bytes in size (only storing the discriminant)
// 1 Byte in size (only storing the discriminant)
assert_eq!(size_of_val(&gen_copy), 1);
assert_eq!(size_of_val(&gen_move), 1);
}