id stringlengths 23 38 | source_dataset stringclasses 1
value | source_split stringclasses 1
value | source_index int64 0 113k | language stringclasses 1
value | variant stringclasses 4
values | instruction stringclasses 2
values | input stringlengths 1 1.39M | output stringlengths 8 1.39M | prompt stringlengths 71 1.39M | completion stringlengths 8 1.39M | messages listlengths 2 2 | original_message stringlengths 8 1.39M | minimized_message stringlengths 1 1.13M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
train-0-message_to_diff | jedisct1/rust | train | 0 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | release v1.0.2 | diff --git a/Cargo.toml b/Cargo.toml
index 2b1d258..59e8d21 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.1"
+version = "1.0.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2021"
description = "A tool for enlisting the compiler's help in proving ... | Write a Rust code diff that implements the following commit message.
release v1.0.2 | diff --git a/Cargo.toml b/Cargo.toml
index 2b1d258..59e8d21 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.1"
+version = "1.0.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2021"
description = "A tool for enlisting the compiler's help in proving ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nrelease v1.0.2"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 2b1d258..59e8d21 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name ... | release v1.0.2 | release v1.0.2 |
train-0-diff_to_message | jedisct1/rust | train | 0 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.toml b/Cargo.toml
index 2b1d258..59e8d21 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.1"
+version = "1.0.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2021"
description = "A tool for enlisting the compiler's help in proving ... | release v1.0.2 | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.toml b/Cargo.toml
index 2b1d258..59e8d21 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.1"
+version = "1.0.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition =... | release v1.0.2 | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.toml b/Cargo.toml\nindex 2b1d258..59e8d21 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name = \"sync_wrapper\"\n-version = \"1.0.1\"\n+version = \"1.0.2... | release v1.0.2 | release v1.0.2 |
train-0-minimized_message_to_diff | jedisct1/rust | train | 0 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | release v1.0.2 | diff --git a/Cargo.toml b/Cargo.toml
index 2b1d258..59e8d21 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.1"
+version = "1.0.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2021"
description = "A tool for enlisting the compiler's help in proving ... | Write a Rust code diff that implements the following commit message.
release v1.0.2 | diff --git a/Cargo.toml b/Cargo.toml
index 2b1d258..59e8d21 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.1"
+version = "1.0.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2021"
description = "A tool for enlisting the compiler's help in proving ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nrelease v1.0.2"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 2b1d258..59e8d21 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name ... | release v1.0.2 | release v1.0.2 |
train-0-message_to_shuffled_diff | jedisct1/rust | train | 0 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | release v1.0.2 | diff --git a/Cargo.toml b/Cargo.toml
index 2b1d258..59e8d21 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.1"
+version = "1.0.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2021"
description = "A tool for enlisting the compiler's help in proving ... | Write a Rust code diff that implements the following commit message.
release v1.0.2 | diff --git a/Cargo.toml b/Cargo.toml
index 2b1d258..59e8d21 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.1"
+version = "1.0.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2021"
description = "A tool for enlisting the compiler's help in proving ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nrelease v1.0.2"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 2b1d258..59e8d21 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name ... | release v1.0.2 | release v1.0.2 |
train-1-message_to_diff | jedisct1/rust | train | 1 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Implement Debug for SyncFuture and SyncStream | diff --git a/src/lib.rs b/src/lib.rs
index 2800d9a..a508e2f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -212,6 +212,11 @@ impl <F: Future> Future for SyncFuture<F> {
inner.poll(cx)
}
}
+impl<T> Debug for SyncFuture<T> {
+ fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
+ f.pad("SyncFuture... | Write a Rust code diff that implements the following commit message.
Implement Debug for SyncFuture and SyncStream | diff --git a/src/lib.rs b/src/lib.rs
index 2800d9a..a508e2f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -212,6 +212,11 @@ impl <F: Future> Future for SyncFuture<F> {
inner.poll(cx)
}
}
+impl<T> Debug for SyncFuture<T> {
+ fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
+ f.pad("SyncFuture... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nImplement Debug for SyncFuture and SyncStream"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 2800d9a..a508e2f 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -... | Implement Debug for SyncFuture and SyncStream | Implement Debug SyncFuture SyncStream |
train-1-diff_to_message | jedisct1/rust | train | 1 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/src/lib.rs b/src/lib.rs
index 2800d9a..a508e2f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -212,6 +212,11 @@ impl <F: Future> Future for SyncFuture<F> {
inner.poll(cx)
}
}
+impl<T> Debug for SyncFuture<T> {
+ fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
+ f.pad("SyncFuture... | Implement Debug for SyncFuture and SyncStream | Write a concise commit message that explains the following Rust code diff.
diff --git a/src/lib.rs b/src/lib.rs
index 2800d9a..a508e2f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -212,6 +212,11 @@ impl <F: Future> Future for SyncFuture<F> {
inner.poll(cx)
}
}
+impl<T> Debug for SyncFuture<T> {
+ fn f... | Implement Debug for SyncFuture and SyncStream | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/src/lib.rs b/src/lib.rs\nindex 2800d9a..a508e2f 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -212,6 +212,11 @@ impl <F: Future> Future for SyncFuture<F> {\n inner.poll(cx)\n ... | Implement Debug for SyncFuture and SyncStream | Implement Debug SyncFuture SyncStream |
train-1-minimized_message_to_diff | jedisct1/rust | train | 1 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Implement Debug SyncFuture SyncStream | diff --git a/src/lib.rs b/src/lib.rs
index 2800d9a..a508e2f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -212,6 +212,11 @@ impl <F: Future> Future for SyncFuture<F> {
inner.poll(cx)
}
}
+impl<T> Debug for SyncFuture<T> {
+ fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
+ f.pad("SyncFuture... | Write a Rust code diff that implements the following commit message.
Implement Debug SyncFuture SyncStream | diff --git a/src/lib.rs b/src/lib.rs
index 2800d9a..a508e2f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -212,6 +212,11 @@ impl <F: Future> Future for SyncFuture<F> {
inner.poll(cx)
}
}
+impl<T> Debug for SyncFuture<T> {
+ fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
+ f.pad("SyncFuture... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nImplement Debug SyncFuture SyncStream"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 2800d9a..a508e2f 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -212,6 +2... | Implement Debug for SyncFuture and SyncStream | Implement Debug SyncFuture SyncStream |
train-1-message_to_shuffled_diff | jedisct1/rust | train | 1 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Implement Debug for SyncFuture and SyncStream | diff --git a/src/lib.rs b/src/lib.rs
index 2800d9a..a508e2f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -212,6 +212,11 @@ impl <F: Future> Future for SyncFuture<F> {
inner.poll(cx)
}
}
+impl<T> Debug for SyncFuture<T> {
+ fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
+ f.pad("SyncFuture... | Write a Rust code diff that implements the following commit message.
Implement Debug for SyncFuture and SyncStream | diff --git a/src/lib.rs b/src/lib.rs
index 2800d9a..a508e2f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -212,6 +212,11 @@ impl <F: Future> Future for SyncFuture<F> {
inner.poll(cx)
}
}
+impl<T> Debug for SyncFuture<T> {
+ fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
+ f.pad("SyncFuture... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nImplement Debug for SyncFuture and SyncStream"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 2800d9a..a508e2f 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -... | Implement Debug for SyncFuture and SyncStream | Implement Debug SyncFuture SyncStream |
train-2-message_to_diff | jedisct1/rust | train | 2 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | switch to edition 2021 and all-features | diff --git a/Cargo.toml b/Cargo.toml
index c0209a1..2b1d258 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
name = "sync_wrapper"
version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
-edition = "2018"
+edition = "2021"
description = "A tool for enlisting the compiler's help in proving the absence ... | Write a Rust code diff that implements the following commit message.
switch to edition 2021 and all-features | diff --git a/Cargo.toml b/Cargo.toml
index c0209a1..2b1d258 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
name = "sync_wrapper"
version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
-edition = "2018"
+edition = "2021"
description = "A tool for enlisting the compiler's help in proving the absence ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nswitch to edition 2021 and all-features"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex c0209a1..2b1d258 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -2,7 +2... | switch to edition 2021 and all-features | switch edition 2021 all-features |
train-2-diff_to_message | jedisct1/rust | train | 2 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.toml b/Cargo.toml
index c0209a1..2b1d258 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
name = "sync_wrapper"
version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
-edition = "2018"
+edition = "2021"
description = "A tool for enlisting the compiler's help in proving the absence ... | switch to edition 2021 and all-features | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.toml b/Cargo.toml
index c0209a1..2b1d258 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
name = "sync_wrapper"
version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
-edition = "2018"
+edition = "2021"
des... | switch to edition 2021 and all-features | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.toml b/Cargo.toml\nindex c0209a1..2b1d258 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -2,7 +2,7 @@\n name = \"sync_wrapper\"\n version = \"1.0.1\"\n authors = [\"Actyx AG <develo... | switch to edition 2021 and all-features | switch edition 2021 all-features |
train-2-minimized_message_to_diff | jedisct1/rust | train | 2 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | switch edition 2021 all-features | diff --git a/Cargo.toml b/Cargo.toml
index c0209a1..2b1d258 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
name = "sync_wrapper"
version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
-edition = "2018"
+edition = "2021"
description = "A tool for enlisting the compiler's help in proving the absence ... | Write a Rust code diff that implements the following commit message.
switch edition 2021 all-features | diff --git a/Cargo.toml b/Cargo.toml
index c0209a1..2b1d258 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
name = "sync_wrapper"
version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
-edition = "2018"
+edition = "2021"
description = "A tool for enlisting the compiler's help in proving the absence ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nswitch edition 2021 all-features"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex c0209a1..2b1d258 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -2,7 +2,7 @@\n... | switch to edition 2021 and all-features | switch edition 2021 all-features |
train-2-message_to_shuffled_diff | jedisct1/rust | train | 2 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | switch to edition 2021 and all-features | diff --git a/Cargo.toml b/Cargo.toml
index c0209a1..2b1d258 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
name = "sync_wrapper"
version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
-edition = "2018"
+edition = "2021"
description = "A tool for enlisting the compiler's help in proving the absence ... | Write a Rust code diff that implements the following commit message.
switch to edition 2021 and all-features | diff --git a/Cargo.toml b/Cargo.toml
index c0209a1..2b1d258 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
name = "sync_wrapper"
version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
-edition = "2018"
+edition = "2021"
description = "A tool for enlisting the compiler's help in proving the absence ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nswitch to edition 2021 and all-features"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex c0209a1..2b1d258 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -2,7 +2... | switch to edition 2021 and all-features | switch edition 2021 all-features |
train-3-message_to_diff | jedisct1/rust | train | 3 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | release 1.0.1 | diff --git a/Cargo.toml b/Cargo.toml
index e7a9049..c0209a1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.0"
+version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | Write a Rust code diff that implements the following commit message.
release 1.0.1 | diff --git a/Cargo.toml b/Cargo.toml
index e7a9049..c0209a1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.0"
+version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nrelease 1.0.1"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex e7a9049..c0209a1 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name =... | release 1.0.1 | release 1.0.1 |
train-3-diff_to_message | jedisct1/rust | train | 3 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.toml b/Cargo.toml
index e7a9049..c0209a1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.0"
+version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | release 1.0.1 | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.toml b/Cargo.toml
index e7a9049..c0209a1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.0"
+version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
edition =... | release 1.0.1 | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.toml b/Cargo.toml\nindex e7a9049..c0209a1 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name = \"sync_wrapper\"\n-version = \"1.0.0\"\n+version = \"1.0.1... | release 1.0.1 | release 1.0.1 |
train-3-minimized_message_to_diff | jedisct1/rust | train | 3 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | release 1.0.1 | diff --git a/Cargo.toml b/Cargo.toml
index e7a9049..c0209a1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.0"
+version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | Write a Rust code diff that implements the following commit message.
release 1.0.1 | diff --git a/Cargo.toml b/Cargo.toml
index e7a9049..c0209a1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.0"
+version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nrelease 1.0.1"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex e7a9049..c0209a1 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name =... | release 1.0.1 | release 1.0.1 |
train-3-message_to_shuffled_diff | jedisct1/rust | train | 3 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | release 1.0.1 | diff --git a/Cargo.toml b/Cargo.toml
index e7a9049..c0209a1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.0"
+version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | Write a Rust code diff that implements the following commit message.
release 1.0.1 | diff --git a/Cargo.toml b/Cargo.toml
index e7a9049..c0209a1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "1.0.0"
+version = "1.0.1"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nrelease 1.0.1"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex e7a9049..c0209a1 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name =... | release 1.0.1 | release 1.0.1 |
train-4-message_to_diff | jedisct1/rust | train | 4 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Enable `futures` feature in docs.rs build | diff --git a/Cargo.toml b/Cargo.toml
index 10e3e24..e7a9049 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,3 +21,7 @@ futures = { version = "0.3" }
[dependencies]
futures-core = { version = "0.3", default-features = false, optional = true }
+
+[package.metadata.docs.rs]
+features = ["futures"]
+ | Write a Rust code diff that implements the following commit message.
Enable `futures` feature in docs.rs build | diff --git a/Cargo.toml b/Cargo.toml
index 10e3e24..e7a9049 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,3 +21,7 @@ futures = { version = "0.3" }
[dependencies]
futures-core = { version = "0.3", default-features = false, optional = true }
+
+[package.metadata.docs.rs]
+features = ["futures"]
+ | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nEnable `futures` feature in docs.rs build"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 10e3e24..e7a9049 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -21,3... | Enable `futures` feature in docs.rs build | Enable `futures` feature docs.rs build |
train-4-diff_to_message | jedisct1/rust | train | 4 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.toml b/Cargo.toml
index 10e3e24..e7a9049 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,3 +21,7 @@ futures = { version = "0.3" }
[dependencies]
futures-core = { version = "0.3", default-features = false, optional = true }
+
+[package.metadata.docs.rs]
+features = ["futures"]
+ | Enable `futures` feature in docs.rs build | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.toml b/Cargo.toml
index 10e3e24..e7a9049 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,3 +21,7 @@ futures = { version = "0.3" }
[dependencies]
futures-core = { version = "0.3", default-features = false, optional = true ... | Enable `futures` feature in docs.rs build | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.toml b/Cargo.toml\nindex 10e3e24..e7a9049 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -21,3 +21,7 @@ futures = { version = \"0.3\" }\n \n [dependencies]\n futures-core = { versio... | Enable `futures` feature in docs.rs build | Enable `futures` feature docs.rs build |
train-4-minimized_message_to_diff | jedisct1/rust | train | 4 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Enable `futures` feature docs.rs build | diff --git a/Cargo.toml b/Cargo.toml
index 10e3e24..e7a9049 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,3 +21,7 @@ futures = { version = "0.3" }
[dependencies]
futures-core = { version = "0.3", default-features = false, optional = true }
+
+[package.metadata.docs.rs]
+features = ["futures"]
+ | Write a Rust code diff that implements the following commit message.
Enable `futures` feature docs.rs build | diff --git a/Cargo.toml b/Cargo.toml
index 10e3e24..e7a9049 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,3 +21,7 @@ futures = { version = "0.3" }
[dependencies]
futures-core = { version = "0.3", default-features = false, optional = true }
+
+[package.metadata.docs.rs]
+features = ["futures"]
+ | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nEnable `futures` feature docs.rs build"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 10e3e24..e7a9049 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -21,3 +2... | Enable `futures` feature in docs.rs build | Enable `futures` feature docs.rs build |
train-4-message_to_shuffled_diff | jedisct1/rust | train | 4 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Enable `futures` feature in docs.rs build | diff --git a/Cargo.toml b/Cargo.toml
index 10e3e24..e7a9049 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,3 +21,7 @@ futures = { version = "0.3" }
[dependencies]
futures-core = { version = "0.3", default-features = false, optional = true }
+
+[package.metadata.docs.rs]
+features = ["futures"]
+ | Write a Rust code diff that implements the following commit message.
Enable `futures` feature in docs.rs build | diff --git a/Cargo.toml b/Cargo.toml
index 10e3e24..e7a9049 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,3 +21,7 @@ futures = { version = "0.3" }
[dependencies]
futures-core = { version = "0.3", default-features = false, optional = true }
+
+[package.metadata.docs.rs]
+features = ["futures"]
+ | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nEnable `futures` feature in docs.rs build"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 10e3e24..e7a9049 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -21,3... | Enable `futures` feature in docs.rs build | Enable `futures` feature docs.rs build |
train-5-message_to_diff | jedisct1/rust | train | 5 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | release 1.0.0 | diff --git a/Cargo.toml b/Cargo.toml
index 678b869..10e3e24 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.2"
+version = "1.0.0"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | Write a Rust code diff that implements the following commit message.
release 1.0.0 | diff --git a/Cargo.toml b/Cargo.toml
index 678b869..10e3e24 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.2"
+version = "1.0.0"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nrelease 1.0.0"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 678b869..10e3e24 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name =... | release 1.0.0 | release 1.0.0 |
train-5-diff_to_message | jedisct1/rust | train | 5 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.toml b/Cargo.toml
index 678b869..10e3e24 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.2"
+version = "1.0.0"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | release 1.0.0 | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.toml b/Cargo.toml
index 678b869..10e3e24 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.2"
+version = "1.0.0"
authors = ["Actyx AG <developer@actyx.io>"]
edition =... | release 1.0.0 | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.toml b/Cargo.toml\nindex 678b869..10e3e24 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name = \"sync_wrapper\"\n-version = \"0.1.2\"\n+version = \"1.0.0... | release 1.0.0 | release 1.0.0 |
train-5-minimized_message_to_diff | jedisct1/rust | train | 5 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | release 1.0.0 | diff --git a/Cargo.toml b/Cargo.toml
index 678b869..10e3e24 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.2"
+version = "1.0.0"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | Write a Rust code diff that implements the following commit message.
release 1.0.0 | diff --git a/Cargo.toml b/Cargo.toml
index 678b869..10e3e24 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.2"
+version = "1.0.0"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nrelease 1.0.0"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 678b869..10e3e24 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name =... | release 1.0.0 | release 1.0.0 |
train-5-message_to_shuffled_diff | jedisct1/rust | train | 5 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | release 1.0.0 | diff --git a/Cargo.toml b/Cargo.toml
index 678b869..10e3e24 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.2"
+version = "1.0.0"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | Write a Rust code diff that implements the following commit message.
release 1.0.0 | diff --git a/Cargo.toml b/Cargo.toml
index 678b869..10e3e24 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.2"
+version = "1.0.0"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler's help in proving ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nrelease 1.0.0"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 678b869..10e3e24 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name =... | release 1.0.0 | release 1.0.0 |
train-6-message_to_diff | jedisct1/rust | train | 6 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | style: replace the smartquote in Cargo.toml with a standard apostrophe | diff --git a/Cargo.toml b/Cargo.toml
index 22aa494..678b869 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ name = "sync_wrapper"
version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
-description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
+de... | Write a Rust code diff that implements the following commit message.
style: replace the smartquote in Cargo.toml with a standard apostrophe | diff --git a/Cargo.toml b/Cargo.toml
index 22aa494..678b869 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ name = "sync_wrapper"
version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
-description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
+de... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nstyle: replace the smartquote in Cargo.toml with a standard apostrophe"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 22aa494..678b869 100644\n--- a/Cargo.tom... | style: replace the smartquote in Cargo.toml with a standard apostrophe | style: replace smartquote Cargo.toml standard apostrophe |
train-6-diff_to_message | jedisct1/rust | train | 6 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.toml b/Cargo.toml
index 22aa494..678b869 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ name = "sync_wrapper"
version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
-description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
+de... | style: replace the smartquote in Cargo.toml with a standard apostrophe | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.toml b/Cargo.toml
index 22aa494..678b869 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ name = "sync_wrapper"
version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
-description = "A tool ... | style: replace the smartquote in Cargo.toml with a standard apostrophe | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.toml b/Cargo.toml\nindex 22aa494..678b869 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -3,7 +3,7 @@ name = \"sync_wrapper\"\n version = \"0.1.2\"\n authors = [\"Actyx AG <develope... | style: replace the smartquote in Cargo.toml with a standard apostrophe | style: replace smartquote Cargo.toml standard apostrophe |
train-6-minimized_message_to_diff | jedisct1/rust | train | 6 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | style: replace smartquote Cargo.toml standard apostrophe | diff --git a/Cargo.toml b/Cargo.toml
index 22aa494..678b869 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ name = "sync_wrapper"
version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
-description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
+de... | Write a Rust code diff that implements the following commit message.
style: replace smartquote Cargo.toml standard apostrophe | diff --git a/Cargo.toml b/Cargo.toml
index 22aa494..678b869 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ name = "sync_wrapper"
version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
-description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
+de... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nstyle: replace smartquote Cargo.toml standard apostrophe"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 22aa494..678b869 100644\n--- a/Cargo.toml\n+++ b/Cargo... | style: replace the smartquote in Cargo.toml with a standard apostrophe | style: replace smartquote Cargo.toml standard apostrophe |
train-6-message_to_shuffled_diff | jedisct1/rust | train | 6 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | style: replace the smartquote in Cargo.toml with a standard apostrophe | diff --git a/Cargo.toml b/Cargo.toml
index 22aa494..678b869 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ name = "sync_wrapper"
version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
-description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
+de... | Write a Rust code diff that implements the following commit message.
style: replace the smartquote in Cargo.toml with a standard apostrophe | diff --git a/Cargo.toml b/Cargo.toml
index 22aa494..678b869 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ name = "sync_wrapper"
version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
-description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
+de... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nstyle: replace the smartquote in Cargo.toml with a standard apostrophe"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 22aa494..678b869 100644\n--- a/Cargo.tom... | style: replace the smartquote in Cargo.toml with a standard apostrophe | style: replace smartquote Cargo.toml standard apostrophe |
train-7-message_to_diff | jedisct1/rust | train | 7 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | make futures-core dep optional and release 0.1.2 | diff --git a/Cargo.toml b/Cargo.toml
index 6fffa06..22aa494 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.1"
+version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler’s help in proving ... | Write a Rust code diff that implements the following commit message.
make futures-core dep optional and release 0.1.2 | diff --git a/Cargo.toml b/Cargo.toml
index 6fffa06..22aa494 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.1"
+version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler’s help in proving ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nmake futures-core dep optional and release 0.1.2"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 6fffa06..22aa494 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@... | make futures-core dep optional and release 0.1.2 | make futures-core dep optional release 0.1.2 |
train-7-diff_to_message | jedisct1/rust | train | 7 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.toml b/Cargo.toml
index 6fffa06..22aa494 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.1"
+version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler’s help in proving ... | make futures-core dep optional and release 0.1.2 | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.toml b/Cargo.toml
index 6fffa06..22aa494 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.1"
+version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition =... | make futures-core dep optional and release 0.1.2 | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.toml b/Cargo.toml\nindex 6fffa06..22aa494 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name = \"sync_wrapper\"\n-version = \"0.1.1\"\n+version = \"0.1.2... | make futures-core dep optional and release 0.1.2 | make futures-core dep optional release 0.1.2 |
train-7-minimized_message_to_diff | jedisct1/rust | train | 7 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | make futures-core dep optional release 0.1.2 | diff --git a/Cargo.toml b/Cargo.toml
index 6fffa06..22aa494 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.1"
+version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler’s help in proving ... | Write a Rust code diff that implements the following commit message.
make futures-core dep optional release 0.1.2 | diff --git a/Cargo.toml b/Cargo.toml
index 6fffa06..22aa494 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sync_wrapper"
-version = "0.1.1"
+version = "0.1.2"
authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler’s help in proving ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nmake futures-core dep optional release 0.1.2"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 6fffa06..22aa494 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1... | make futures-core dep optional and release 0.1.2 | make futures-core dep optional release 0.1.2 |
train-7-message_to_shuffled_diff | jedisct1/rust | train | 7 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | make futures-core dep optional and release 0.1.2 | diff --git a/src/lib.rs b/src/lib.rs
index aa5ec88..2800d9a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -224,9 +224,11 @@ impl <F: Future> Future for SyncFuture<F> {
/// let st = stream::iter(vec![1]);
/// let st = SyncStream::new(st);
/// ```
+#[cfg(feature = "futures")]
pub struct SyncStream<S> {
inner: Sync... | Write a Rust code diff that implements the following commit message.
make futures-core dep optional and release 0.1.2 | diff --git a/src/lib.rs b/src/lib.rs
index aa5ec88..2800d9a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -224,9 +224,11 @@ impl <F: Future> Future for SyncFuture<F> {
/// let st = stream::iter(vec![1]);
/// let st = SyncStream::new(st);
/// ```
+#[cfg(feature = "futures")]
pub struct SyncStream<S> {
inner: Sync... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nmake futures-core dep optional and release 0.1.2"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex aa5ec88..2800d9a 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@... | make futures-core dep optional and release 0.1.2 | make futures-core dep optional release 0.1.2 |
train-8-message_to_diff | jedisct1/rust | train | 8 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | add default wrapper implementations (#1) | diff --git a/Cargo.toml b/Cargo.toml
index 93e28e7..6fffa06 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,7 @@ categories = ["concurrency"]
[dev-dependencies]
pin-project-lite = "0.2.7"
+futures = { version = "0.3" }
+
+[dependencies]
+futures-core = { version = "0.3", default-features = false }
\ No newlin... | Write a Rust code diff that implements the following commit message.
add default wrapper implementations (#1) | diff --git a/Cargo.toml b/Cargo.toml
index 93e28e7..6fffa06 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,7 @@ categories = ["concurrency"]
[dev-dependencies]
pin-project-lite = "0.2.7"
+futures = { version = "0.3" }
+
+[dependencies]
+futures-core = { version = "0.3", default-features = false }
\ No newlin... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nadd default wrapper implementations (#1)"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 93e28e7..6fffa06 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -14,3 ... | add default wrapper implementations (#1) | add default wrapper implementations (#1) |
train-8-diff_to_message | jedisct1/rust | train | 8 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.toml b/Cargo.toml
index 93e28e7..6fffa06 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,7 @@ categories = ["concurrency"]
[dev-dependencies]
pin-project-lite = "0.2.7"
+futures = { version = "0.3" }
+
+[dependencies]
+futures-core = { version = "0.3", default-features = false }
\ No newlin... | add default wrapper implementations (#1) | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.toml b/Cargo.toml
index 93e28e7..6fffa06 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,7 @@ categories = ["concurrency"]
[dev-dependencies]
pin-project-lite = "0.2.7"
+futures = { version = "0.3" }
+
+[dependencie... | add default wrapper implementations (#1) | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.toml b/Cargo.toml\nindex 93e28e7..6fffa06 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -14,3 +14,7 @@ categories = [\"concurrency\"]\n \n [dev-dependencies]\n pin-project-lite = \... | add default wrapper implementations (#1) | add default wrapper implementations (#1) |
train-8-minimized_message_to_diff | jedisct1/rust | train | 8 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | add default wrapper implementations (#1) | diff --git a/Cargo.toml b/Cargo.toml
index 93e28e7..6fffa06 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,7 @@ categories = ["concurrency"]
[dev-dependencies]
pin-project-lite = "0.2.7"
+futures = { version = "0.3" }
+
+[dependencies]
+futures-core = { version = "0.3", default-features = false }
\ No newlin... | Write a Rust code diff that implements the following commit message.
add default wrapper implementations (#1) | diff --git a/Cargo.toml b/Cargo.toml
index 93e28e7..6fffa06 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,7 @@ categories = ["concurrency"]
[dev-dependencies]
pin-project-lite = "0.2.7"
+futures = { version = "0.3" }
+
+[dependencies]
+futures-core = { version = "0.3", default-features = false }
\ No newlin... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nadd default wrapper implementations (#1)"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 93e28e7..6fffa06 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -14,3 ... | add default wrapper implementations (#1) | add default wrapper implementations (#1) |
train-8-message_to_shuffled_diff | jedisct1/rust | train | 8 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | add default wrapper implementations (#1) | diff --git a/src/lib.rs b/src/lib.rs
index 37874e1..aa5ec88 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -23,6 +23,8 @@
use core::{
fmt::{self, Debug, Formatter},
pin::Pin,
+ future::Future,
+ task::{Context, Poll},
};
/// A mutual exclusion primitive that relies on static type information only
@@ -... | Write a Rust code diff that implements the following commit message.
add default wrapper implementations (#1) | diff --git a/src/lib.rs b/src/lib.rs
index 37874e1..aa5ec88 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -23,6 +23,8 @@
use core::{
fmt::{self, Debug, Formatter},
pin::Pin,
+ future::Future,
+ task::{Context, Poll},
};
/// A mutual exclusion primitive that relies on static type information only
@@ -... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nadd default wrapper implementations (#1)"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 37874e1..aa5ec88 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -23,6 ... | add default wrapper implementations (#1) | add default wrapper implementations (#1) |
train-9-message_to_diff | jedisct1/rust | train | 9 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Link to repository in Cargo.toml | diff --git a/Cargo.toml b/Cargo.toml
index 4e2d988..280fc67 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
readme = "README.md"
+repository = "https://... | Write a Rust code diff that implements the following commit message.
Link to repository in Cargo.toml | diff --git a/Cargo.toml b/Cargo.toml
index 4e2d988..280fc67 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
readme = "README.md"
+repository = "https://... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nLink to repository in Cargo.toml"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 4e2d988..280fc67 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -5,6 +5,7 @@ a... | Link to repository in Cargo.toml | Link repository Cargo.toml |
train-9-diff_to_message | jedisct1/rust | train | 9 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.toml b/Cargo.toml
index 4e2d988..280fc67 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
readme = "README.md"
+repository = "https://... | Link to repository in Cargo.toml | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.toml b/Cargo.toml
index 4e2d988..280fc67 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler’s help in provi... | Link to repository in Cargo.toml | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.toml b/Cargo.toml\nindex 4e2d988..280fc67 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -5,6 +5,7 @@ authors = [\"Actyx AG <developer@actyx.io>\"]\n edition = \"2018\"\n descriptio... | Link to repository in Cargo.toml | Link repository Cargo.toml |
train-9-minimized_message_to_diff | jedisct1/rust | train | 9 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Link repository Cargo.toml | diff --git a/Cargo.toml b/Cargo.toml
index 4e2d988..280fc67 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
readme = "README.md"
+repository = "https://... | Write a Rust code diff that implements the following commit message.
Link repository Cargo.toml | diff --git a/Cargo.toml b/Cargo.toml
index 4e2d988..280fc67 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
readme = "README.md"
+repository = "https://... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nLink repository Cargo.toml"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 4e2d988..280fc67 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -5,6 +5,7 @@ authors... | Link to repository in Cargo.toml | Link repository Cargo.toml |
train-9-message_to_shuffled_diff | jedisct1/rust | train | 9 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Link to repository in Cargo.toml | diff --git a/Cargo.toml b/Cargo.toml
index 4e2d988..280fc67 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
readme = "README.md"
+repository = "https://... | Write a Rust code diff that implements the following commit message.
Link to repository in Cargo.toml | diff --git a/Cargo.toml b/Cargo.toml
index 4e2d988..280fc67 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ authors = ["Actyx AG <developer@actyx.io>"]
edition = "2018"
description = "A tool for enlisting the compiler’s help in proving the absence of concurrency"
readme = "README.md"
+repository = "https://... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nLink to repository in Cargo.toml"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 4e2d988..280fc67 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -5,6 +5,7 @@ a... | Link to repository in Cargo.toml | Link repository Cargo.toml |
train-10-message_to_diff | jedisct1/rust | train | 10 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Make library no_std | diff --git a/src/lib.rs b/src/lib.rs
index 31c2eef..50ee779 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,6 +18,7 @@
//! This library is inspired by [this discussion](https://internals.rust-lang.org/t/what-shall-sync-mean-across-an-await/12020/2).
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
... | Write a Rust code diff that implements the following commit message.
Make library no_std | diff --git a/src/lib.rs b/src/lib.rs
index 31c2eef..50ee779 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,6 +18,7 @@
//! This library is inspired by [this discussion](https://internals.rust-lang.org/t/what-shall-sync-mean-across-an-await/12020/2).
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nMake library no_std"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 31c2eef..50ee779 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -18,6 +18,7 @@\n //! This l... | Make library no_std | Make library nostd |
train-10-diff_to_message | jedisct1/rust | train | 10 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/src/lib.rs b/src/lib.rs
index 31c2eef..50ee779 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,6 +18,7 @@
//! This library is inspired by [this discussion](https://internals.rust-lang.org/t/what-shall-sync-mean-across-an-await/12020/2).
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
... | Make library no_std | Write a concise commit message that explains the following Rust code diff.
diff --git a/src/lib.rs b/src/lib.rs
index 31c2eef..50ee779 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,6 +18,7 @@
//! This library is inspired by [this discussion](https://internals.rust-lang.org/t/what-shall-sync-mean-across-an-await/120... | Make library no_std | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/src/lib.rs b/src/lib.rs\nindex 31c2eef..50ee779 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -18,6 +18,7 @@\n //! This library is inspired by [this discussion](https://internals.rust-la... | Make library no_std | Make library nostd |
train-10-minimized_message_to_diff | jedisct1/rust | train | 10 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Make library nostd | diff --git a/src/lib.rs b/src/lib.rs
index 31c2eef..50ee779 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,6 +18,7 @@
//! This library is inspired by [this discussion](https://internals.rust-lang.org/t/what-shall-sync-mean-across-an-await/12020/2).
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
... | Write a Rust code diff that implements the following commit message.
Make library nostd | diff --git a/src/lib.rs b/src/lib.rs
index 31c2eef..50ee779 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,6 +18,7 @@
//! This library is inspired by [this discussion](https://internals.rust-lang.org/t/what-shall-sync-mean-across-an-await/12020/2).
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nMake library nostd"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 31c2eef..50ee779 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -18,6 +18,7 @@\n //! This li... | Make library no_std | Make library nostd |
train-10-message_to_shuffled_diff | jedisct1/rust | train | 10 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Make library no_std | diff --git a/src/lib.rs b/src/lib.rs
index 31c2eef..50ee779 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,6 +18,7 @@
//! This library is inspired by [this discussion](https://internals.rust-lang.org/t/what-shall-sync-mean-across-an-await/12020/2).
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
... | Write a Rust code diff that implements the following commit message.
Make library no_std | diff --git a/src/lib.rs b/src/lib.rs
index 31c2eef..50ee779 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,6 +18,7 @@
//! This library is inspired by [this discussion](https://internals.rust-lang.org/t/what-shall-sync-mean-across-an-await/12020/2).
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nMake library no_std"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 31c2eef..50ee779 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -18,6 +18,7 @@\n //! This l... | Make library no_std | Make library nostd |
train-11-message_to_diff | jedisct1/rust | train | 11 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Implement `From<T>` for `SyncWrapper<T>` | diff --git a/src/lib.rs b/src/lib.rs
index 3b9a43a..33f75ab 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -138,3 +138,9 @@ impl<T: Default> Default for SyncWrapper<T> {
Self::new(T::default())
}
}
+
+impl<T> From<T> for SyncWrapper<T> {
+ fn from(value: T) -> Self {
+ Self::new(value)
+ }
+} | Write a Rust code diff that implements the following commit message.
Implement `From<T>` for `SyncWrapper<T>` | diff --git a/src/lib.rs b/src/lib.rs
index 3b9a43a..33f75ab 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -138,3 +138,9 @@ impl<T: Default> Default for SyncWrapper<T> {
Self::new(T::default())
}
}
+
+impl<T> From<T> for SyncWrapper<T> {
+ fn from(value: T) -> Self {
+ Self::new(value)
+ }
+} | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nImplement `From<T>` for `SyncWrapper<T>`"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 3b9a43a..33f75ab 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -138,3... | Implement `From<T>` for `SyncWrapper<T>` | Implement `<T>` `SyncWrapper<T>` |
train-11-diff_to_message | jedisct1/rust | train | 11 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/src/lib.rs b/src/lib.rs
index 3b9a43a..33f75ab 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -138,3 +138,9 @@ impl<T: Default> Default for SyncWrapper<T> {
Self::new(T::default())
}
}
+
+impl<T> From<T> for SyncWrapper<T> {
+ fn from(value: T) -> Self {
+ Self::new(value)
+ }
+} | Implement `From<T>` for `SyncWrapper<T>` | Write a concise commit message that explains the following Rust code diff.
diff --git a/src/lib.rs b/src/lib.rs
index 3b9a43a..33f75ab 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -138,3 +138,9 @@ impl<T: Default> Default for SyncWrapper<T> {
Self::new(T::default())
}
}
+
+impl<T> From<T> for SyncWrapper... | Implement `From<T>` for `SyncWrapper<T>` | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/src/lib.rs b/src/lib.rs\nindex 3b9a43a..33f75ab 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -138,3 +138,9 @@ impl<T: Default> Default for SyncWrapper<T> {\n Self::new(T::defaul... | Implement `From<T>` for `SyncWrapper<T>` | Implement `<T>` `SyncWrapper<T>` |
train-11-minimized_message_to_diff | jedisct1/rust | train | 11 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Implement `<T>` `SyncWrapper<T>` | diff --git a/src/lib.rs b/src/lib.rs
index 3b9a43a..33f75ab 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -138,3 +138,9 @@ impl<T: Default> Default for SyncWrapper<T> {
Self::new(T::default())
}
}
+
+impl<T> From<T> for SyncWrapper<T> {
+ fn from(value: T) -> Self {
+ Self::new(value)
+ }
+} | Write a Rust code diff that implements the following commit message.
Implement `<T>` `SyncWrapper<T>` | diff --git a/src/lib.rs b/src/lib.rs
index 3b9a43a..33f75ab 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -138,3 +138,9 @@ impl<T: Default> Default for SyncWrapper<T> {
Self::new(T::default())
}
}
+
+impl<T> From<T> for SyncWrapper<T> {
+ fn from(value: T) -> Self {
+ Self::new(value)
+ }
+} | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nImplement `<T>` `SyncWrapper<T>`"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 3b9a43a..33f75ab 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -138,3 +138,9 ... | Implement `From<T>` for `SyncWrapper<T>` | Implement `<T>` `SyncWrapper<T>` |
train-11-message_to_shuffled_diff | jedisct1/rust | train | 11 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Implement `From<T>` for `SyncWrapper<T>` | diff --git a/src/lib.rs b/src/lib.rs
index 3b9a43a..33f75ab 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -138,3 +138,9 @@ impl<T: Default> Default for SyncWrapper<T> {
Self::new(T::default())
}
}
+
+impl<T> From<T> for SyncWrapper<T> {
+ fn from(value: T) -> Self {
+ Self::new(value)
+ }
+} | Write a Rust code diff that implements the following commit message.
Implement `From<T>` for `SyncWrapper<T>` | diff --git a/src/lib.rs b/src/lib.rs
index 3b9a43a..33f75ab 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -138,3 +138,9 @@ impl<T: Default> Default for SyncWrapper<T> {
Self::new(T::default())
}
}
+
+impl<T> From<T> for SyncWrapper<T> {
+ fn from(value: T) -> Self {
+ Self::new(value)
+ }
+} | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nImplement `From<T>` for `SyncWrapper<T>`"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 3b9a43a..33f75ab 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -138,3... | Implement `From<T>` for `SyncWrapper<T>` | Implement `<T>` `SyncWrapper<T>` |
train-12-message_to_diff | jedisct1/rust | train | 12 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Make `SyncWrapper::new` const | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..31c2eef 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -70,7 +70,7 @@ impl<T> SyncWrapper<T> {
///
/// let mutex = SyncWrapper::new(42);
/// ```
- pub fn new(value: T) -> Self {
+ pub const fn new(value: T) -> Self {
Self(value)
} | Write a Rust code diff that implements the following commit message.
Make `SyncWrapper::new` const | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..31c2eef 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -70,7 +70,7 @@ impl<T> SyncWrapper<T> {
///
/// let mutex = SyncWrapper::new(42);
/// ```
- pub fn new(value: T) -> Self {
+ pub const fn new(value: T) -> Self {
Self(value)
} | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nMake `SyncWrapper::new` const"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 053f1c1..31c2eef 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -70,7 +70,7 @@ im... | Make `SyncWrapper::new` const | Make `SyncWrapper::new` const |
train-12-diff_to_message | jedisct1/rust | train | 12 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..31c2eef 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -70,7 +70,7 @@ impl<T> SyncWrapper<T> {
///
/// let mutex = SyncWrapper::new(42);
/// ```
- pub fn new(value: T) -> Self {
+ pub const fn new(value: T) -> Self {
Self(value)
} | Make `SyncWrapper::new` const | Write a concise commit message that explains the following Rust code diff.
diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..31c2eef 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -70,7 +70,7 @@ impl<T> SyncWrapper<T> {
///
/// let mutex = SyncWrapper::new(42);
/// ```
- pub fn new(value: T) -> Self {... | Make `SyncWrapper::new` const | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/src/lib.rs b/src/lib.rs\nindex 053f1c1..31c2eef 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -70,7 +70,7 @@ impl<T> SyncWrapper<T> {\n ///\n /// let mutex = SyncWrapper::new(42)... | Make `SyncWrapper::new` const | Make `SyncWrapper::new` const |
train-12-minimized_message_to_diff | jedisct1/rust | train | 12 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Make `SyncWrapper::new` const | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..31c2eef 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -70,7 +70,7 @@ impl<T> SyncWrapper<T> {
///
/// let mutex = SyncWrapper::new(42);
/// ```
- pub fn new(value: T) -> Self {
+ pub const fn new(value: T) -> Self {
Self(value)
} | Write a Rust code diff that implements the following commit message.
Make `SyncWrapper::new` const | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..31c2eef 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -70,7 +70,7 @@ impl<T> SyncWrapper<T> {
///
/// let mutex = SyncWrapper::new(42);
/// ```
- pub fn new(value: T) -> Self {
+ pub const fn new(value: T) -> Self {
Self(value)
} | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nMake `SyncWrapper::new` const"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 053f1c1..31c2eef 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -70,7 +70,7 @@ im... | Make `SyncWrapper::new` const | Make `SyncWrapper::new` const |
train-12-message_to_shuffled_diff | jedisct1/rust | train | 12 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Make `SyncWrapper::new` const | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..31c2eef 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -70,7 +70,7 @@ impl<T> SyncWrapper<T> {
///
/// let mutex = SyncWrapper::new(42);
/// ```
- pub fn new(value: T) -> Self {
+ pub const fn new(value: T) -> Self {
Self(value)
} | Write a Rust code diff that implements the following commit message.
Make `SyncWrapper::new` const | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..31c2eef 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -70,7 +70,7 @@ impl<T> SyncWrapper<T> {
///
/// let mutex = SyncWrapper::new(42);
/// ```
- pub fn new(value: T) -> Self {
+ pub const fn new(value: T) -> Self {
Self(value)
} | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nMake `SyncWrapper::new` const"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 053f1c1..31c2eef 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -70,7 +70,7 @@ im... | Make `SyncWrapper::new` const | Make `SyncWrapper::new` const |
train-13-message_to_diff | jedisct1/rust | train | 13 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Implement `Default` for `SyncWrapper` | diff --git a/src/lib.rs b/src/lib.rs
index 4387dd5..3b9a43a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -132,3 +132,9 @@ impl<T> Debug for SyncWrapper<T> {
f.pad("SyncWrapper")
}
}
+
+impl<T: Default> Default for SyncWrapper<T> {
+ fn default() -> Self {
+ Self::new(T::default())
+ }
+} | Write a Rust code diff that implements the following commit message.
Implement `Default` for `SyncWrapper` | diff --git a/src/lib.rs b/src/lib.rs
index 4387dd5..3b9a43a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -132,3 +132,9 @@ impl<T> Debug for SyncWrapper<T> {
f.pad("SyncWrapper")
}
}
+
+impl<T: Default> Default for SyncWrapper<T> {
+ fn default() -> Self {
+ Self::new(T::default())
+ }
+} | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nImplement `Default` for `SyncWrapper`"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 4387dd5..3b9a43a 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -132,3 +1... | Implement `Default` for `SyncWrapper` | Implement `Default` `SyncWrapper` |
train-13-diff_to_message | jedisct1/rust | train | 13 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/src/lib.rs b/src/lib.rs
index 4387dd5..3b9a43a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -132,3 +132,9 @@ impl<T> Debug for SyncWrapper<T> {
f.pad("SyncWrapper")
}
}
+
+impl<T: Default> Default for SyncWrapper<T> {
+ fn default() -> Self {
+ Self::new(T::default())
+ }
+} | Implement `Default` for `SyncWrapper` | Write a concise commit message that explains the following Rust code diff.
diff --git a/src/lib.rs b/src/lib.rs
index 4387dd5..3b9a43a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -132,3 +132,9 @@ impl<T> Debug for SyncWrapper<T> {
f.pad("SyncWrapper")
}
}
+
+impl<T: Default> Default for SyncWrapper<T> {... | Implement `Default` for `SyncWrapper` | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/src/lib.rs b/src/lib.rs\nindex 4387dd5..3b9a43a 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -132,3 +132,9 @@ impl<T> Debug for SyncWrapper<T> {\n f.pad(\"SyncWrapper\")\n }... | Implement `Default` for `SyncWrapper` | Implement `Default` `SyncWrapper` |
train-13-minimized_message_to_diff | jedisct1/rust | train | 13 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Implement `Default` `SyncWrapper` | diff --git a/src/lib.rs b/src/lib.rs
index 4387dd5..3b9a43a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -132,3 +132,9 @@ impl<T> Debug for SyncWrapper<T> {
f.pad("SyncWrapper")
}
}
+
+impl<T: Default> Default for SyncWrapper<T> {
+ fn default() -> Self {
+ Self::new(T::default())
+ }
+} | Write a Rust code diff that implements the following commit message.
Implement `Default` `SyncWrapper` | diff --git a/src/lib.rs b/src/lib.rs
index 4387dd5..3b9a43a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -132,3 +132,9 @@ impl<T> Debug for SyncWrapper<T> {
f.pad("SyncWrapper")
}
}
+
+impl<T: Default> Default for SyncWrapper<T> {
+ fn default() -> Self {
+ Self::new(T::default())
+ }
+} | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nImplement `Default` `SyncWrapper`"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 4387dd5..3b9a43a 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -132,3 +132,9... | Implement `Default` for `SyncWrapper` | Implement `Default` `SyncWrapper` |
train-13-message_to_shuffled_diff | jedisct1/rust | train | 13 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Implement `Default` for `SyncWrapper` | diff --git a/src/lib.rs b/src/lib.rs
index 4387dd5..3b9a43a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -132,3 +132,9 @@ impl<T> Debug for SyncWrapper<T> {
f.pad("SyncWrapper")
}
}
+
+impl<T: Default> Default for SyncWrapper<T> {
+ fn default() -> Self {
+ Self::new(T::default())
+ }
+} | Write a Rust code diff that implements the following commit message.
Implement `Default` for `SyncWrapper` | diff --git a/src/lib.rs b/src/lib.rs
index 4387dd5..3b9a43a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -132,3 +132,9 @@ impl<T> Debug for SyncWrapper<T> {
f.pad("SyncWrapper")
}
}
+
+impl<T: Default> Default for SyncWrapper<T> {
+ fn default() -> Self {
+ Self::new(T::default())
+ }
+} | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nImplement `Default` for `SyncWrapper`"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 4387dd5..3b9a43a 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -132,3 +1... | Implement `Default` for `SyncWrapper` | Implement `Default` `SyncWrapper` |
train-14-message_to_diff | jedisct1/rust | train | 14 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Implement `Debug` for `SyncWrapper`
This change allows users to `#[derive(Debug)]` on types that contain
`SyncWrapper`. The actual implementation does not give any useful
information, but that is fine because nothing could be done anyway. | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..4387dd5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -19,6 +19,8 @@
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
#![doc(html_favicon_url = "https://developer.actyx.com/img/favicon.ico")]
+use core::fmt::{self, Debug, Formatter};
+
/// A mutu... | Write a Rust code diff that implements the following commit message.
Implement `Debug` for `SyncWrapper`
This change allows users to `#[derive(Debug)]` on types that contain
`SyncWrapper`. The actual implementation does not give any useful
information, but that is fine because nothing could be done anyway. | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..4387dd5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -19,6 +19,8 @@
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
#![doc(html_favicon_url = "https://developer.actyx.com/img/favicon.ico")]
+use core::fmt::{self, Debug, Formatter};
+
/// A mutu... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nImplement `Debug` for `SyncWrapper`\n\nThis change allows users to `#[derive(Debug)]` on types that contain\n`SyncWrapper`. The actual implementation does not give any useful\ninformation, but that is fine ... | Implement `Debug` for `SyncWrapper`
This change allows users to `#[derive(Debug)]` on types that contain
`SyncWrapper`. The actual implementation does not give any useful
information, but that is fine because nothing could be done anyway. | Implement `Debug` `SyncWrapper` change allows users `#[derive(Debug)]` types contain `SyncWrapper`. actual implementation does not give any useful information, but fine because nothing could done anyway. |
train-14-diff_to_message | jedisct1/rust | train | 14 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..4387dd5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -19,6 +19,8 @@
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
#![doc(html_favicon_url = "https://developer.actyx.com/img/favicon.ico")]
+use core::fmt::{self, Debug, Formatter};
+
/// A mutu... | Implement `Debug` for `SyncWrapper`
This change allows users to `#[derive(Debug)]` on types that contain
`SyncWrapper`. The actual implementation does not give any useful
information, but that is fine because nothing could be done anyway. | Write a concise commit message that explains the following Rust code diff.
diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..4387dd5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -19,6 +19,8 @@
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
#![doc(html_favicon_url = "https://developer.actyx.com/... | Implement `Debug` for `SyncWrapper`
This change allows users to `#[derive(Debug)]` on types that contain
`SyncWrapper`. The actual implementation does not give any useful
information, but that is fine because nothing could be done anyway. | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/src/lib.rs b/src/lib.rs\nindex 053f1c1..4387dd5 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -19,6 +19,8 @@\n #![doc(html_logo_url = \"https://developer.actyx.com/img/logo.svg\")]\n #![... | Implement `Debug` for `SyncWrapper`
This change allows users to `#[derive(Debug)]` on types that contain
`SyncWrapper`. The actual implementation does not give any useful
information, but that is fine because nothing could be done anyway. | Implement `Debug` `SyncWrapper` change allows users `#[derive(Debug)]` types contain `SyncWrapper`. actual implementation does not give any useful information, but fine because nothing could done anyway. |
train-14-minimized_message_to_diff | jedisct1/rust | train | 14 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Implement `Debug` `SyncWrapper` change allows users `#[derive(Debug)]` types contain `SyncWrapper`. actual implementation does not give any useful information, but fine because nothing could done anyway. | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..4387dd5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -19,6 +19,8 @@
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
#![doc(html_favicon_url = "https://developer.actyx.com/img/favicon.ico")]
+use core::fmt::{self, Debug, Formatter};
+
/// A mutu... | Write a Rust code diff that implements the following commit message.
Implement `Debug` `SyncWrapper` change allows users `#[derive(Debug)]` types contain `SyncWrapper`. actual implementation does not give any useful information, but fine because nothing could done anyway. | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..4387dd5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -19,6 +19,8 @@
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
#![doc(html_favicon_url = "https://developer.actyx.com/img/favicon.ico")]
+use core::fmt::{self, Debug, Formatter};
+
/// A mutu... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nImplement `Debug` `SyncWrapper` change allows users `#[derive(Debug)]` types contain `SyncWrapper`. actual implementation does not give any useful information, but fine because nothing could done anyway."
... | Implement `Debug` for `SyncWrapper`
This change allows users to `#[derive(Debug)]` on types that contain
`SyncWrapper`. The actual implementation does not give any useful
information, but that is fine because nothing could be done anyway. | Implement `Debug` `SyncWrapper` change allows users `#[derive(Debug)]` types contain `SyncWrapper`. actual implementation does not give any useful information, but fine because nothing could done anyway. |
train-14-message_to_shuffled_diff | jedisct1/rust | train | 14 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Implement `Debug` for `SyncWrapper`
This change allows users to `#[derive(Debug)]` on types that contain
`SyncWrapper`. The actual implementation does not give any useful
information, but that is fine because nothing could be done anyway. | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..4387dd5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -19,6 +19,8 @@
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
#![doc(html_favicon_url = "https://developer.actyx.com/img/favicon.ico")]
+use core::fmt::{self, Debug, Formatter};
+
/// A mutu... | Write a Rust code diff that implements the following commit message.
Implement `Debug` for `SyncWrapper`
This change allows users to `#[derive(Debug)]` on types that contain
`SyncWrapper`. The actual implementation does not give any useful
information, but that is fine because nothing could be done anyway. | diff --git a/src/lib.rs b/src/lib.rs
index 053f1c1..4387dd5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -19,6 +19,8 @@
#![doc(html_logo_url = "https://developer.actyx.com/img/logo.svg")]
#![doc(html_favicon_url = "https://developer.actyx.com/img/favicon.ico")]
+use core::fmt::{self, Debug, Formatter};
+
/// A mutu... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nImplement `Debug` for `SyncWrapper`\n\nThis change allows users to `#[derive(Debug)]` on types that contain\n`SyncWrapper`. The actual implementation does not give any useful\ninformation, but that is fine ... | Implement `Debug` for `SyncWrapper`
This change allows users to `#[derive(Debug)]` on types that contain
`SyncWrapper`. The actual implementation does not give any useful
information, but that is fine because nothing could be done anyway. | Implement `Debug` `SyncWrapper` change allows users `#[derive(Debug)]` types contain `SyncWrapper`. actual implementation does not give any useful information, but fine because nothing could done anyway. |
train-15-message_to_diff | jedisct1/rust | train | 15 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Add `SyncWrapper::get_pin_mut` | diff --git a/Cargo.lock b/Cargo.lock
index bb937a9..08566d7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,16 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.7"
+source = "registry+https://github.... | Write a Rust code diff that implements the following commit message.
Add `SyncWrapper::get_pin_mut` | diff --git a/Cargo.lock b/Cargo.lock
index bb937a9..08566d7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,16 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.7"
+source = "registry+https://github.... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nAdd `SyncWrapper::get_pin_mut`"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.lock b/Cargo.lock\nindex bb937a9..08566d7 100644\n--- a/Cargo.lock\n+++ b/Cargo.lock\n@@ -1,5 +1,16 @@\n ... | Add `SyncWrapper::get_pin_mut` | Add `SyncWrapper::getpinmut` |
train-15-diff_to_message | jedisct1/rust | train | 15 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.lock b/Cargo.lock
index bb937a9..08566d7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,16 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.7"
+source = "registry+https://github.... | Add `SyncWrapper::get_pin_mut` | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.lock b/Cargo.lock
index bb937a9..08566d7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,16 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name... | Add `SyncWrapper::get_pin_mut` | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.lock b/Cargo.lock\nindex bb937a9..08566d7 100644\n--- a/Cargo.lock\n+++ b/Cargo.lock\n@@ -1,5 +1,16 @@\n # This file is automatically @generated by Cargo.\n # It is not intended for... | Add `SyncWrapper::get_pin_mut` | Add `SyncWrapper::getpinmut` |
train-15-minimized_message_to_diff | jedisct1/rust | train | 15 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Add `SyncWrapper::getpinmut` | diff --git a/Cargo.lock b/Cargo.lock
index bb937a9..08566d7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,16 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.7"
+source = "registry+https://github.... | Write a Rust code diff that implements the following commit message.
Add `SyncWrapper::getpinmut` | diff --git a/Cargo.lock b/Cargo.lock
index bb937a9..08566d7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,16 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.7"
+source = "registry+https://github.... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nAdd `SyncWrapper::getpinmut`"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.lock b/Cargo.lock\nindex bb937a9..08566d7 100644\n--- a/Cargo.lock\n+++ b/Cargo.lock\n@@ -1,5 +1,16 @@\n # ... | Add `SyncWrapper::get_pin_mut` | Add `SyncWrapper::getpinmut` |
train-15-message_to_shuffled_diff | jedisct1/rust | train | 15 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Add `SyncWrapper::get_pin_mut` | diff --git a/Cargo.toml b/Cargo.toml
index 4e2d988..74c8656 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,3 +10,6 @@ homepage = "https://docs.rs/sync_wrapper"
license = "Apache-2.0"
keywords = ["concurrency"]
categories = ["concurrency"]
+
+[dev-dependencies]
+pin-project-lite = "0.2.7"
diff --git a/Cargo.lock b/C... | Write a Rust code diff that implements the following commit message.
Add `SyncWrapper::get_pin_mut` | diff --git a/Cargo.toml b/Cargo.toml
index 4e2d988..74c8656 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,3 +10,6 @@ homepage = "https://docs.rs/sync_wrapper"
license = "Apache-2.0"
keywords = ["concurrency"]
categories = ["concurrency"]
+
+[dev-dependencies]
+pin-project-lite = "0.2.7"
diff --git a/Cargo.lock b/C... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nAdd `SyncWrapper::get_pin_mut`"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 4e2d988..74c8656 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -10,3 +10,6 @@ h... | Add `SyncWrapper::get_pin_mut` | Add `SyncWrapper::getpinmut` |
train-16-message_to_diff | jedisct1/rust | train | 16 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Remove the `T : Send` for `SyncWrapper` to be `Sync`
Indeed, it is not necessary: `Inner : Send => Wrapper : Sync` is only required for `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such as `Mutex` or, less obviously, `Arc` | diff --git a/src/lib.rs b/src/lib.rs
index b10e8e1..053f1c1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -123,4 +123,4 @@ impl<T> SyncWrapper<T> {
// this is safe because the only operations permitted on this data structure require exclusive
// access or ownership
-unsafe impl<T: Send> Sync for SyncWrapper<T> {}
+un... | Write a Rust code diff that implements the following commit message.
Remove the `T : Send` for `SyncWrapper` to be `Sync`
Indeed, it is not necessary: `Inner : Send => Wrapper : Sync` is only required for `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such as `Mutex` or, less obviously, `Arc` | diff --git a/src/lib.rs b/src/lib.rs
index b10e8e1..053f1c1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -123,4 +123,4 @@ impl<T> SyncWrapper<T> {
// this is safe because the only operations permitted on this data structure require exclusive
// access or ownership
-unsafe impl<T: Send> Sync for SyncWrapper<T> {}
+un... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nRemove the `T : Send` for `SyncWrapper` to be `Sync`\n\nIndeed, it is not necessary: `Inner : Send => Wrapper : Sync` is only required for `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such as `Mu... | Remove the `T : Send` for `SyncWrapper` to be `Sync`
Indeed, it is not necessary: `Inner : Send => Wrapper : Sync` is only required for `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such as `Mutex` or, less obviously, `Arc` | Remove `T: Send` `SyncWrapper` `Sync` Indeed, not necessary: `Inner: Send => Wrapper: Sync` only required `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such `Mutex`, less obviously, `Arc` |
train-16-diff_to_message | jedisct1/rust | train | 16 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/src/lib.rs b/src/lib.rs
index b10e8e1..053f1c1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -123,4 +123,4 @@ impl<T> SyncWrapper<T> {
// this is safe because the only operations permitted on this data structure require exclusive
// access or ownership
-unsafe impl<T: Send> Sync for SyncWrapper<T> {}
+un... | Remove the `T : Send` for `SyncWrapper` to be `Sync`
Indeed, it is not necessary: `Inner : Send => Wrapper : Sync` is only required for `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such as `Mutex` or, less obviously, `Arc` | Write a concise commit message that explains the following Rust code diff.
diff --git a/src/lib.rs b/src/lib.rs
index b10e8e1..053f1c1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -123,4 +123,4 @@ impl<T> SyncWrapper<T> {
// this is safe because the only operations permitted on this data structure require exclusive
... | Remove the `T : Send` for `SyncWrapper` to be `Sync`
Indeed, it is not necessary: `Inner : Send => Wrapper : Sync` is only required for `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such as `Mutex` or, less obviously, `Arc` | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/src/lib.rs b/src/lib.rs\nindex b10e8e1..053f1c1 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -123,4 +123,4 @@ impl<T> SyncWrapper<T> {\n \n // this is safe because the only operations p... | Remove the `T : Send` for `SyncWrapper` to be `Sync`
Indeed, it is not necessary: `Inner : Send => Wrapper : Sync` is only required for `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such as `Mutex` or, less obviously, `Arc` | Remove `T: Send` `SyncWrapper` `Sync` Indeed, not necessary: `Inner: Send => Wrapper: Sync` only required `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such `Mutex`, less obviously, `Arc` |
train-16-minimized_message_to_diff | jedisct1/rust | train | 16 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Remove `T: Send` `SyncWrapper` `Sync` Indeed, not necessary: `Inner: Send => Wrapper: Sync` only required `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such `Mutex`, less obviously, `Arc` | diff --git a/src/lib.rs b/src/lib.rs
index b10e8e1..053f1c1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -123,4 +123,4 @@ impl<T> SyncWrapper<T> {
// this is safe because the only operations permitted on this data structure require exclusive
// access or ownership
-unsafe impl<T: Send> Sync for SyncWrapper<T> {}
+un... | Write a Rust code diff that implements the following commit message.
Remove `T: Send` `SyncWrapper` `Sync` Indeed, not necessary: `Inner: Send => Wrapper: Sync` only required `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such `Mutex`, less obviously, `Arc` | diff --git a/src/lib.rs b/src/lib.rs
index b10e8e1..053f1c1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -123,4 +123,4 @@ impl<T> SyncWrapper<T> {
// this is safe because the only operations permitted on this data structure require exclusive
// access or ownership
-unsafe impl<T: Send> Sync for SyncWrapper<T> {}
+un... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nRemove `T: Send` `SyncWrapper` `Sync` Indeed, not necessary: `Inner: Send => Wrapper: Sync` only required `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such `Mutex`, less obviously, `Arc`"
},
... | Remove the `T : Send` for `SyncWrapper` to be `Sync`
Indeed, it is not necessary: `Inner : Send => Wrapper : Sync` is only required for `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such as `Mutex` or, less obviously, `Arc` | Remove `T: Send` `SyncWrapper` `Sync` Indeed, not necessary: `Inner: Send => Wrapper: Sync` only required `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such `Mutex`, less obviously, `Arc` |
train-16-message_to_shuffled_diff | jedisct1/rust | train | 16 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Remove the `T : Send` for `SyncWrapper` to be `Sync`
Indeed, it is not necessary: `Inner : Send => Wrapper : Sync` is only required for `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such as `Mutex` or, less obviously, `Arc` | diff --git a/src/lib.rs b/src/lib.rs
index b10e8e1..053f1c1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -123,4 +123,4 @@ impl<T> SyncWrapper<T> {
// this is safe because the only operations permitted on this data structure require exclusive
// access or ownership
-unsafe impl<T: Send> Sync for SyncWrapper<T> {}
+un... | Write a Rust code diff that implements the following commit message.
Remove the `T : Send` for `SyncWrapper` to be `Sync`
Indeed, it is not necessary: `Inner : Send => Wrapper : Sync` is only required for `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such as `Mutex` or, less obviously, `Arc` | diff --git a/src/lib.rs b/src/lib.rs
index b10e8e1..053f1c1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -123,4 +123,4 @@ impl<T> SyncWrapper<T> {
// this is safe because the only operations permitted on this data structure require exclusive
// access or ownership
-unsafe impl<T: Send> Sync for SyncWrapper<T> {}
+un... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nRemove the `T : Send` for `SyncWrapper` to be `Sync`\n\nIndeed, it is not necessary: `Inner : Send => Wrapper : Sync` is only required for `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such as `Mu... | Remove the `T : Send` for `SyncWrapper` to be `Sync`
Indeed, it is not necessary: `Inner : Send => Wrapper : Sync` is only required for `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such as `Mutex` or, less obviously, `Arc` | Remove `T: Send` `SyncWrapper` `Sync` Indeed, not necessary: `Inner: Send => Wrapper: Sync` only required `Wrapper`s allowing `&Wrapper -> &mut Inner` code paths such `Mutex`, less obviously, `Arc` |
train-17-message_to_diff | jedisct1/rust | train | 17 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | fix x86 32 bit build | diff --git a/src/lib.rs b/src/lib.rs
index 53856cd..aede1a5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -535,6 +535,13 @@ mod tests {
assert_serde(&a, 30);
}
+ // on 32-bit x86 64 bit atomics exist, but they can't be used to implement
+ // atomic<i64> because AtomicI64 has a greater alignment requ... | Write a Rust code diff that implements the following commit message.
fix x86 32 bit build | diff --git a/src/lib.rs b/src/lib.rs
index 53856cd..aede1a5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -535,6 +535,13 @@ mod tests {
assert_serde(&a, 30);
}
+ // on 32-bit x86 64 bit atomics exist, but they can't be used to implement
+ // atomic<i64> because AtomicI64 has a greater alignment requ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nfix x86 32 bit build"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 53856cd..aede1a5 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -535,6 +535,13 @@ mod test... | fix x86 32 bit build | fix x86 32 bit build |
train-17-diff_to_message | jedisct1/rust | train | 17 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/src/lib.rs b/src/lib.rs
index 53856cd..aede1a5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -535,6 +535,13 @@ mod tests {
assert_serde(&a, 30);
}
+ // on 32-bit x86 64 bit atomics exist, but they can't be used to implement
+ // atomic<i64> because AtomicI64 has a greater alignment requ... | fix x86 32 bit build | Write a concise commit message that explains the following Rust code diff.
diff --git a/src/lib.rs b/src/lib.rs
index 53856cd..aede1a5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -535,6 +535,13 @@ mod tests {
assert_serde(&a, 30);
}
+ // on 32-bit x86 64 bit atomics exist, but they can't be used to ... | fix x86 32 bit build | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/src/lib.rs b/src/lib.rs\nindex 53856cd..aede1a5 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -535,6 +535,13 @@ mod tests {\n assert_serde(&a, 30);\n }\n \n+ // on 32-bit ... | fix x86 32 bit build | fix x86 32 bit build |
train-17-minimized_message_to_diff | jedisct1/rust | train | 17 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | fix x86 32 bit build | diff --git a/src/lib.rs b/src/lib.rs
index 53856cd..aede1a5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -535,6 +535,13 @@ mod tests {
assert_serde(&a, 30);
}
+ // on 32-bit x86 64 bit atomics exist, but they can't be used to implement
+ // atomic<i64> because AtomicI64 has a greater alignment requ... | Write a Rust code diff that implements the following commit message.
fix x86 32 bit build | diff --git a/src/lib.rs b/src/lib.rs
index 53856cd..aede1a5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -535,6 +535,13 @@ mod tests {
assert_serde(&a, 30);
}
+ // on 32-bit x86 64 bit atomics exist, but they can't be used to implement
+ // atomic<i64> because AtomicI64 has a greater alignment requ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nfix x86 32 bit build"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 53856cd..aede1a5 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -535,6 +535,13 @@ mod test... | fix x86 32 bit build | fix x86 32 bit build |
train-17-message_to_shuffled_diff | jedisct1/rust | train | 17 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | fix x86 32 bit build | diff --git a/src/lib.rs b/src/lib.rs
index 53856cd..aede1a5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -535,6 +535,13 @@ mod tests {
assert_serde(&a, 30);
}
+ // on 32-bit x86 64 bit atomics exist, but they can't be used to implement
+ // atomic<i64> because AtomicI64 has a greater alignment requ... | Write a Rust code diff that implements the following commit message.
fix x86 32 bit build | diff --git a/src/lib.rs b/src/lib.rs
index 53856cd..aede1a5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -535,6 +535,13 @@ mod tests {
assert_serde(&a, 30);
}
+ // on 32-bit x86 64 bit atomics exist, but they can't be used to implement
+ // atomic<i64> because AtomicI64 has a greater alignment requ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nfix x86 32 bit build"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 53856cd..aede1a5 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -535,6 +535,13 @@ mod test... | fix x86 32 bit build | fix x86 32 bit build |
train-18-message_to_diff | jedisct1/rust | train | 18 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Use `Relaxed` memory ordering for `Debug` and serde serialization.
Signed-off-by: Ben Pfaff <blp@cs.stanford.edu> | diff --git a/src/lib.rs b/src/lib.rs
index 1de280f..53856cd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -91,7 +91,7 @@ impl<T: Default> Default for Atomic<T> {
impl<T: NoUninit + fmt::Debug> fmt::Debug for Atomic<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("Atomic")
- ... | Write a Rust code diff that implements the following commit message.
Use `Relaxed` memory ordering for `Debug` and serde serialization.
Signed-off-by: Ben Pfaff <blp@cs.stanford.edu> | diff --git a/src/lib.rs b/src/lib.rs
index 1de280f..53856cd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -91,7 +91,7 @@ impl<T: Default> Default for Atomic<T> {
impl<T: NoUninit + fmt::Debug> fmt::Debug for Atomic<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("Atomic")
- ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nUse `Relaxed` memory ordering for `Debug` and serde serialization.\n\nSigned-off-by: Ben Pfaff <blp@cs.stanford.edu>"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\n... | Use `Relaxed` memory ordering for `Debug` and serde serialization.
Signed-off-by: Ben Pfaff <blp@cs.stanford.edu> | Use `Relaxed` memory ordering `Debug` serde serialization. Signed-off-: Ben Pfaff <blp@cs.stanford.edu> |
train-18-diff_to_message | jedisct1/rust | train | 18 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/src/lib.rs b/src/lib.rs
index 1de280f..53856cd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -91,7 +91,7 @@ impl<T: Default> Default for Atomic<T> {
impl<T: NoUninit + fmt::Debug> fmt::Debug for Atomic<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("Atomic")
- ... | Use `Relaxed` memory ordering for `Debug` and serde serialization.
Signed-off-by: Ben Pfaff <blp@cs.stanford.edu> | Write a concise commit message that explains the following Rust code diff.
diff --git a/src/lib.rs b/src/lib.rs
index 1de280f..53856cd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -91,7 +91,7 @@ impl<T: Default> Default for Atomic<T> {
impl<T: NoUninit + fmt::Debug> fmt::Debug for Atomic<T> {
fn fmt(&self, f: &mu... | Use `Relaxed` memory ordering for `Debug` and serde serialization.
Signed-off-by: Ben Pfaff <blp@cs.stanford.edu> | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/src/lib.rs b/src/lib.rs\nindex 1de280f..53856cd 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -91,7 +91,7 @@ impl<T: Default> Default for Atomic<T> {\n impl<T: NoUninit + fmt::Debug> fmt... | Use `Relaxed` memory ordering for `Debug` and serde serialization.
Signed-off-by: Ben Pfaff <blp@cs.stanford.edu> | Use `Relaxed` memory ordering `Debug` serde serialization. Signed-off-: Ben Pfaff <blp@cs.stanford.edu> |
train-18-minimized_message_to_diff | jedisct1/rust | train | 18 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Use `Relaxed` memory ordering `Debug` serde serialization. Signed-off-: Ben Pfaff <blp@cs.stanford.edu> | diff --git a/src/lib.rs b/src/lib.rs
index 1de280f..53856cd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -91,7 +91,7 @@ impl<T: Default> Default for Atomic<T> {
impl<T: NoUninit + fmt::Debug> fmt::Debug for Atomic<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("Atomic")
- ... | Write a Rust code diff that implements the following commit message.
Use `Relaxed` memory ordering `Debug` serde serialization. Signed-off-: Ben Pfaff <blp@cs.stanford.edu> | diff --git a/src/lib.rs b/src/lib.rs
index 1de280f..53856cd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -91,7 +91,7 @@ impl<T: Default> Default for Atomic<T> {
impl<T: NoUninit + fmt::Debug> fmt::Debug for Atomic<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("Atomic")
- ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nUse `Relaxed` memory ordering `Debug` serde serialization. Signed-off-: Ben Pfaff <blp@cs.stanford.edu>"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex 1de280f... | Use `Relaxed` memory ordering for `Debug` and serde serialization.
Signed-off-by: Ben Pfaff <blp@cs.stanford.edu> | Use `Relaxed` memory ordering `Debug` serde serialization. Signed-off-: Ben Pfaff <blp@cs.stanford.edu> |
train-18-message_to_shuffled_diff | jedisct1/rust | train | 18 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Use `Relaxed` memory ordering for `Debug` and serde serialization.
Signed-off-by: Ben Pfaff <blp@cs.stanford.edu> | diff --git a/src/serde_impl.rs b/src/serde_impl.rs
index 85fcfa7..469a2a0 100644
--- a/src/serde_impl.rs
+++ b/src/serde_impl.rs
@@ -14,7 +14,7 @@ where
S: Serializer,
{
// Matches the atomic ordering used in `Debug` for `Atomic<T>`.
- self.load(Ordering::SeqCst).serialize(serializer)
+ ... | Write a Rust code diff that implements the following commit message.
Use `Relaxed` memory ordering for `Debug` and serde serialization.
Signed-off-by: Ben Pfaff <blp@cs.stanford.edu> | diff --git a/src/serde_impl.rs b/src/serde_impl.rs
index 85fcfa7..469a2a0 100644
--- a/src/serde_impl.rs
+++ b/src/serde_impl.rs
@@ -14,7 +14,7 @@ where
S: Serializer,
{
// Matches the atomic ordering used in `Debug` for `Atomic<T>`.
- self.load(Ordering::SeqCst).serialize(serializer)
+ ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nUse `Relaxed` memory ordering for `Debug` and serde serialization.\n\nSigned-off-by: Ben Pfaff <blp@cs.stanford.edu>"
},
{
"role": "assistant",
"content": "diff --git a/src/serde_impl.rs b/src/s... | Use `Relaxed` memory ordering for `Debug` and serde serialization.
Signed-off-by: Ben Pfaff <blp@cs.stanford.edu> | Use `Relaxed` memory ordering `Debug` serde serialization. Signed-off-: Ben Pfaff <blp@cs.stanford.edu> |
train-19-message_to_diff | jedisct1/rust | train | 19 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Bump version to 0.5.3 | diff --git a/Cargo.toml b/Cargo.toml
index a521f9f..6471054 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.2"
+version = "0.5.3"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type"
@@ -14,4 +14,4 @@ k... | Write a Rust code diff that implements the following commit message.
Bump version to 0.5.3 | diff --git a/Cargo.toml b/Cargo.toml
index a521f9f..6471054 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.2"
+version = "0.5.3"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type"
@@ -14,4 +14,4 @@ k... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nBump version to 0.5.3"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex a521f9f..6471054 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\... | Bump version to 0.5.3 | Bump version 0.5.3 |
train-19-diff_to_message | jedisct1/rust | train | 19 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.toml b/Cargo.toml
index a521f9f..6471054 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.2"
+version = "0.5.3"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type"
@@ -14,4 +14,4 @@ k... | Bump version to 0.5.3 | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.toml b/Cargo.toml
index a521f9f..6471054 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.2"
+version = "0.5.3"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmai... | Bump version to 0.5.3 | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.toml b/Cargo.toml\nindex a521f9f..6471054 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name = \"atomic\"\n-version = \"0.5.2\"\n+version = \"0.5.3\"\n e... | Bump version to 0.5.3 | Bump version 0.5.3 |
train-19-minimized_message_to_diff | jedisct1/rust | train | 19 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Bump version 0.5.3 | diff --git a/Cargo.toml b/Cargo.toml
index a521f9f..6471054 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.2"
+version = "0.5.3"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type"
@@ -14,4 +14,4 @@ k... | Write a Rust code diff that implements the following commit message.
Bump version 0.5.3 | diff --git a/Cargo.toml b/Cargo.toml
index a521f9f..6471054 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.2"
+version = "0.5.3"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type"
@@ -14,4 +14,4 @@ k... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nBump version 0.5.3"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex a521f9f..6471054 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n n... | Bump version to 0.5.3 | Bump version 0.5.3 |
train-19-message_to_shuffled_diff | jedisct1/rust | train | 19 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Bump version to 0.5.3 | diff --git a/Cargo.toml b/Cargo.toml
index a521f9f..6471054 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.2"
+version = "0.5.3"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type"
@@ -14,4 +14,4 @@ k... | Write a Rust code diff that implements the following commit message.
Bump version to 0.5.3 | diff --git a/Cargo.toml b/Cargo.toml
index a521f9f..6471054 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.2"
+version = "0.5.3"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type"
@@ -14,4 +14,4 @@ k... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nBump version to 0.5.3"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex a521f9f..6471054 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\... | Bump version to 0.5.3 | Bump version 0.5.3 |
train-20-message_to_diff | jedisct1/rust | train | 20 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Fix wrong cfg_attr syntax
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com> | diff --git a/src/lib.rs b/src/lib.rs
index e0065b1..1f89ca6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -33,7 +33,7 @@
#![warn(missing_docs)]
#![warn(rust_2018_idioms)]
#![no_std]
-#![cfg_attr(nightly, feature(integer_atomics))]
+#![cfg_attr(feature = "nightly", feature(integer_atomics))]
#[cfg(any(test, feature ... | Write a Rust code diff that implements the following commit message.
Fix wrong cfg_attr syntax
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com> | diff --git a/src/lib.rs b/src/lib.rs
index e0065b1..1f89ca6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -33,7 +33,7 @@
#![warn(missing_docs)]
#![warn(rust_2018_idioms)]
#![no_std]
-#![cfg_attr(nightly, feature(integer_atomics))]
+#![cfg_attr(feature = "nightly", feature(integer_atomics))]
#[cfg(any(test, feature ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nFix wrong cfg_attr syntax\n\nCo-authored-by: Amanieu d'Antras <amanieu@gmail.com>"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex e0065b1..1f89ca6 100644\n--- ... | Fix wrong cfg_attr syntax
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com> | Fix wrong cfgattr syntax Co-authored-: Amanieu d'Antras <amanieu@gmail.com> |
train-20-diff_to_message | jedisct1/rust | train | 20 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/src/lib.rs b/src/lib.rs
index e0065b1..1f89ca6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -33,7 +33,7 @@
#![warn(missing_docs)]
#![warn(rust_2018_idioms)]
#![no_std]
-#![cfg_attr(nightly, feature(integer_atomics))]
+#![cfg_attr(feature = "nightly", feature(integer_atomics))]
#[cfg(any(test, feature ... | Fix wrong cfg_attr syntax
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com> | Write a concise commit message that explains the following Rust code diff.
diff --git a/src/lib.rs b/src/lib.rs
index e0065b1..1f89ca6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -33,7 +33,7 @@
#![warn(missing_docs)]
#![warn(rust_2018_idioms)]
#![no_std]
-#![cfg_attr(nightly, feature(integer_atomics))]
+#![cfg_attr... | Fix wrong cfg_attr syntax
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com> | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/src/lib.rs b/src/lib.rs\nindex e0065b1..1f89ca6 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -33,7 +33,7 @@\n #![warn(missing_docs)]\n #![warn(rust_2018_idioms)]\n #![no_std]\n-#![cfg_a... | Fix wrong cfg_attr syntax
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com> | Fix wrong cfgattr syntax Co-authored-: Amanieu d'Antras <amanieu@gmail.com> |
train-20-minimized_message_to_diff | jedisct1/rust | train | 20 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Fix wrong cfgattr syntax Co-authored-: Amanieu d'Antras <amanieu@gmail.com> | diff --git a/src/lib.rs b/src/lib.rs
index e0065b1..1f89ca6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -33,7 +33,7 @@
#![warn(missing_docs)]
#![warn(rust_2018_idioms)]
#![no_std]
-#![cfg_attr(nightly, feature(integer_atomics))]
+#![cfg_attr(feature = "nightly", feature(integer_atomics))]
#[cfg(any(test, feature ... | Write a Rust code diff that implements the following commit message.
Fix wrong cfgattr syntax Co-authored-: Amanieu d'Antras <amanieu@gmail.com> | diff --git a/src/lib.rs b/src/lib.rs
index e0065b1..1f89ca6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -33,7 +33,7 @@
#![warn(missing_docs)]
#![warn(rust_2018_idioms)]
#![no_std]
-#![cfg_attr(nightly, feature(integer_atomics))]
+#![cfg_attr(feature = "nightly", feature(integer_atomics))]
#[cfg(any(test, feature ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nFix wrong cfgattr syntax Co-authored-: Amanieu d'Antras <amanieu@gmail.com>"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex e0065b1..1f89ca6 100644\n--- a/src/... | Fix wrong cfg_attr syntax
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com> | Fix wrong cfgattr syntax Co-authored-: Amanieu d'Antras <amanieu@gmail.com> |
train-20-message_to_shuffled_diff | jedisct1/rust | train | 20 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Fix wrong cfg_attr syntax
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com> | diff --git a/src/lib.rs b/src/lib.rs
index e0065b1..1f89ca6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -33,7 +33,7 @@
#![warn(missing_docs)]
#![warn(rust_2018_idioms)]
#![no_std]
-#![cfg_attr(nightly, feature(integer_atomics))]
+#![cfg_attr(feature = "nightly", feature(integer_atomics))]
#[cfg(any(test, feature ... | Write a Rust code diff that implements the following commit message.
Fix wrong cfg_attr syntax
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com> | diff --git a/src/lib.rs b/src/lib.rs
index e0065b1..1f89ca6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -33,7 +33,7 @@
#![warn(missing_docs)]
#![warn(rust_2018_idioms)]
#![no_std]
-#![cfg_attr(nightly, feature(integer_atomics))]
+#![cfg_attr(feature = "nightly", feature(integer_atomics))]
#[cfg(any(test, feature ... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nFix wrong cfg_attr syntax\n\nCo-authored-by: Amanieu d'Antras <amanieu@gmail.com>"
},
{
"role": "assistant",
"content": "diff --git a/src/lib.rs b/src/lib.rs\nindex e0065b1..1f89ca6 100644\n--- ... | Fix wrong cfg_attr syntax
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com> | Fix wrong cfgattr syntax Co-authored-: Amanieu d'Antras <amanieu@gmail.com> |
train-21-message_to_diff | jedisct1/rust | train | 21 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Put i/u128 behind feature | diff --git a/Cargo.toml b/Cargo.toml
index 0fd9c94..a521f9f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,4 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
+nightly = []
\ No newline at end of file
diff --git a/src/lib.rs b/src/lib.rs
index 10f6c6d..e0065b1 100644
--- a/src/l... | Write a Rust code diff that implements the following commit message.
Put i/u128 behind feature | diff --git a/Cargo.toml b/Cargo.toml
index 0fd9c94..a521f9f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,4 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
+nightly = []
\ No newline at end of file
diff --git a/src/lib.rs b/src/lib.rs
index 10f6c6d..e0065b1 100644
--- a/src/l... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nPut i/u128 behind feature"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 0fd9c94..a521f9f 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -14,3 +14,4 @@ keywor... | Put i/u128 behind feature | Put i/u128 behind feature |
train-21-diff_to_message | jedisct1/rust | train | 21 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.toml b/Cargo.toml
index 0fd9c94..a521f9f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,4 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
+nightly = []
\ No newline at end of file
diff --git a/src/lib.rs b/src/lib.rs
index 10f6c6d..e0065b1 100644
--- a/src/l... | Put i/u128 behind feature | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.toml b/Cargo.toml
index 0fd9c94..a521f9f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,4 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
+nightly = []
\ No newline at end of file
di... | Put i/u128 behind feature | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.toml b/Cargo.toml\nindex 0fd9c94..a521f9f 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -14,3 +14,4 @@ keywords = [\"atomic\", \"no_std\"]\n default = [\"fallback\"]\n std = []\n f... | Put i/u128 behind feature | Put i/u128 behind feature |
train-21-minimized_message_to_diff | jedisct1/rust | train | 21 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Put i/u128 behind feature | diff --git a/Cargo.toml b/Cargo.toml
index 0fd9c94..a521f9f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,4 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
+nightly = []
\ No newline at end of file
diff --git a/src/lib.rs b/src/lib.rs
index 10f6c6d..e0065b1 100644
--- a/src/l... | Write a Rust code diff that implements the following commit message.
Put i/u128 behind feature | diff --git a/Cargo.toml b/Cargo.toml
index 0fd9c94..a521f9f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,4 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
+nightly = []
\ No newline at end of file
diff --git a/src/lib.rs b/src/lib.rs
index 10f6c6d..e0065b1 100644
--- a/src/l... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nPut i/u128 behind feature"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 0fd9c94..a521f9f 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -14,3 +14,4 @@ keywor... | Put i/u128 behind feature | Put i/u128 behind feature |
train-21-message_to_shuffled_diff | jedisct1/rust | train | 21 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Put i/u128 behind feature | diff --git a/Cargo.toml b/Cargo.toml
index 0fd9c94..a521f9f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,4 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
+nightly = []
\ No newline at end of file
diff --git a/src/lib.rs b/src/lib.rs
index 10f6c6d..e0065b1 100644
--- a/src/l... | Write a Rust code diff that implements the following commit message.
Put i/u128 behind feature | diff --git a/Cargo.toml b/Cargo.toml
index 0fd9c94..a521f9f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,3 +14,4 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
+nightly = []
\ No newline at end of file
diff --git a/src/lib.rs b/src/lib.rs
index 10f6c6d..e0065b1 100644
--- a/src/l... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nPut i/u128 behind feature"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 0fd9c94..a521f9f 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -14,3 +14,4 @@ keywor... | Put i/u128 behind feature | Put i/u128 behind feature |
train-22-message_to_diff | jedisct1/rust | train | 22 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Use target_has_atomic instead of depending on autocfg | diff --git a/Cargo.toml b/Cargo.toml
index d8474c5..0fd9c94 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,6 +14,3 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
-
-[build-dependencies]
-autocfg = "1"
diff --git a/build.rs b/build.rs
deleted file mode 100644
index 4cf4274..0000000
... | Write a Rust code diff that implements the following commit message.
Use target_has_atomic instead of depending on autocfg | diff --git a/Cargo.toml b/Cargo.toml
index d8474c5..0fd9c94 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,6 +14,3 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
-
-[build-dependencies]
-autocfg = "1"
diff --git a/build.rs b/build.rs
deleted file mode 100644
index 4cf4274..0000000
... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nUse target_has_atomic instead of depending on autocfg"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex d8474c5..0fd9c94 100644\n--- a/Cargo.toml\n+++ b/Cargo.to... | Use target_has_atomic instead of depending on autocfg | Use targetatomic instead depending autocfg |
train-22-diff_to_message | jedisct1/rust | train | 22 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.toml b/Cargo.toml
index d8474c5..0fd9c94 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,6 +14,3 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
-
-[build-dependencies]
-autocfg = "1"
diff --git a/build.rs b/build.rs
deleted file mode 100644
index 4cf4274..0000000
... | Use target_has_atomic instead of depending on autocfg | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.toml b/Cargo.toml
index d8474c5..0fd9c94 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,6 +14,3 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
-
-[build-dependencies]
-autocfg = "1"
diff ... | Use target_has_atomic instead of depending on autocfg | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.toml b/Cargo.toml\nindex d8474c5..0fd9c94 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -14,6 +14,3 @@ keywords = [\"atomic\", \"no_std\"]\n default = [\"fallback\"]\n std = []\n f... | Use target_has_atomic instead of depending on autocfg | Use targetatomic instead depending autocfg |
train-22-minimized_message_to_diff | jedisct1/rust | train | 22 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Use targetatomic instead depending autocfg | diff --git a/Cargo.toml b/Cargo.toml
index d8474c5..0fd9c94 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,6 +14,3 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
-
-[build-dependencies]
-autocfg = "1"
diff --git a/build.rs b/build.rs
deleted file mode 100644
index 4cf4274..0000000
... | Write a Rust code diff that implements the following commit message.
Use targetatomic instead depending autocfg | diff --git a/Cargo.toml b/Cargo.toml
index d8474c5..0fd9c94 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,6 +14,3 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
-
-[build-dependencies]
-autocfg = "1"
diff --git a/build.rs b/build.rs
deleted file mode 100644
index 4cf4274..0000000
... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nUse targetatomic instead depending autocfg"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex d8474c5..0fd9c94 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -14,... | Use target_has_atomic instead of depending on autocfg | Use targetatomic instead depending autocfg |
train-22-message_to_shuffled_diff | jedisct1/rust | train | 22 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Use target_has_atomic instead of depending on autocfg | diff --git a/Cargo.toml b/Cargo.toml
index d8474c5..0fd9c94 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,6 +14,3 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
-
-[build-dependencies]
-autocfg = "1"
diff --git a/build.rs b/build.rs
deleted file mode 100644
index 4cf4274..0000000
... | Write a Rust code diff that implements the following commit message.
Use target_has_atomic instead of depending on autocfg | diff --git a/Cargo.toml b/Cargo.toml
index d8474c5..0fd9c94 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,6 +14,3 @@ keywords = ["atomic", "no_std"]
default = ["fallback"]
std = []
fallback = []
-
-[build-dependencies]
-autocfg = "1"
diff --git a/build.rs b/build.rs
deleted file mode 100644
index 4cf4274..0000000
... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nUse target_has_atomic instead of depending on autocfg"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex d8474c5..0fd9c94 100644\n--- a/Cargo.toml\n+++ b/Cargo.to... | Use target_has_atomic instead of depending on autocfg | Use targetatomic instead depending autocfg |
train-23-message_to_diff | jedisct1/rust | train | 23 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Bump version to 0.5.2 | diff --git a/Cargo.toml b/Cargo.toml
index 80b613b..d8474c5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.1"
+version = "0.5.2"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type" | Write a Rust code diff that implements the following commit message.
Bump version to 0.5.2 | diff --git a/Cargo.toml b/Cargo.toml
index 80b613b..d8474c5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.1"
+version = "0.5.2"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type" | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nBump version to 0.5.2"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 80b613b..d8474c5 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\... | Bump version to 0.5.2 | Bump version 0.5.2 |
train-23-diff_to_message | jedisct1/rust | train | 23 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/Cargo.toml b/Cargo.toml
index 80b613b..d8474c5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.1"
+version = "0.5.2"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type" | Bump version to 0.5.2 | Write a concise commit message that explains the following Rust code diff.
diff --git a/Cargo.toml b/Cargo.toml
index 80b613b..d8474c5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.1"
+version = "0.5.2"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmai... | Bump version to 0.5.2 | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/Cargo.toml b/Cargo.toml\nindex 80b613b..d8474c5 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n name = \"atomic\"\n-version = \"0.5.1\"\n+version = \"0.5.2\"\n e... | Bump version to 0.5.2 | Bump version 0.5.2 |
train-23-minimized_message_to_diff | jedisct1/rust | train | 23 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Bump version 0.5.2 | diff --git a/Cargo.toml b/Cargo.toml
index 80b613b..d8474c5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.1"
+version = "0.5.2"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type" | Write a Rust code diff that implements the following commit message.
Bump version 0.5.2 | diff --git a/Cargo.toml b/Cargo.toml
index 80b613b..d8474c5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.1"
+version = "0.5.2"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type" | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nBump version 0.5.2"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 80b613b..d8474c5 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\n n... | Bump version to 0.5.2 | Bump version 0.5.2 |
train-23-message_to_shuffled_diff | jedisct1/rust | train | 23 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Bump version to 0.5.2 | diff --git a/Cargo.toml b/Cargo.toml
index 80b613b..d8474c5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.1"
+version = "0.5.2"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type" | Write a Rust code diff that implements the following commit message.
Bump version to 0.5.2 | diff --git a/Cargo.toml b/Cargo.toml
index 80b613b..d8474c5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "atomic"
-version = "0.5.1"
+version = "0.5.2"
edition = "2018"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "Generic Atomic<T> wrapper type" | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nBump version to 0.5.2"
},
{
"role": "assistant",
"content": "diff --git a/Cargo.toml b/Cargo.toml\nindex 80b613b..d8474c5 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -1,6 +1,6 @@\n [package]\... | Bump version to 0.5.2 | Bump version 0.5.2 |
train-24-message_to_diff | jedisct1/rust | train | 24 | Rust | message_to_diff | Write a Rust code diff that implements the following commit message. | Work around rust-lang/rust#87341
UnsafeCell unfortunately lets the niches of the inner type "leak
through" to the outer type, which can cause unsoundness.
Fixes #29 | diff --git a/src/fallback.rs b/src/fallback.rs
index 8b7e861..2f9f7fd 100644
--- a/src/fallback.rs
+++ b/src/fallback.rs
@@ -6,12 +6,13 @@
// copied, modified, or distributed except according to those terms.
use core::cmp;
+use core::hint;
use core::mem;
use core::num::Wrapping;
use core::ops;
use core::ptr;
u... | Write a Rust code diff that implements the following commit message.
Work around rust-lang/rust#87341
UnsafeCell unfortunately lets the niches of the inner type "leak
through" to the outer type, which can cause unsoundness.
Fixes #29 | diff --git a/src/fallback.rs b/src/fallback.rs
index 8b7e861..2f9f7fd 100644
--- a/src/fallback.rs
+++ b/src/fallback.rs
@@ -6,12 +6,13 @@
// copied, modified, or distributed except according to those terms.
use core::cmp;
+use core::hint;
use core::mem;
use core::num::Wrapping;
use core::ops;
use core::ptr;
u... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nWork around rust-lang/rust#87341\n\nUnsafeCell unfortunately lets the niches of the inner type \"leak\nthrough\" to the outer type, which can cause unsoundness.\n\nFixes #29"
},
{
"role": "assistant... | Work around rust-lang/rust#87341
UnsafeCell unfortunately lets the niches of the inner type "leak
through" to the outer type, which can cause unsoundness.
Fixes #29 | Work around rust-lang/rust#87341 UnsafeCell unfortunately lets niches inner type "leak through" outer type, which can cause unsoundness. Fixes #29 |
train-24-diff_to_message | jedisct1/rust | train | 24 | Rust | diff_to_message | Write a concise commit message that explains the following Rust code diff. | diff --git a/src/fallback.rs b/src/fallback.rs
index 8b7e861..2f9f7fd 100644
--- a/src/fallback.rs
+++ b/src/fallback.rs
@@ -6,12 +6,13 @@
// copied, modified, or distributed except according to those terms.
use core::cmp;
+use core::hint;
use core::mem;
use core::num::Wrapping;
use core::ops;
use core::ptr;
u... | Work around rust-lang/rust#87341
UnsafeCell unfortunately lets the niches of the inner type "leak
through" to the outer type, which can cause unsoundness.
Fixes #29 | Write a concise commit message that explains the following Rust code diff.
diff --git a/src/fallback.rs b/src/fallback.rs
index 8b7e861..2f9f7fd 100644
--- a/src/fallback.rs
+++ b/src/fallback.rs
@@ -6,12 +6,13 @@
// copied, modified, or distributed except according to those terms.
use core::cmp;
+use core::hint;
... | Work around rust-lang/rust#87341
UnsafeCell unfortunately lets the niches of the inner type "leak
through" to the outer type, which can cause unsoundness.
Fixes #29 | [
{
"role": "user",
"content": "Write a concise commit message that explains the following Rust code diff.\n\ndiff --git a/src/fallback.rs b/src/fallback.rs\nindex 8b7e861..2f9f7fd 100644\n--- a/src/fallback.rs\n+++ b/src/fallback.rs\n@@ -6,12 +6,13 @@\n // copied, modified, or distributed except according to... | Work around rust-lang/rust#87341
UnsafeCell unfortunately lets the niches of the inner type "leak
through" to the outer type, which can cause unsoundness.
Fixes #29 | Work around rust-lang/rust#87341 UnsafeCell unfortunately lets niches inner type "leak through" outer type, which can cause unsoundness. Fixes #29 |
train-24-minimized_message_to_diff | jedisct1/rust | train | 24 | Rust | minimized_message_to_diff | Write a Rust code diff that implements the following commit message. | Work around rust-lang/rust#87341 UnsafeCell unfortunately lets niches inner type "leak through" outer type, which can cause unsoundness. Fixes #29 | diff --git a/src/fallback.rs b/src/fallback.rs
index 8b7e861..2f9f7fd 100644
--- a/src/fallback.rs
+++ b/src/fallback.rs
@@ -6,12 +6,13 @@
// copied, modified, or distributed except according to those terms.
use core::cmp;
+use core::hint;
use core::mem;
use core::num::Wrapping;
use core::ops;
use core::ptr;
u... | Write a Rust code diff that implements the following commit message.
Work around rust-lang/rust#87341 UnsafeCell unfortunately lets niches inner type "leak through" outer type, which can cause unsoundness. Fixes #29 | diff --git a/src/fallback.rs b/src/fallback.rs
index 8b7e861..2f9f7fd 100644
--- a/src/fallback.rs
+++ b/src/fallback.rs
@@ -6,12 +6,13 @@
// copied, modified, or distributed except according to those terms.
use core::cmp;
+use core::hint;
use core::mem;
use core::num::Wrapping;
use core::ops;
use core::ptr;
u... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nWork around rust-lang/rust#87341 UnsafeCell unfortunately lets niches inner type \"leak through\" outer type, which can cause unsoundness. Fixes #29"
},
{
"role": "assistant",
"content": "diff -... | Work around rust-lang/rust#87341
UnsafeCell unfortunately lets the niches of the inner type "leak
through" to the outer type, which can cause unsoundness.
Fixes #29 | Work around rust-lang/rust#87341 UnsafeCell unfortunately lets niches inner type "leak through" outer type, which can cause unsoundness. Fixes #29 |
train-24-message_to_shuffled_diff | jedisct1/rust | train | 24 | Rust | message_to_shuffled_diff | Write a Rust code diff that implements the following commit message. | Work around rust-lang/rust#87341
UnsafeCell unfortunately lets the niches of the inner type "leak
through" to the outer type, which can cause unsoundness.
Fixes #29 | diff --git a/src/fallback.rs b/src/fallback.rs
index 8b7e861..2f9f7fd 100644
--- a/src/fallback.rs
+++ b/src/fallback.rs
@@ -6,12 +6,13 @@
// copied, modified, or distributed except according to those terms.
use core::cmp;
+use core::hint;
use core::mem;
use core::num::Wrapping;
use core::ops;
use core::ptr;
u... | Write a Rust code diff that implements the following commit message.
Work around rust-lang/rust#87341
UnsafeCell unfortunately lets the niches of the inner type "leak
through" to the outer type, which can cause unsoundness.
Fixes #29 | diff --git a/src/fallback.rs b/src/fallback.rs
index 8b7e861..2f9f7fd 100644
--- a/src/fallback.rs
+++ b/src/fallback.rs
@@ -6,12 +6,13 @@
// copied, modified, or distributed except according to those terms.
use core::cmp;
+use core::hint;
use core::mem;
use core::num::Wrapping;
use core::ops;
use core::ptr;
u... | [
{
"role": "user",
"content": "Write a Rust code diff that implements the following commit message.\n\nWork around rust-lang/rust#87341\n\nUnsafeCell unfortunately lets the niches of the inner type \"leak\nthrough\" to the outer type, which can cause unsoundness.\n\nFixes #29"
},
{
"role": "assistant... | Work around rust-lang/rust#87341
UnsafeCell unfortunately lets the niches of the inner type "leak
through" to the outer type, which can cause unsoundness.
Fixes #29 | Work around rust-lang/rust#87341 UnsafeCell unfortunately lets niches inner type "leak through" outer type, which can cause unsoundness. Fixes #29 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.