Skip to content

Commit 4f843ad

Browse files
Allow function_casts_as_integer in coretest test
1 parent 3529162 commit 4f843ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/coretests/tests/ptr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ fn ptr_metadata() {
557557

558558
#[test]
559559
fn ptr_metadata_bounds() {
560+
#[allow(function_casts_as_integer)]
560561
fn metadata_eq_method_address<T: ?Sized>() -> usize {
561562
// The `Metadata` associated type has an `Ord` bound, so this is valid:
562563
<<T as Pointee>::Metadata as PartialEq>::eq as usize

0 commit comments

Comments
 (0)