File tree 6 files changed +0
-14
lines changed
6 files changed +0
-14
lines changed Original file line number Diff line number Diff line change 26
26
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/" ,
27
27
test( no_crate_inject, attr( allow( unused_variables) , deny( warnings) ) ) ) ]
28
28
29
- #![ allow( trivial_casts) ]
30
29
#![ cfg_attr( test, allow( deprecated) ) ] // rand
31
30
#![ cfg_attr( not( stage0) , deny( warnings) ) ]
32
31
Original file line number Diff line number Diff line change @@ -1414,26 +1414,20 @@ impl<T> Pointer for *const T {
1414
1414
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1415
1415
impl < T > Pointer for * mut T {
1416
1416
fn fmt ( & self , f : & mut Formatter ) -> Result {
1417
- // FIXME(#23542) Replace with type ascription.
1418
- #![ allow( trivial_casts) ]
1419
1417
Pointer :: fmt ( & ( * self as * const T ) , f)
1420
1418
}
1421
1419
}
1422
1420
1423
1421
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1424
1422
impl < ' a , T > Pointer for & ' a T {
1425
1423
fn fmt ( & self , f : & mut Formatter ) -> Result {
1426
- // FIXME(#23542) Replace with type ascription.
1427
- #![ allow( trivial_casts) ]
1428
1424
Pointer :: fmt ( & ( * self as * const T ) , f)
1429
1425
}
1430
1426
}
1431
1427
1432
1428
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1433
1429
impl < ' a , T > Pointer for & ' a mut T {
1434
1430
fn fmt ( & self , f : & mut Formatter ) -> Result {
1435
- // FIXME(#23542) Replace with type ascription.
1436
- #![ allow( trivial_casts) ]
1437
1431
Pointer :: fmt ( & ( & * * self as * const T ) , f)
1438
1432
}
1439
1433
}
Original file line number Diff line number Diff line change @@ -578,7 +578,5 @@ pub const POST_DROP_USIZE: usize = POST_DROP_U64 as usize;
578
578
#[ inline]
579
579
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
580
580
pub unsafe fn transmute_copy < T , U > ( src : & T ) -> U {
581
- // FIXME(#23542) Replace with type ascription.
582
- #![ allow( trivial_casts) ]
583
581
ptr:: read ( src as * const T as * const U )
584
582
}
Original file line number Diff line number Diff line change 43
43
#![ feature( time2) ]
44
44
#![ cfg_attr( test, feature( test) ) ]
45
45
46
- #![ allow( trivial_casts) ]
47
-
48
46
extern crate arena;
49
47
extern crate core;
50
48
extern crate flate;
Original file line number Diff line number Diff line change 12
12
#![ allow( non_camel_case_types) ]
13
13
#![ allow( non_snake_case) ]
14
14
#![ allow( dead_code) ]
15
- #![ allow( trivial_casts) ]
16
15
17
16
#![ crate_name = "rustc_llvm" ]
18
17
#![ unstable( feature = "rustc_private" , issue = "27812" ) ]
Original file line number Diff line number Diff line change 37
37
#![ feature( staged_api) ]
38
38
#![ feature( unicode) ]
39
39
40
- #![ allow( trivial_casts) ]
41
-
42
40
extern crate arena;
43
41
extern crate flate;
44
42
extern crate getopts;
You can’t perform that action at this time.
0 commit comments