diff options
| author | bors <bors@rust-lang.org> | 2018-04-04 18:11:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-04-04 18:11:51 +0000 |
| commit | fb44b4c0eb1d344f84f7bb2c90f28e31a8a180be (patch) | |
| tree | 9f860914840b493b7f11e1be457a861ec0c63e29 /src/test/codegen | |
| parent | 17fea66ba46bb32d1a49495518d899cede1d298a (diff) | |
| parent | 87c08f9926b7078489a93cedd1c9f10df1bdf2e0 (diff) | |
| download | rust-fb44b4c0eb1d344f84f7bb2c90f28e31a8a180be.tar.gz rust-fb44b4c0eb1d344f84f7bb2c90f28e31a8a180be.zip | |
Auto merge of #48171 - FraGag:doc-copy-clone-impls, r=nikomatsakis
Better document the implementors of Clone and Copy There are two parts to this change. The first part is a change to the compiler and to the standard library (specifically, libcore) to allow implementations of `Clone` and `Copy` to be written for a subset of builtin types. By adding these implementations to libcore, they now show up in the documentation. This is a [breaking-change] for users of `#![no_core]`, because they will now have to supply their own copy of the implementations of `Clone` and `Copy` that were added in libcore. The second part is purely a documentation change to document the other implementors of `Clone` and `Copy` that cannot be described in Rust code (yet) and are thus provided by the compiler. Fixes #25893
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/repeat-trusted-len.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/codegen/repeat-trusted-len.rs b/src/test/codegen/repeat-trusted-len.rs index 43872f15d51..8b3294281e9 100644 --- a/src/test/codegen/repeat-trusted-len.rs +++ b/src/test/codegen/repeat-trusted-len.rs @@ -15,9 +15,14 @@ use std::iter; +// CHECK: @helper([[USIZE:i[0-9]+]] %arg0) +#[no_mangle] +pub fn helper(_: usize) { +} + // CHECK-LABEL: @repeat_take_collect #[no_mangle] pub fn repeat_take_collect() -> Vec<u8> { -// CHECK: call void @llvm.memset.p0i8 +// CHECK: call void @llvm.memset.p0i8.[[USIZE]](i8* {{(nonnull )?}}%{{[0-9]+}}, i8 42, [[USIZE]] 100000, i32 1, i1 false) iter::repeat(42).take(100000).collect() } |
