1
- warning : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
1
+ error : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
2
2
--> $DIR/fn-ptr-comparisons.rs:16:13
3
3
|
4
4
LL | let _ = f == a;
5
5
| ^^^^^^
6
6
|
7
7
= note: the address of the same function can very between different codegen units
8
8
= note: furthermore, different functions could have the same address after being merged together
9
- = note: `#[warn (unpredictable_function_pointer_comparisons)]` on by default
9
+ = note: `#[deny (unpredictable_function_pointer_comparisons)]` on by default
10
10
11
- warning : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
11
+ error : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
12
12
--> $DIR/fn-ptr-comparisons.rs:18:13
13
13
|
14
14
LL | let _ = f != a;
@@ -17,7 +17,7 @@ LL | let _ = f != a;
17
17
= note: the address of the same function can very between different codegen units
18
18
= note: furthermore, different functions could have the same address after being merged together
19
19
20
- warning : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
20
+ error : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
21
21
--> $DIR/fn-ptr-comparisons.rs:20:13
22
22
|
23
23
LL | let _ = f == g;
@@ -26,7 +26,7 @@ LL | let _ = f == g;
26
26
= note: the address of the same function can very between different codegen units
27
27
= note: furthermore, different functions could have the same address after being merged together
28
28
29
- warning : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
29
+ error : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
30
30
--> $DIR/fn-ptr-comparisons.rs:22:13
31
31
|
32
32
LL | let _ = f == f;
@@ -35,7 +35,7 @@ LL | let _ = f == f;
35
35
= note: the address of the same function can very between different codegen units
36
36
= note: furthermore, different functions could have the same address after being merged together
37
37
38
- warning : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
38
+ error : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
39
39
--> $DIR/fn-ptr-comparisons.rs:24:13
40
40
|
41
41
LL | let _ = g == g;
@@ -44,7 +44,7 @@ LL | let _ = g == g;
44
44
= note: the address of the same function can very between different codegen units
45
45
= note: furthermore, different functions could have the same address after being merged together
46
46
47
- warning : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
47
+ error : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
48
48
--> $DIR/fn-ptr-comparisons.rs:28:13
49
49
|
50
50
LL | let _ = cfn == c;
@@ -53,7 +53,7 @@ LL | let _ = cfn == c;
53
53
= note: the address of the same function can very between different codegen units
54
54
= note: furthermore, different functions could have the same address after being merged together
55
55
56
- warning : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
56
+ error : function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
57
57
--> $DIR/fn-ptr-comparisons.rs:32:13
58
58
|
59
59
LL | let _ = t == test;
@@ -62,5 +62,5 @@ LL | let _ = t == test;
62
62
= note: the address of the same function can very between different codegen units
63
63
= note: furthermore, different functions could have the same address after being merged together
64
64
65
- warning: 7 warnings emitted
65
+ error: aborting due to 7 previous errors
66
66
0 commit comments