Skip to content

Commit 6c17c7e

Browse files
committed
---
yaml --- r: 104622 b: refs/heads/snap-stage3 c: 5973b0c h: refs/heads/master v: v3
1 parent 1e0e935 commit 6c17c7e

File tree

5 files changed

+25
-36
lines changed

5 files changed

+25
-36
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 62f1d68439dcfd509eaca29887afa97f22938373
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ff22e47c1915d6cdc545deb341c83d877a8825e6
4+
refs/heads/snap-stage3: 5973b0c4ad26729aa1379b98317479f61cd0d87c
55
refs/heads/try: db814977d07bd798feb24f6b74c00800ef458a13
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/typeck/collect.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,23 +1040,12 @@ pub fn ty_of_foreign_fn_decl(ccx: &CrateCtxt,
10401040
ast_generics: &ast::Generics,
10411041
abis: AbiSet)
10421042
-> ty::ty_param_bounds_and_ty {
1043-
1044-
for i in decl.inputs.iter() {
1045-
match (*i).pat.node {
1046-
ast::PatIdent(_, _, _) => (),
1047-
ast::PatWild => (),
1048-
_ => ccx.tcx.sess.span_err((*i).pat.span,
1049-
"patterns aren't allowed in foreign function declarations")
1050-
}
1051-
}
1052-
10531043
let ty_generics = ty_generics(ccx, ast_generics, 0);
10541044
let rb = BindingRscope::new(def_id.node);
10551045
let input_tys = decl.inputs
10561046
.iter()
10571047
.map(|a| ty_of_arg(ccx, &rb, a, None))
10581048
.collect();
1059-
10601049
let output_ty = ast_ty_to_ty(ccx, &rb, decl.output);
10611050

10621051
let t_fn = ty::mk_bare_fn(

branches/snap-stage3/src/libstd/num/f32.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,18 @@ mod tests {
866866
use num::*;
867867
use num;
868868

869+
#[test]
870+
fn test_min_nan() {
871+
assert_eq!(NAN.min(2.0), 2.0);
872+
assert_eq!(2.0f32.min(NAN), 2.0);
873+
}
874+
875+
#[test]
876+
fn test_max_nan() {
877+
assert_eq!(NAN.max(2.0), 2.0);
878+
assert_eq!(2.0f32.max(NAN), 2.0);
879+
}
880+
869881
#[test]
870882
fn test_num() {
871883
num::test_num(10f32, 2f32);

branches/snap-stage3/src/libstd/num/f64.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,18 @@ mod tests {
865865
use num::*;
866866
use num;
867867

868+
#[test]
869+
fn test_min_nan() {
870+
assert_eq!(NAN.min(2.0), 2.0);
871+
assert_eq!(2.0f64.min(NAN), 2.0);
872+
}
873+
874+
#[test]
875+
fn test_max_nan() {
876+
assert_eq!(NAN.max(2.0), 2.0);
877+
assert_eq!(2.0f64.max(NAN), 2.0);
878+
}
879+
868880
#[test]
869881
fn test_num() {
870882
num::test_num(10f64, 2f64);

branches/snap-stage3/src/test/compile-fail/issue-10877.rs

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)