messages listlengths 2 2 | language stringclasses 8
values | prompt_type stringclasses 2
values | lint_errors int64 0 129 ⌀ | cyclomatic_complexity int64 0 32 ⌀ | license stringclasses 7
values | commit stringlengths 40 40 | repos stringlengths 5 116k | new_file stringlengths 4 220 | status stringclasses 6
values | error stringlengths 26 74 ⌀ | is_valid_syntax bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "user",
"content": "Write rust code for the following: Add rust code for bracket-push\n\nIt passed all testcases."
},
{
"role": "assistant",
"content": "#[derive(Debug)]\npub struct Brackets {\n brackets: String,\n}\n\nimpl Brackets {\n pub fn from(text: &str) -> Self {\n ... | rust | new_file | 0 | 7 | bsd-2-clause | 37dc066e66ea0894796ea5da6c256490c2140b4c | gyn/exercism,gyn/exercism,gyn/exercism,gyn/exercism | rust/bracket-push/src/lib.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add a Monte-Carlo integration test"
},
{
"role": "assistant",
"content": "/*\n * Cymbalum, Molecular Simulation in Rust\n * Copyright (C) 2015 Guillaume Fraux\n *\n * This Source Code Form is subject to the terms of the Mozilla Pub... | rust | new_file | 0 | 3 | bsd-2-clause | ff853be3f20d56b7fc2c2a610513f8ed0efdde83 | g-bauer/lumol,Luthaf/cymbalum,g-bauer/lumol,antoinewdg/lumol,antoinewdg/lumol,Luthaf/cymbalum,g-bauer/lumol,antoinewdg/lumol | tests/mc-helium.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: test: Add a trans.rs-workalike test case for regions"
},
{
"role": "assistant",
"content": "import libc, sys, unsafe;\n\nenum arena = ();\n\ntype bcx = {\n fcx: &fcx\n};\n\ntype fcx = {\n arena: &arena,\n ccx: &ccx\n};\n\n... | rust | new_file | null | null | apache-2.0 | aa0f25ae31c4eb385c515269ad73b84b09350473 | ruud-v-a/rust,pczarn/rust,mvdnes/rust,vhbit/rust,mahkoh/rust,jroesch/rust,ktossell/rust,aturon/rust,ebfull/rust,stepancheg/rust-ide-rust,AerialX/rust,michaelballantyne/rust-gpu,miniupnp/rust,pelmers/rust,ebfull/rust,dwillmer/rust,carols10cents/rust,ejjeong/rust,P1start/rust,reem/rust,rohitjoshi/rust,gifnksm/rust,jbclem... | src/test/run-pass/regions-mock-trans.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Add compile-fail test for the `with` attribute"
},
{
"role": "assistant",
"content": "#[macro_use]\nextern crate serde_derive;\n\n#[derive(Serialize)] //~ ERROR: proc-macro derive panicked\nstruct S {\n #[serde(with = \"w\", ser... | rust | new_file | 0 | 1 | apache-2.0 | c590df13b9aeda58ef13339d18d7b3ee2614dc01 | serde-rs/serde | test_suite/tests/compile-fail/duplicate-attribute/with-and-serialize-with.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add a unit test file about write module"
},
{
"role": "assistant",
"content": "extern crate snatch;\n\n#[cfg(test)]\nmod test_http_versions {\n use snatch::write::write_file;\n use snatch::SChunks;\n\n use std::fs::File;\n... | rust | new_file | 0 | 1 | mit | 4238690e2b718237af94a0cdef52633bc297b7e9 | derniercri/snatch | tests/write_test.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Test for `..` in range patterns"
},
{
"role": "assistant",
"content": "// Copyright 2014 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution and at\n// http://rust-lang.org/COPYRI... | rust | new_file | null | null | apache-2.0 | 2c589df6a2f6095eef4fea4ac8f31b2436cf2cb5 | mahkoh/rust,XMPPwocky/rust,omasanori/rust,sae-bom/rust,gifnksm/rust,AerialX/rust-rt-minimal,untitaker/rust,dinfuehr/rust,untitaker/rust,emk/rust,aneeshusa/rust,zubron/rust,ktossell/rust,philyoon/rust,mihneadb/rust,XMPPwocky/rust,gifnksm/rust,dwillmer/rust,l0kod/rust,richo/rust,zachwick/rust,quornian/rust,rohitjoshi/rus... | src/test/compile-fail/pat-range-bad-dots.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```rust\n//xfail-stage0\n\nuse std;\n\nfn main() {\n\n obj a() {\n fn foo() -> int {\n ret 2;\n }\n fn bar() -> int {\n ret self.foo();\n }\n }\n\n auto my_a = a();\n\n // An anonymous obje... | rust | edit | null | null | apache-2.0 | 431cb9a3454fe19fe6987aebb3b3655dc9eca8ad | seanrivera/rust,l0kod/rust,pshc/rust,XMPPwocky/rust,kmcallister/rust,LeoTestard/rust,ejjeong/rust,aepsil0n/rust,ruud-v-a/rust,mdinger/rust,robertg/rust,SiegeLord/rust,stepancheg/rust-ide-rust,GrahamDennis/rand,stepancheg/rust-ide-rust,cllns/rust,gifnksm/rust,carols10cents/rust,P1start/rust,victorvde/rust,reem/rust,gray... | src/test/run-pass/anon-obj-overriding.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Add rust code for etl case\n\nI used two loops to solve this case"
},
{
"role": "assistant",
"content": "use std::collections::BTreeMap;\nuse std::ascii::AsciiExt;\n\npub fn transform(input: &BTreeMap<i32, Vec<char>>) -> BTreeMap<c... | rust | new_file | 2 | 3 | bsd-2-clause | e9f685fb0992355e624cd3f874809b2924ad3393 | gyn/exercism,gyn/exercism,gyn/exercism,gyn/exercism | rust/etl/src/lib.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add another discriminant-size-related test, this time with fields."
},
{
"role": "assistant",
"content": "// Copyright 2013 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution and... | rust | new_file | null | null | apache-2.0 | ac4644d7de7ec1528061dd4bb9639308c6018ee6 | philyoon/rust,michaelballantyne/rust-gpu,stepancheg/rust-ide-rust,victorvde/rust,rprichard/rust,emk/rust,SiegeLord/rust,kwantam/rust,pythonesque/rust,mitsuhiko/rust,richo/rust,pythonesque/rust,dwillmer/rust,untitaker/rust,aepsil0n/rust,reem/rust,erickt/rust,jashank/rust,aidancully/rust,l0kod/rust,omasanori/rust,barosl/... | src/test/run-pass/small-enums-with-fields.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Test case for checks on pattern-bound vars"
},
{
"role": "assistant",
"content": "use std;\nimport std::option::*;\n\npure fn p(x:int) -> bool { true }\n\nfn f(x:int) : p(x) { }\n\nfn main() {\n alt some(5) {\n some(y) {\n ... | rust | new_file | null | null | apache-2.0 | 844e2d7d1cff43bd4f7ace853af8d09ff15e5ab5 | avdi/rust,ebfull/rust,ktossell/rust,omasanori/rust,andars/rust,jbclements/rust,barosl/rust,untitaker/rust,mitsuhiko/rust,zaeleus/rust,jashank/rust,j16r/rust,ejjeong/rust,0x73/rust,0x73/rust,mvdnes/rust,XMPPwocky/rust,ejjeong/rust,mdinger/rust,ruud-v-a/rust,jroesch/rust,servo/rust,servo/rust,fabricedesre/rust,pelmers/ru... | src/test/run-pass/check-pattern-bound.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: save-analysis: Add a relevant test case"
},
{
"role": "assistant",
"content": "// check-pass\n// compile-flags: -Zsave-analysis\n\ntrait Trait { type Assoc; }\ntrait GenericTrait<T> {}\nstruct Wrapper<B> { b: B }\n\nfn func() {\n ... | rust | new_file | 6 | 2 | apache-2.0 | ad6ce4698641f57133ea75c379a928c6017b08cf | graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust | src/test/ui/save-analysis/issue-65411.rs | rejected_lint | Too many lint violations: 6 | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add regression test for UFCS formatting error"
},
{
"role": "assistant",
"content": "// Regression test for issue 64\n\npub fn header_name<T: Header>() -> &'static str {\n let name = <T as Header>::header_name();\n let func =... | rust | new_file | 0 | 1 | apache-2.0 | 25301230f2534eab15b46a8cb3951a924e69e830 | graydon/rust,Emilgardis/rustfmt,rust-lang/rustfmt,graydon/rust,aidancully/rust,studoot/rustfmt,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,flutterhash/rustfmt,rust-lang/rustfmt,graydon/rust,aidancully/rust,SingingTree/rustfmt,aidancully/rust,studoot/rustfmt,graydon/rust,Emilgardis/rustfmt,SingingTree/r... | tests/target/issue-64.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add tests for methods listing in rust docs"
},
{
"role": "assistant",
"content": "// Copyright 2017 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution and at\n// http://rust-lang... | rust | new_file | 0 | 2 | apache-2.0 | 765153e6a4a2f3b4e0748ae844485a6037de12e4 | GBGamer/rust,GBGamer/rust,graydon/rust,aidancully/rust,GBGamer/rust,graydon/rust,graydon/rust,GBGamer/rust,GBGamer/rust,graydon/rust,GBGamer/rust,graydon/rust,GBGamer/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,GBGamer/rust | src/test/rustdoc/method-list.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add a model for how conditional trait impls might be used to implement the Fn-FnMut-FnOnce hierarchy."
},
{
"role": "assistant",
"content": "// Copyright 2014 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level... | rust | new_file | 0 | 1 | apache-2.0 | 6340c1a3739de1519f7416ac52263b4234965739 | TheNeikos/rust,aneeshusa/rust,KokaKiwi/rust,robertg/rust,krzysz00/rust,cllns/rust,sae-bom/rust,barosl/rust,seanrivera/rust,graydon/rust,GBGamer/rust,dwillmer/rust,kwantam/rust,AerialX/rust-rt-minimal,GBGamer/rust,carols10cents/rust,emk/rust,untitaker/rust,dinfuehr/rust,0x73/rust,XMPPwocky/rust,mahkoh/rust,reem/rust,XMP... | src/test/run-pass/traits-conditional-model-fn.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add test for tuple struct documentation fields"
},
{
"role": "assistant",
"content": "#![crate_name = \"foo\"]\n\n// @has foo/struct.Foo.html\n// @has - '//h2[@id=\"fields\"]' 'Tuple Fields'\n// @has - '//h3[@class=\"sidebar-title\... | rust | new_file | 0 | 0 | apache-2.0 | 19f30b72b30c7745d3ed126ebeaf3fe3d253677f | aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust | src/test/rustdoc/tuple-struct-fields-doc.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add a test that assignment of unique boxes to locals does a copy\n\nIssue #409"
},
{
"role": "assistant",
"content": "fn main() {\n let i = ~mutable 1;\n // Should be a copy\n let j;\n j = i;\n *i = 2;\n *j = 3;\n... | rust | new_file | null | null | apache-2.0 | 7c4fe10f02af2ded85d539f35869e6b1c1fe16cd | j16r/rust,mihneadb/rust,shepmaster/rand,stepancheg/rust-ide-rust,TheNeikos/rust,jbclements/rust,GBGamer/rust,0x73/rust,barosl/rust,rohitjoshi/rust,fabricedesre/rust,arthurprs/rand,erickt/rust,robertg/rust,emk/rust,fabricedesre/rust,omasanori/rust,huonw/rand,KokaKiwi/rust,jbclements/rust,nham/rust,nham/rust,AerialX/rust... | src/test/run-pass/unique-assign-copy.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Add example for buffered access when reading from a file"
},
{
"role": "assistant",
"content": "// This example demonstrates how a reader (for example when reading from a file)\n// can be buffered. In that case, data read from the ... | rust | new_file | 0 | 4 | mit | a2298b317dce48bb3bc133c12623c45e92c7e3a1 | tafia/quick-xml,tafia/quick-xml | examples/read_buffered.rs | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```rust\n// FIXME: Importing std::task doesn't work under check-fast?!\nuse std;\nimport std::task;\nimport std::comm;\nimport std::uint;\n\nfn die() {\n fail;\n}\n\nfn iloop() {\n task::unsupervise();\n let f = die;\n task::spawn(f);\n}\n... | rust | edit | null | null | apache-2.0 | 9029416e287e663bd6a1f48727509872669853c0 | kimroen/rust,philyoon/rust,emk/rust,fabricedesre/rust,reem/rust,seanrivera/rust,jroesch/rust,seanrivera/rust,carols10cents/rust,jroesch/rust,zubron/rust,Ryman/rust,zachwick/rust,zaeleus/rust,KokaKiwi/rust,vhbit/rust,graydon/rust,SiegeLord/rust,kimroen/rust,mihneadb/rust,zaeleus/rust,ebfull/rust,pelmers/rust,barosl/rust... | src/test/run-pass/lots-a-fail.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Add rust code for queen-attack case\n\nIt seems the testcases don't care if two queues are in same position"
},
{
"role": "assistant",
"content": "#[derive(Debug)]\npub struct ChessPosition {\n x: i32,\n y: i32,\n}\n\n\nimpl ... | rust | new_file | 0 | 5 | bsd-2-clause | 7e0971858e8e67cfc982d3baef7905afb3075410 | gyn/exercism,gyn/exercism,gyn/exercism,gyn/exercism | rust/queen-attack/src/lib.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Write output to an image file PPM is a terrible format, but it's super easy to get started writing"
},
{
"role": "assistant",
"content": "use std::io::{Write, BufWriter};\nuse std::fs::File;\n\nfn main() {\n let nx = 300;\n let n... | rust | new_file | 0 | 3 | mit | cfd1c3e1937af53da0a7da6b88897be091982854 | corragon/rust-raytracer | src/main.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add mainloop example like a R client."
},
{
"role": "assistant",
"content": "extern crate libr;\nuse std::env;\nuse std::ffi::CString;\nuse libr::ffi::embedded::Rf_initialize_R;\nuse libr::ffi::interface::*;\n\nfn main() {\n if ... | rust | new_file | 0 | 2 | mit | 709a9981b369f78d18c1031ea660640646057185 | zitsen/libr.rs,zitsen/libr.rs | examples/00-mainloop.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add test for -Z panic-in-drop=abort"
},
{
"role": "assistant",
"content": "// compile-flags: -Z panic-in-drop=abort -O\n\n// Ensure that unwinding code paths are eliminated from the output after\n// optimization.\n\n#![crate_type =... | rust | new_file | 0 | 1 | apache-2.0 | 5862a0004a65e32ea3a36d33c52e305cd75a69fe | aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust | src/test/codegen/panic-in-drop-abort.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add solution to problem 31"
},
{
"role": "assistant",
"content": "#[macro_use] extern crate libeuler;\n\nuse std::collections::HashMap;\n\n/// In England the currency is made up of pound, £, and pence, p, and there are eight coins ... | rust | new_file | 0 | 6 | mit | e764d86851e69fd1f151573912984831ed609d37 | zmbush/euler,zmbush/euler | sol_0031/main.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Test HRTB issue accepted by compiler"
},
{
"role": "assistant",
"content": "// Tests that HRTBs are correctly accepted -- https://github.com/rust-lang/rust/issues/50301\n// check-pass\ntrait Trait\nwhere\n for<'a> &'a Self::Into... | rust | new_file | 4 | 2 | apache-2.0 | e5017dec58b73182b21d3dc0b6c93590716d8cc4 | aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust | src/test/ui/issues/issue-50301.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add rust code for robot-simulator case\n\nI think it is not efficent since copy is doing everywhere"
},
{
"role": "assistant",
"content": "// The code below is a stub. Just enough to satisfy the compiler.\n// In order to pass the t... | rust | new_file | 0 | 3 | bsd-2-clause | c5bf6039d0942db9c8a23176293dea772ca4a896 | gyn/exercism,gyn/exercism,gyn/exercism,gyn/exercism | rust/robot-simulator/src/lib.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add another example for verifying message deserialization"
},
{
"role": "assistant",
"content": "extern crate slack_api as slack;\nextern crate reqwest;\n\nuse std::env;\n\nfn main() {\n let token = env::var(\"SLACK_API_TOKEN\")... | rust | new_file | 0 | 4 | apache-2.0 | bec898e2156c954e78a6572ea00cbcec274db270 | slack-rs/slack-rs-api | examples/channel_history.rs | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```rust\n// Copyright 2017 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution and at\n// http://rust-lang.org/COPYRIGHT.\n//\n// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or\n//... | rust | edit | null | null | apache-2.0 | f5505d185ccb9b1d84e6d7cdab20f901a778a86c | graydon/rust,aidancully/rust,GBGamer/rust,aidancully/rust,graydon/rust,graydon/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,graydon/rust,GBGamer/rust,aidancully/rust,graydon/rust,graydon/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,aidancully/rust | src/test/compile-fail/underscore-lifetime-binders.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Add test for WindowProxy to implement Send"
},
{
"role": "assistant",
"content": "extern crate glutin;\n\n#[cfg(feature = \"window\")]\n#[test]\nfn window_proxy_send() {\n // ensures that `glutin::WindowProxy` implements `Send`\... | rust | new_file | 0 | 1 | apache-2.0 | 297a8cbb1d0849fc3ce518c96e07b6d7a1e2f623 | fkaa/glutin,tomaka/glutin,nox/glutin,tomaka/winit,pcwalton/glutin,aepsil0n/glutin,TimNN/glutin,glennw/glutin,retep998/glutin,ozkriff/glutin,bvssvni/glutin,adambadawy/glutin,tempbottle/glutin,mvdnes/glutin,Jayflux/glutin,servo/glutin,christopheraugustus/glutin,mbrubeck/glutin,ecoal95/glutin,vberger/glutin,Ms2ger/glutin,... | tests/window_proxy_send.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add demo to round-trip VCD from stdin to stdout"
},
{
"role": "assistant",
"content": "extern crate vcd;\nuse std::io;\n\n/// A simple demo that uses the reader and writer to round-trip a VCD file from stdin to stdout\npub fn main(... | rust | new_file | 0 | 2 | mit | afe7a7c4690bac9a76ee4a585ce64fcac5240a93 | kevinmehall/rust-vcd | src/bin/vcd-reformat.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: incr.comp.: Add regression test for detecting feature gate changes."
},
{
"role": "assistant",
"content": "// Copyright 2018 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution an... | rust | new_file | 1 | 1 | apache-2.0 | 9f8b9a0d3e1d7567e74df612a53e989610ba1b24 | aidancully/rust,GBGamer/rust,aidancully/rust,aidancully/rust,GBGamer/rust,GBGamer/rust,graydon/rust,GBGamer/rust,graydon/rust,graydon/rust,graydon/rust,graydon/rust,GBGamer/rust,aidancully/rust,aidancully/rust,aidancully/rust,GBGamer/rust,GBGamer/rust,graydon/rust,GBGamer/rust | src/test/incremental/feature_gate.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add rust code for largest-series-product\n\nIt passed all testcases"
},
{
"role": "assistant",
"content": "#![feature(ascii_ctype)]\nuse std::ascii::AsciiExt;\n\npub fn lsp(numbers: &str, length: usize) -> Result<usize, String> {\n... | rust | new_file | 2 | 7 | bsd-2-clause | dcd05714cbcfbd4920e62f796921912958508f9b | gyn/exercism,gyn/exercism,gyn/exercism,gyn/exercism | rust/largest-series-product/src/lib.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add test for 2021 prelude."
},
{
"role": "assistant",
"content": "// check-pass\n// edition:2021\n// compile-flags: -Zunstable-options\n\nfn main() {\n let _: u16 = 123i32.try_into().unwrap();\n}\n"
}
] | rust | new_file | 0 | 1 | apache-2.0 | 4f93b06089c3070493bfbfe227358431a3ba28c9 | graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust | src/test/ui/prelude2021.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add test for no_core statics"
},
{
"role": "assistant",
"content": "// compile-pass\n\n#![feature(no_core, lang_items)]\n#![no_core]\n#![crate_type = \"lib\"]\n\n#[lang = \"sized\"]\ntrait Sized {}\n\nextern {\n pub static A: u3... | rust | new_file | 2 | 0 | apache-2.0 | fbbc73969b60d1ce58fe028daa8924ab56465928 | graydon/rust,graydon/rust,GBGamer/rust,graydon/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,GBGamer/rust,graydon/rust,GBGamer/rust,aidancully/rust,graydon/rust,GBGamer/rust,aidancully/rust,aidancully/rust,GBGamer/rust,aidancully/rust,graydon/rust,GBGamer/rust,aidancully/rust | src/test/ui/static_sized_requirement.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add a passing test for const unsafe_unreachable"
},
{
"role": "assistant",
"content": "// run-pass\n\n#![feature(const_fn)]\n#![feature(const_unreachable_unchecked)]\n\nconst unsafe fn foo(x: bool) -> bool {\n match x {\n ... | rust | new_file | 1 | 2 | apache-2.0 | 2f28d5945dab495a77c67c6051eea116ce9ceee2 | aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust | src/test/ui/consts/const_unsafe_unreachable.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add regression tests for error message when using enum variant as a type\n\nI'm guessing these were actually fixed with PR #27085.\n\nCloses #21225\nCloses #19197"
},
{
"role": "assistant",
"content": "// Copyright 2016 The Rust Pr... | rust | new_file | 0 | 1 | apache-2.0 | e2bf1f85330b80e837d35cf3ef3f93cd2c22407d | aidancully/rust,aidancully/rust,graydon/rust,GBGamer/rust,aidancully/rust,graydon/rust,aidancully/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,graydon/rust,GBGamer/rust,GBGamer/rust,graydon/rust,GBGamer/rust,graydon/rust,graydon/rust,GBGamer/rust,GBGamer/rust,aidancully/rust | src/test/compile-fail/variant-used-as-type.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add example that show the posiotion of the bits in a slice bitfield"
},
{
"role": "assistant",
"content": "#[macro_use]\nextern crate simple_bitfield;\n\nuse simple_bitfield::Bit;\nuse simple_bitfield::BitRange;\n\nsimple_bitfield!... | rust | new_file | 0 | 7 | apache-2.0 | d134b2ff84dc0f8cf25c88aab91482f21a5658da | dzamlo/rust-bitfield | examples/bits_position.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add test that runs every nannou example listed in the Cargo.toml\n\nThis adds an example that runs each nannou example listed in the\nCargo.toml for a few seconds each, one at a time.\n\nThis is useful for finding `panic!`s that only occur at ... | rust | new_file | 0 | 3 | mit | c9aa4eb92f10342c62714e6049f57ab69d1a3464 | MindBuffer/nannou | tests/run_all_examples.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add test for LookupHost iterator Send/Sync traits"
},
{
"role": "assistant",
"content": "// Copyright 2015 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution and at\n// http://ru... | rust | new_file | 0 | 2 | apache-2.0 | 528d99c014f551f44892e65058798c8c2f59ac74 | GBGamer/rust,GBGamer/rust,graydon/rust,GBGamer/rust,GBGamer/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,GBGamer/rust,graydon/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,graydon/rust,graydon/rust,aidancully/rust,GBGamer/rust | src/test/run-pass/sync-send-in-std.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: [ExecContainer] Add example for exec command"
},
{
"role": "assistant",
"content": "extern crate shiplift;\n\nuse shiplift::{Docker, ExecContainerOptions};\nuse std::env;\n\nfn main() {\n let docker = Docker::new();\n let opt... | rust | new_file | 0 | 2 | mit | 0b38072da28199057f58f1c4dd1c05fb447801c2 | softprops/shiplift | examples/containerexec.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add a test for 128-bit return values"
},
{
"role": "assistant",
"content": "//! This test checks that types of up to 128 bits are returned by-value instead of via out-pointer.\n\n// compile-flags: -C no-prepopulate-passes -O\n// on... | rust | new_file | 2 | 1 | apache-2.0 | cc2ba3bd2753ec94adc93ec4aa9d8d093129cd2d | graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust | src/test/codegen/return-value-in-reg.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Set up tests for the virtual computer."
},
{
"role": "assistant",
"content": "use std::vec::Vec;\n\npub struct Machine {\n memory: Vec<u32>\n}\n\nimpl Machine {\n pub fn new() -> Machine {\n Machine {\n memo... | rust | new_file | 0 | 1 | mit | 6c00ee500212682ffe23c9f85d62c1684735fb60 | onefrankguy/chifir | src/machine.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add a test for raw identifiers"
},
{
"role": "assistant",
"content": "#![feature(custom_attribute)]\n#![feature(raw_identifiers)]\n#![feature(extern_types)]\n#![allow(invalid_type_param_default)]\n#![allow(unused_attributes)]\n\nus... | rust | new_file | 5 | 3 | apache-2.0 | 3871988dfaa9d0f4629038d656ce9ba32ebc6e12 | aidancully/rust,graydon/rust,graydon/rust,rust-lang/rustfmt,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,SingingTree/rustfmt,aidancully/rust,graydon/rust,graydon/rust,rust-lang/rustfmt,aidancully/rust,SingingTree/rustfmt,aidancully/rust | tests/target/raw_identifiers.rs | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add check for object safety"
},
{
"role": "assistant",
"content": "fn assert_is_object_safe<T>() {}\n\n#[test]\nfn future() {\n // `FutureExt`, `TryFutureExt` and `UnsafeFutureObj` are not object safe.\n use futures::future::... | rust | new_file | 0 | 1 | apache-2.0 | 55e48276cbf81ac2242da0d6b59ba6a19980d022 | alexcrichton/futures-rs | futures/tests/object_safety.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add another file to the examples directory"
},
{
"role": "assistant",
"content": "\nextern crate itertools;\n\nuse itertools::Itertools;\n\nfn main() {\n let data = \"abc12345abc\".chars();\n\n // This example does something ... | rust | new_file | 0 | 4 | apache-2.0 | a6f9389db38e5ae7749b4e09effbb0f36607c820 | imp/rust-itertools,flo-l/rust-itertools,tempbottle/rust-itertools,rust-itertools/itertools,stepancheg/rust-itertools | examples/group.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: test: Add a max/min classes test case"
},
{
"role": "assistant",
"content": "trait Product {\n fn product() -> int;\n}\n\nstruct Foo {\n x: int;\n y: int;\n}\n\nimpl Foo {\n fn sum() -> int {\n self.x + self.y\n ... | rust | new_file | null | null | apache-2.0 | 22ef08293e69a5bec54874c30ec7652e7d917da0 | nwin/rust,jroesch/rust,mdinger/rust,barosl/rust,zubron/rust,robertg/rust,vhbit/rust,AerialX/rust-rt-minimal,ktossell/rust,servo/rust,ktossell/rust,l0kod/rust,erickt/rust,XMPPwocky/rust,dwillmer/rust,sae-bom/rust,AerialX/rust,sae-bom/rust,rprichard/rust,Ryman/rust,mahkoh/rust,aneeshusa/rust,pshc/rust,jbclements/rust,aep... | src/test/run-pass/max-min-classes.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Add UDP echo server example."
},
{
"role": "assistant",
"content": "//! An UDP echo server that just sends back everything that it receives.\n\nextern crate futures;\n#[macro_use]\nextern crate tokio_core;\n\nuse std::{env, io};\nu... | rust | new_file | 0 | 3 | mit | 237bcead7a923e048e4cc27e04d68dc60af69fb0 | tokio-rs/tokio,tokio-rs/tokio | examples/echo-udp.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add test case for type aliasing `impl Sized`"
},
{
"role": "assistant",
"content": "// check-pass\n\n#![feature(type_alias_impl_trait)]\n\ntype A = impl Sized;\nfn f1() -> A { 0 }\n\ntype B = impl ?Sized;\nfn f2() -> &'static B { &... | rust | new_file | 0 | 1 | apache-2.0 | 38bfba659e2ae9423c9d782806db11e23187f3f6 | aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust | src/test/ui/type-alias-impl-trait/type-alias-impl-trait-sized.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add 6510 CPU based on the 6502 CPU"
},
{
"role": "assistant",
"content": "use mem::Addressable;\nuse super::cpu::CPU;\nuse super::mos6502::Mos6502;\n\n/// The MOS65010 processor\npub struct Mos6510 {\n\tpriv cpu: Mos6502,\t\t\t\t\t... | rust | new_file | null | null | mit | 344796c128aaaf36d321062f34729f93e7749de5 | zargony/rusty64,zargony/rusty64 | src/cpu/mos6510.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```rust\nuse conn::Conn;\nuse conn::futures::query_result::BinQueryResult;\nuse conn::futures::Prepare;\nuse conn::stmt::futures::Execute;\nuse conn::stmt::Stmt;\nuse errors::*;\nuse lib_futures::Async;\nuse lib_futures::Async::Ready;\nuse lib_futures... | rust | edit | 0 | 2 | apache-2.0 | 129fa2e0c5a8d0d5117b64741034afd8a42c163a | blackbeam/mysql_async | src/conn/futures/prep_exec.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add Annotation types for VM"
},
{
"role": "assistant",
"content": "use crate::ty::BuiltinType;\nuse crate::utils::GrowableVec;\nuse crate::vm::{FileId, TypeParam};\nuse dora_parser::ast::{AnnotationParam, Modifier};\nuse dora_parse... | rust | new_file | 0 | 1 | mit | 292712adb2c2a3e534fd4996f25ef42e62f7a7c3 | dinfuehr/dora,dinfuehr/dora,dinfuehr/dora,dinfuehr/dora,dinfuehr/dora,dinfuehr/dora | dora/src/vm/annotation.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add mut self parsing test"
},
{
"role": "assistant",
"content": "use syn::Type;\n\n#[test]\nfn test_mut_self() {\n syn::parse_str::<Type>(\"fn(mut self)\").unwrap();\n syn::parse_str::<Type>(\"fn(mut self: ())\").unwrap();\n ... | rust | new_file | 0 | 1 | apache-2.0 | 26d7bdb88dabc3f39684dabd074d2fcb89bffe0f | dtolnay/syn | tests/test_ty.rs | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```rust\n// Copyright 2015 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution and at\n// http://rust-lang.org/COPYRIGHT.\n//\n// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or\n//... | rust | edit | null | null | apache-2.0 | 7976e3654400a53fc9ef98cda19769fabd57b846 | graydon/rust,GBGamer/rust,graydon/rust,graydon/rust,aidancully/rust,GBGamer/rust,GBGamer/rust,graydon/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,aidancully/rust,aidancully/rust,graydon/rust,GBGamer/rust,aidancully/rust,aidancully/rust,GBGamer/rust,graydon/rust | src/test/compile-fail/coherence-default-trait-impl.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Add regression test for single field by val tuples"
},
{
"role": "assistant",
"content": "// Copyright 2015 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution and at\n// http://r... | rust | new_file | 0 | 2 | apache-2.0 | 0927829e14686684f96799dd5944190b817145a5 | GBGamer/rust,GBGamer/rust,graydon/rust,aidancully/rust,graydon/rust,rust-lang/miri,aidancully/rust,graydon/rust,GBGamer/rust,graydon/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,tsion/miri,graydon/rust,rust-lang/miri,rust-lang/miri,GBGamer/rust,aidancully/rust,aidancully/rust,GBGamer/rust... | tests/run-pass/issue-20575.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add a test for out-of-line module passed through a proc macro"
},
{
"role": "assistant",
"content": "// Out-of-line module is found on the filesystem if passed through a proc macro (issue #58818).\n\n// check-pass\n// aux-build:tes... | rust | new_file | 0 | 1 | apache-2.0 | e391d776e3869f56ca1467a4c7e3469080c5378d | graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust | src/test/ui/proc-macro/out-of-line-mod.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add rust code for pythagorean-triplet case\n\nIt passed all testcases"
},
{
"role": "assistant",
"content": "pub fn find() -> Option<u32> {\n const LOWER: u32 = 1000/3;\n const UPPER: u32 = 1000/2;\n\n for c in LOWER..UPPE... | rust | new_file | 0 | 6 | bsd-2-clause | 384ee494255115c6c2aea24b265ef09830763b0b | gyn/exercism,gyn/exercism,gyn/exercism,gyn/exercism | rust/pythagorean-triplet/src/lib.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add utils from my 30 days of code project"
},
{
"role": "assistant",
"content": "use std::io::BufRead;\nuse std::iter::FromIterator;\n\npub fn get_line<T>(mut input: T)\n -> String\n where T: BufRead\n{\n let mut buffer = ... | rust | new_file | 0 | 2 | mit | 2139ad4402da611354b9bd8e3e0959ccdae8e607 | PeterJCLaw/advent-of-code-2016,PeterJCLaw/advent-of-code-2016 | advent_of_code.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add rust code for high-scores\n\nIt passed all tests"
},
{
"role": "assistant",
"content": "const MAX_TOP_SCORE_ITEMS: usize = 3;\n\n#[derive(Debug)]\npub struct HighScores<'a> {\n record: &'a [u32],\n}\n\nimpl<'a> HighScores<'a... | rust | new_file | 0 | 1 | bsd-2-clause | 0f8a00b397291ca6c99a5bcd393bff3a795ad766 | gyn/exercism,gyn/exercism,gyn/exercism,gyn/exercism | rust/high-scores/src/lib.rs | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```rust\n#[legacy_modes];\n#[legacy_exports];\n\n#[allow(ctypes)];\n#[allow(heap_memory)];\n#[allow(implicit_copies)];\n#[allow(managed_heap_memory)];\n#[allow(non_camel_case_types)];\n#[allow(non_implicitly_copyable_typarams)];\n#[allow(owned_heap_me... | rust | edit | null | null | apache-2.0 | 1d55a5778bc5f0ab1cac0e9f12dcc2f04ddda719 | AerialX/rust,0x73/rust,vhbit/rust,untitaker/rust,SiegeLord/rust,l0kod/rust,pelmers/rust,pythonesque/rust,mdinger/rust,aepsil0n/rust,mdinger/rust,zaeleus/rust,avdi/rust,aidancully/rust,mvdnes/rust,SiegeLord/rust,jbclements/rust,mihneadb/rust,LeoTestard/rust,defuz/rust,rprichard/rust,gifnksm/rust,jroesch/rust,dwillmer/ru... | src/rusti/wrapper.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Add example for evaluating string frequency and using children iterator"
},
{
"role": "assistant",
"content": "extern crate radix_trie;\n\nuse radix_trie::{Trie, TrieCommon};\n\nfn main() {\n let example = \"bananaphone\".to_str... | rust | new_file | 0 | 5 | mit | 069581246ab92d853f780bdb7d610cdc12d32b03 | roblabla/rust_radix_trie,michaelsproul/rust_radix_trie | examples/string_frequency.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add benchmark tests for ECS executions."
},
{
"role": "assistant",
"content": "#![feature(test)]\nextern crate test;\nextern crate crayon;\nextern crate rayon;\n\nuse test::Bencher;\nuse crayon::prelude::*;\n\nuse std::thread;\nuse... | rust | new_file | 0 | 2 | apache-2.0 | 53ac27f01fa87ebe7a10aad6cb23ff7a748785e8 | shawnscode/crayon,shawnscode/crayon,shawnscode/crayon,kaisc/crayon,shawnscode/crayon,shawnscode/crayon | benches/ecs.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add test for unnecessary panic branches"
},
{
"role": "assistant",
"content": "//! Tests that generators that cannot return or unwind don't have unnecessary\n//! panic branches.\n\n// compile-flags: -Zno-landing-pads\n\n#![feature(... | rust | new_file | 0 | 1 | apache-2.0 | 2cbccced0856260c6acafabecb3030465dff28c2 | aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust | src/test/mir-opt/generator-tiny.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add benchmark for feature map construction."
},
{
"role": "assistant",
"content": "#![feature(test)]\n\nextern crate conllx;\n\nextern crate test;\n\nuse test::{Bencher, black_box};\n\nuse conllx::Features;\n\nstatic FEATURES: &'st... | rust | new_file | 0 | 3 | apache-2.0 | 34dd19a6a7c48b44c2b73390c0174c7484d2588d | danieldk/conllx-rs,danieldk/conllx-rs | benches/features.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add regression tests for previously ambiguous syntactic forms"
},
{
"role": "assistant",
"content": "// A bunch of tests for syntactic forms involving blocks that were\n// previously ambiguous (e.g. 'if true { } *val;' gets parsed ... | rust | new_file | null | null | apache-2.0 | 906f1fc425a827d7bbbb87a6e86ce0aa7faf0bb8 | ktossell/rust,ktossell/rust,defuz/rust,mitsuhiko/rust,servo/rust,kmcallister/rust,jroesch/rust,rohitjoshi/rust,jroesch/rust,aepsil0n/rust,kimroen/rust,pczarn/rust,l0kod/rust,cllns/rust,jroesch/rust,l0kod/rust,sarojaba/rust-doc-korean,pythonesque/rust,defuz/rust,michaelballantyne/rust-gpu,ktossell/rust,jroesch/rust,vict... | src/test/pretty/block-disambig.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: save-analysis: Add a related test case"
},
{
"role": "assistant",
"content": "// check-pass\n// compile-flags: -Zsave-analysis\n\n// Check that this doesn't ICE when processing associated const in formal\n// argument and return typ... | rust | new_file | 2 | 1 | apache-2.0 | 6117faa809334136f81c90b6645ae760d50b48cd | graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust | src/test/ui/save-analysis/issue-63663.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add a regression test for unevaluated const in rustdoc"
},
{
"role": "assistant",
"content": "// ignore-tidy-linelength\n\n#![feature(const_generics)]\n\n#![crate_name = \"foo\"]\n\nuse std::ops::Add;\n\n// @has foo/struct.Simd.htm... | rust | new_file | 1 | 1 | apache-2.0 | 9c9b7b4eaceefe88bafc3b4e3529635973320253 | graydon/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust | src/test/rustdoc/const-generics/add-impl.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add a dead code test for using anon const in pattern"
},
{
"role": "assistant",
"content": "// check-pass\n#![feature(inline_const)]\n#![allow(incomplete_features)]\n#![deny(dead_code)]\n\nconst fn one() -> i32 {\n 1\n}\n\nconst... | rust | new_file | null | null | apache-2.0 | e62ecdc5a7cbd44a9ade5061ddad4d8a4e1d6599 | graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust | src/test/ui/lint/dead-code/anon-const-in-pat.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Add unit test for VecRef."
},
{
"role": "assistant",
"content": "extern crate cell_gc;\n#[macro_use]\nextern crate cell_gc_derive;\n\nuse cell_gc::GcHeap;\nuse cell_gc::collections::VecRef;\n\n#[test]\nfn test_vec_ref() {\n #[de... | rust | new_file | 0 | 1 | mit | 35d1d86f1ac12295108f03a7311f5f4c7ca3b462 | jorendorff/cell-gc,jorendorff/cell-gc | tests/vec_ref.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add test for unnecessary mut passed lint"
},
{
"role": "assistant",
"content": "#![feature(plugin)]\n#![plugin(clippy)]\n\nfn takes_an_immutable_reference(a: &i32) {\n}\n\nfn takes_a_mutable_reference(a: &mut i32) {\n}\n\nstruct My... | rust | new_file | 6 | 1 | apache-2.0 | 52aee99f6dcb2d7bb217c066d9b79d5fd61d1b45 | aidancully/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust | tests/compile-fail/mut_reference.rs | rejected_lint | Too many lint violations: 6 | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add Rust implementation of 99 Bottles"
},
{
"role": "assistant",
"content": "// Sings '99 Bottles of Beer'\nfn main()\n{\n for bottle in (0..100).rev()\n {\n if bottle > 1\n {\n println!(\"{} bottles ... | rust | new_file | 4 | 4 | cc0-1.0 | 16fd8a7b71335c17680a9d543f3f402e054ddfcb | ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovs... | puzzles/99_Bottles/Rust/99_Bottles.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add run-pass test for assignment to static mut"
},
{
"role": "assistant",
"content": "// Copyright 2016 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution and at\n// http://rust-... | rust | new_file | 3 | 1 | apache-2.0 | f8ba371b1ef4337b2181a8f6cc45a66303eb48e3 | GBGamer/rust,graydon/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,graydon/rust,GBGamer/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,GBGamer/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,aidancully/rust | src/test/run-pass/borrowck/borrowck-assignment-to-static-mut.rs | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```rust\n\n/// Get the port from a string (ip)\npub fn parse_port(string: &str) -> &str {\n let a = match string.find(':') {\n Some(pos) => pos + 1,\n None => 0,\n };\n\n let mut b = 0;\n for c in string.chars().skip(a) {\n ... | rust | edit | 0 | 0 | mit | 57685c7bdd0e1b5aed898e2e1fd509fb8d359f3e | rexlunae/redox,rexlunae/redox,Lacaranian/redox,Lacaranian/redox,Lacaranian/redox,Lacaranian/redox,Lacaranian/redox,rexlunae/redox | kernel/common/parse_ip.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add test of anyhow::Error in ffi signature\n\nCurrently:\n\n warning: `extern` fn uses type `anyhow::Error`, which is not FFI-safe\n --> tests/test_ffi.rs:6:32\n |\n 6 | pub extern \"C\" fn anyhow1(err: anyhow::Error) {\n |... | rust | new_file | 0 | 1 | apache-2.0 | 0a218a84a813375cfb38e0ee5c5f8445afb2765c | dtolnay/anyhow | tests/test_ffi.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add xfail'd test for default methods."
},
{
"role": "assistant",
"content": "//xfail-test\n\ntrait Cat {\n fn meow() -> bool;\n fn scratch() -> bool;\n fn purr() -> bool { true }\n}\n\nimpl int : Cat {\n fn meow() -> bo... | rust | new_file | null | null | apache-2.0 | 1f52ddfe9ebd64891f14ec17efa8e2a014f8a439 | vhbit/rust,quornian/rust,l0kod/rust,nham/rust,miniupnp/rust,aepsil0n/rust,carols10cents/rust,jbclements/rust,jroesch/rust,aneeshusa/rust,reem/rust,miniupnp/rust,emk/rust,kwantam/rust,reem/rust,sae-bom/rust,barosl/rust,zubron/rust,aidancully/rust,GBGamer/rust,stepancheg/rust-ide-rust,andars/rust,carols10cents/rust,XMPPw... | src/test/run-pass/traits-default-method-trivial.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```rust\nuse {Future, Poll};\n/// Combines two different futures yielding the same item and error\n/// types into a single type.\npub enum Either<A, B> {\n /// First branch of the type\n A(A),\n /// Second branch of the type\n B(B),\n}\n\n... | rust | edit | 2 | 2 | apache-2.0 | f2a38094222b15580170ef4c486a32d6e620a628 | Idolf/futures-rs,alexcrichton/futures-rs | src/future/either.rs | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```rust\n// Copyright 2014 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution and at\n// http://rust-lang.org/COPYRIGHT.\n//\n// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or\n//... | rust | edit | 0 | 1 | apache-2.0 | 9f16c2ce59ac942e1c0415987012100756a44039 | aidancully/rust,GBGamer/rust,graydon/rust,GBGamer/rust,graydon/rust,GBGamer/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,GBGamer/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust | src/test/compile-fail/coherence-cross-crate-conflict.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add regression test for matching on u8"
},
{
"role": "assistant",
"content": "// EMIT_MIR_FOR_EACH_BIT_WIDTH\n// EMIT_MIR matches_u8.exhaustive_match.MatchBranchSimplification.diff\n\npub enum E {\n A,\n B,\n}\n\n// This only... | rust | new_file | 0 | 2 | apache-2.0 | c0a811a24ee926431f6e8fea6984430138a5fee0 | graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust | src/test/mir-opt/matches_u8.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add implementation of johnson-subalgorithm with explicit matrix inversion."
},
{
"role": "assistant",
"content": "use core::num::{Zero, One};\nuse core::vec::{len, push};\nuse nalgebra::ndim::dmat::{zero_mat_with_dim};\nuse nalgebr... | rust | new_file | null | null | bsd-3-clause | c2828582d482950985377dc8cab7d1be9a9fa142 | sebcrozet/ncollide,steveklabnik/ncollide,steveklabnik/ncollide,MichaelRiss/ncollide,MichaelRiss/ncollide,sebcrozet/ncollide | src/narrow/algorithm/explicit_johnson_simplex.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Add empty implementation for `frame::decode`"
},
{
"role": "assistant",
"content": "use frame::ChannelAssignment;\n\npub fn decode(channel_assignment: ChannelAssignment, buffer: &mut [i32]) {\n match channel_assignment {\n Chan... | rust | new_file | 0 | 2 | bsd-3-clause | 8c893d1754508fd59acb310681290578e13e8fe9 | sourrust/flac | src/frame/decoder.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add a test that imports can't circumvent exports"
},
{
"role": "assistant",
"content": "// xfail-boot\n// error-pattern: unresolved name\n\nimport m.unexported;\n\nmod m {\n export exported;\n\n fn exported() {\n }\n\n fn unexp... | rust | new_file | null | null | apache-2.0 | a5ccead3fdb509109806cb5cb4865afd93a1b4fb | aneeshusa/rust,graydon/rust,carols10cents/rust,LeoTestard/rust,michaelballantyne/rust-gpu,erickt/rust,Ryman/rust,waynenilsen/rand,pythonesque/rust,zaeleus/rust,jbclements/rust,Ryman/rust,ruud-v-a/rust,michaelballantyne/rust-gpu,mahkoh/rust,untitaker/rust,aneeshusa/rust,robertg/rust,AerialX/rust-rt-minimal,quornian/rust... | src/test/compile-fail/export-import.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Create window and event loop"
},
{
"role": "assistant",
"content": "extern crate piston;\nextern crate graphics;\nextern crate glutin_window;\nextern crate opengl_graphics;\n\nuse piston::window::WindowSettings;\nuse piston::event:... | rust | new_file | 0 | 3 | mit | 8c740c6f4ec08d9a6451d8052dd8989b53138cba | Ticki/Open-Sea | src/main.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Test for use of break as an expression\n\nThe test was meant to verify that the typechecker correctly\nallows a _|_ value (break, here) to be used in any context.\nHowever, the compiler fails with an LLVM assertion failure.\nI xfailed it, but ... | rust | new_file | null | null | apache-2.0 | 147b088125e27115a6c7417c9a1b55cc1d099b11 | SiegeLord/rust,nham/rust,AerialX/rust-rt-minimal,jashank/rust,ebfull/rust,P1start/rust,dwillmer/rust,miniupnp/rust,bombless/rust-docs-chinese,aepsil0n/rust,Ryman/rust,zachwick/rust,zubron/rust,rprichard/rust,ruud-v-a/rust,zaeleus/rust,pczarn/rust,mitsuhiko/rust,aidancully/rust,ejjeong/rust,quornian/rust,avdi/rust,0x73/... | src/test/run-pass/break-value.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Add rust code for wordy case\n\nIt passed all testcases"
},
{
"role": "assistant",
"content": "pub struct WordProblem {\n cmd: String,\n}\n\n#[derive(PartialEq, Debug)]\nenum Token {\n CmdWhat,\n CmdIs,\n Number,\n O... | rust | new_file | 0 | 14 | bsd-2-clause | 4b9f4e6de8cbbd5a06cd8d70e7df4cec39b49a5b | gyn/exercism,gyn/exercism,gyn/exercism,gyn/exercism | rust/wordy/src/lib.rs | rejected_complexity | Cyclomatic complexity too high: 14 | true |
[
{
"role": "user",
"content": "Write rust code for the following: Solve Extremely Basic in rust"
},
{
"role": "assistant",
"content": "use std::io;\n\nfn main() {\n let mut input_a = String::new();\n let mut input_b = String::new();\n\n if let Err(_e) = io::stdin().read_line(&mut input_a... | rust | new_file | 0 | 3 | mit | 73d7611e33c5d6672570d431163f48947383b725 | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... | solutions/uri/1001/1001.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Set a struct to represent points, set up boilerplate"
},
{
"role": "assistant",
"content": "// Using structs to represent 2D points\n// and calculating the Euclidean distance between them\n\nstruct Point {\n x: f64,\n y: f64,... | rust | new_file | null | null | bsd-2-clause | 8c3f08a192d5abd425f655899742a75bdc53e40a | ambidextrousTx/ToyRustPrograms | euclidean.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: rustdoc: Add test for mixing doc comments and attrs\n\nThis is a step toward adding more test coverage to make it easier to\nremove the distinction between collapsed and uncollapsed doc values."
},
{
"role": "assistant",
"content":... | rust | new_file | 0 | 0 | apache-2.0 | 2e0bc33594118179bb4b3e12a86a6d74b7baed4a | aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust | src/test/rustdoc/mixing-doc-comments-and-attrs.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Create an idiomatic fibonacci function\n\nIdiomatic in the sense that it uses match"
},
{
"role": "assistant",
"content": "fn fib(n: i64) -> i64 {\n match n {\n 0 => 0,\n 1 => 1,\n _ => fib(n - 1) + fib(n - ... | rust | new_file | 0 | 2 | mit | 70b46eb5ccd6d27f6d7ec980c4fffa5c2763506c | fifth-postulate/learn-a-language-Rust,fifth-postulate/learn-a-language-Rust,fifth-postulate/learn-a-language-Rust | code-samples/idiomatic-fibonacci.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add compile-fail test for missing import shadowing case"
},
{
"role": "assistant",
"content": "// Copyright 2014 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution and at\n// htt... | rust | new_file | 0 | 1 | apache-2.0 | 6bbec28ea0193b09dbdfc2669b94ec7603506d21 | richo/rust,ebfull/rust,krzysz00/rust,graydon/rust,richo/rust,jashank/rust,quornian/rust,krzysz00/rust,ebfull/rust,bombless/rust,pshc/rust,ktossell/rust,jroesch/rust,XMPPwocky/rust,zubron/rust,pelmers/rust,nham/rust,nwin/rust,AerialX/rust,jroesch/rust,zaeleus/rust,nwin/rust,untitaker/rust,andars/rust,erickt/rust,philyoo... | src/test/compile-fail/resolve-conflict-type-vs-import.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add rust code for binary-search project\n\nIt passed all test cases"
},
{
"role": "assistant",
"content": "fn binary_serch(list: &[u32], key: u32, base: usize) -> Option<usize> {\n let upper = list.len();\n\n match upper {\n ... | rust | new_file | 0 | 5 | bsd-2-clause | 825cd2c67b322781acde1322213268ff77e2996a | gyn/exercism,gyn/exercism,gyn/exercism,gyn/exercism | rust/binary-search/src/lib.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add blocks tests missing file"
},
{
"role": "assistant",
"content": "use ast::rules;\n\nuse super::utils::{ interpret_rule };\n\n#[test]\nfn test_do_block() {\n let (_val, env) = interpret_rule(\"y = 3; do y = 5 end\", rules::bl... | rust | new_file | 0 | 1 | bsd-2-clause | b1b694ee4c1af95ecfb85765707ae20b897fcd5a | alexander-smoktal/maul | src/test/interpreter/test_blocks.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add `mir-opt` test for better drop elaboration"
},
{
"role": "assistant",
"content": "// Ensure that there are no drop terminators in `unwrap<T>` (except the one along the cleanup\n// path).\n\nfn unwrap<T>(opt: Option<T>) -> T {\n... | rust | new_file | 0 | 2 | apache-2.0 | 8ea5ac60b6723356dc14954d10c5069175f61fc2 | graydon/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust | src/test/mir-opt/no-drop-for-inactive-variant.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add file missing from last 2 commits"
},
{
"role": "assistant",
"content": "use adler32::RollingAdler32;\nuse libc::{c_uint, c_ulong};\n\npub const MZ_ADLER32_INIT: c_ulong = 1;\n\npub const HUFFMAN_LENGTH_ORDER: [u8; 19] =\n [1... | rust | new_file | 0 | 1 | mit | 1a378cd2d625c192ba7e535cc67e519fd16492f5 | Frommi/miniz_oxide,Frommi/miniz_oxide,Frommi/miniz_oxide,Frommi/miniz_oxide | miniz_oxide/src/shared.rs | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```rust\n// Copyright 2014 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution and at\n// http://rust-lang.org/COPYRIGHT.\n//\n// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or\n//... | rust | edit | 0 | 1 | apache-2.0 | 5974e5b294ee3b67054a31eae2a4b9bab950a119 | GBGamer/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,GBGamer/rust,graydon/rust,GBGamer/rust,graydon/rust,aidancully/rust,aidancully/rust,GBGamer/rust,aidancully/rust,graydon/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,graydon/rust,graydon/rust,GBGamer/rust | src/test/compile-fail/issue-14091.rs | rejected_duplicate | Near-duplicate of sample 120462 | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add test for DropAndReplace bug"
},
{
"role": "assistant",
"content": "// Regression test for incorrect DropAndReplace behavior introduced in #60840\n// and fixed in #61373. When combined with the optimization implemented in\n// #6... | rust | new_file | 0 | 3 | apache-2.0 | e244f625bebb86dbbf5f80da3a5fbcc0eca32dd1 | graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust | src/test/run-pass/generator/drop-and-replace.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: rustc: Add a testcase for vector push (mutable aliases with *, really)"
},
{
"role": "assistant",
"content": "// xfail-stage0\n\nfn push[T](&mutable vec[mutable? T] v, &T t) {\n v += vec(t);\n}\n\nfn main() {\n auto v = @vec(... | rust | new_file | null | null | apache-2.0 | f2fe26a82188d161c2bf2fb75260d718e320e8f6 | GBGamer/rust,carols10cents/rust,gifnksm/rust,richo/rust,SiegeLord/rust,stepancheg/rust-ide-rust,avdi/rust,zubron/rust,omasanori/rust,kmcallister/rust,0x73/rust,mahkoh/rust,jashank/rust,KokaKiwi/rust,miniupnp/rust,KokaKiwi/rust,pelmers/rust,andars/rust,jbclements/rust,mitsuhiko/rust,hauleth/rust,ktossell/rust,vhbit/rust... | src/test/run-pass/vec-push.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write rust code for the following: Add some examples for Option"
},
{
"role": "assistant",
"content": "// Copyright 2013 The rust-for-real developers. For a full listing of the authors,\n// refer to the AUTHORS file at the top-level directory of this distribution.\n... | rust | new_file | 2 | 2 | apache-2.0 | 585c3b1d8161173d8f6b0fd811d2caac694b2655 | FlaPer87/rust-for-real | src/std/option.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add example to test fuzzingclient in Autobahn"
},
{
"role": "assistant",
"content": "\nextern crate mio_websocket;\n\nuse std::net::SocketAddr;\n\nuse mio_websocket::interface::*;\n\nfn main() {\n let mut ws = WebSocket::new(\"1... | rust | new_file | 0 | 2 | mit | f26a5f12f4034e0cbaceaf162f6558682833e691 | nbaksalyar/mio-websocket | examples/fuzzingserver.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add regression test for thread local static mut borrows"
},
{
"role": "assistant",
"content": "// Copyright 2016 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution and at\n// htt... | rust | new_file | 1 | 1 | apache-2.0 | ae42e537dbfabafb1f1e36d975b1fed33032c6c1 | aidancully/rust,aidancully/rust,GBGamer/rust,graydon/rust,GBGamer/rust,aidancully/rust,graydon/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,graydon/rust,graydon/rust,graydon/rust,GBGamer/rust,aidancully/rust,aidancully/rust,graydon/rust | src/test/ui/nll/borrowck-thread-local-static-mut-borrow-outlives-fn.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add a test for Weak::new() not crashing for uninhabited types"
},
{
"role": "assistant",
"content": "// Copyright 2018 The Rust Project Developers. See the COPYRIGHT\n// file at the top-level directory of this distribution and at\n... | rust | new_file | 3 | 1 | apache-2.0 | 21526c5403d7a43144de897d0187c395fb92bacc | aidancully/rust,GBGamer/rust,GBGamer/rust,graydon/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,graydon/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,aidancully/rust,GBGamer/rust,aidancully/rust,graydon/rust | src/test/run-pass/weak-new-uninhabited-issue-48493.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add test to make sure -Wunused-crate-dependencies works with tests\n\nMake sure code in `#[test]` blocks counts as a use of a crate."
},
{
"role": "assistant",
"content": "// Test-only use OK\n\n// edition:2018\n// check-pass\n// a... | rust | new_file | 0 | 1 | apache-2.0 | ce81d15289867f7ec0bba959712d100d3ff6a653 | aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust | src/test/ui/unused-crate-deps/test-use-ok.rs | accepted | null | true |
[
{
"role": "user",
"content": "Write rust code for the following: Add a test written by jdm that tests repeated vector self appending."
},
{
"role": "assistant",
"content": "// xfail-stage0\n\nfn main()\n{\n // Make sure we properly handle repeated self-appends.\n let vec[int] a = [0];\n ... | rust | new_file | null | null | apache-2.0 | ec809188654b4b4c8defef4f2baead6e7518cf36 | zaeleus/rust,avdi/rust,zubron/rust,untitaker/rust,jroesch/rust,omasanori/rust,aturon/rust,j16r/rust,LeoTestard/rust,zubron/rust,P1start/rust,sae-bom/rust,aepsil0n/rust,bhickey/rand,kimroen/rust,pythonesque/rust,cllns/rust,AerialX/rust,richo/rust,rohitjoshi/rust,jroesch/rust,0x73/rust,TheNeikos/rust,gifnksm/rust,mihnead... | src/test/run-pass/vec-self-append.rs | rejected_syntax | Syntax error detected by tree-sitter | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.