mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
Add tests for issues which can be closed on master
This commit is contained in:
parent
8579c1db0e
commit
b48f4e03b3
@ -104,3 +104,19 @@ fn issue1466() {
|
||||
ctx.create_device_local_buffer(buffer)
|
||||
});
|
||||
}
|
||||
|
||||
fn issue470() {
|
||||
{{{
|
||||
let explicit_arg_decls =
|
||||
explicit_arguments.into_iter()
|
||||
.enumerate()
|
||||
.map(|(index, (ty, pattern))| {
|
||||
let lvalue = Lvalue::Arg(index as u32);
|
||||
block = this.pattern(block,
|
||||
argument_extent,
|
||||
hair::PatternRef::Hair(pattern),
|
||||
&lvalue);
|
||||
ArgDecl { ty: ty }
|
||||
});
|
||||
}}}
|
||||
}
|
||||
|
@ -33,6 +33,12 @@ fn test() {
|
||||
|
||||
funk(); //dontchangeme
|
||||
// or me
|
||||
|
||||
// #1388
|
||||
const EXCEPTION_PATHS: &'static [&'static str] =
|
||||
&[// std crates
|
||||
"src/libstd/sys/", // Platform-specific code for std lives here.
|
||||
"src/bootstrap"];
|
||||
}
|
||||
|
||||
/// test123
|
||||
|
16
tests/source/issue-1350.rs
Normal file
16
tests/source/issue-1350.rs
Normal file
@ -0,0 +1,16 @@
|
||||
// rustfmt-max_width: 120
|
||||
// rustfmt-comment_width: 110
|
||||
|
||||
impl Struct {
|
||||
fn fun() {
|
||||
let result = match <R::RequestResult as serde::Deserialize>::deserialize(&json) {
|
||||
Ok(v) => v,
|
||||
Err(e) => {
|
||||
match <R::ErrorResult as serde::Deserialize>::deserialize(&json) {
|
||||
Ok(v) => return Err(Error::with_json(v)),
|
||||
Err(e2) => return Err(Error::with_json(e)),
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
@ -180,3 +180,11 @@ struct Deep {
|
||||
}
|
||||
|
||||
struct Foo<C=()>(String);
|
||||
|
||||
// #1364
|
||||
fn foo() {
|
||||
convex_shape.set_point(0, &Vector2f { x: 400.0, y: 100.0 });
|
||||
convex_shape.set_point(1, &Vector2f { x: 500.0, y: 70.0 });
|
||||
convex_shape.set_point(2, &Vector2f { x: 450.0, y: 100.0 });
|
||||
convex_shape.set_point(3, &Vector2f { x: 580.0, y: 150.0 });
|
||||
}
|
||||
|
@ -9,3 +9,10 @@ fn main() {
|
||||
fn test() {
|
||||
a?
|
||||
}
|
||||
|
||||
fn issue1291() {
|
||||
try!(fs::create_dir_all(&gitfiledir).chain_err(|| {
|
||||
format!("failed to create the {} submodule directory for the workarea",
|
||||
name)
|
||||
}));
|
||||
}
|
||||
|
@ -119,3 +119,23 @@ fn issue1466() {
|
||||
ctx.create_device_local_buffer(buffer)
|
||||
});
|
||||
}
|
||||
|
||||
fn issue470() {
|
||||
{
|
||||
{
|
||||
{
|
||||
let explicit_arg_decls = explicit_arguments
|
||||
.into_iter()
|
||||
.enumerate()
|
||||
.map(|(index, (ty, pattern))| {
|
||||
let lvalue = Lvalue::Arg(index as u32);
|
||||
block = this.pattern(block,
|
||||
argument_extent,
|
||||
hair::PatternRef::Hair(pattern),
|
||||
&lvalue);
|
||||
ArgDecl { ty: ty }
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -34,6 +34,12 @@ fn test() {
|
||||
|
||||
funk(); // dontchangeme
|
||||
// or me
|
||||
|
||||
// #1388
|
||||
const EXCEPTION_PATHS: &'static [&'static str] =
|
||||
&[// std crates
|
||||
"src/libstd/sys/", // Platform-specific code for std lives here.
|
||||
"src/bootstrap"];
|
||||
}
|
||||
|
||||
/// test123
|
||||
|
16
tests/target/issue-1350.rs
Normal file
16
tests/target/issue-1350.rs
Normal file
@ -0,0 +1,16 @@
|
||||
// rustfmt-max_width: 120
|
||||
// rustfmt-comment_width: 110
|
||||
|
||||
impl Struct {
|
||||
fn fun() {
|
||||
let result = match <R::RequestResult as serde::Deserialize>::deserialize(&json) {
|
||||
Ok(v) => v,
|
||||
Err(e) => {
|
||||
match <R::ErrorResult as serde::Deserialize>::deserialize(&json) {
|
||||
Ok(v) => return Err(Error::with_json(v)),
|
||||
Err(e2) => return Err(Error::with_json(e)),
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
@ -184,3 +184,11 @@ struct Deep {
|
||||
}
|
||||
|
||||
struct Foo<C = ()>(String);
|
||||
|
||||
// #1364
|
||||
fn foo() {
|
||||
convex_shape.set_point(0, &Vector2f { x: 400.0, y: 100.0 });
|
||||
convex_shape.set_point(1, &Vector2f { x: 500.0, y: 70.0 });
|
||||
convex_shape.set_point(2, &Vector2f { x: 450.0, y: 100.0 });
|
||||
convex_shape.set_point(3, &Vector2f { x: 580.0, y: 150.0 });
|
||||
}
|
||||
|
@ -16,3 +16,11 @@ fn main() {
|
||||
fn test() {
|
||||
a?
|
||||
}
|
||||
|
||||
fn issue1291() {
|
||||
fs::create_dir_all(&gitfiledir)
|
||||
.chain_err(|| {
|
||||
format!("failed to create the {} submodule directory for the workarea",
|
||||
name)
|
||||
})?;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user