Skip to content

Commit 1481056

Browse files
bors[bot]CAD97
andauthored
Merge #72
72: Allow deprecated in polyfills r=CAD97 a=CAD97 The whole point is to polyfill functionality on older rustc versions, so we need to use the deprecated `LayoutErr` rather than the new, more proper name of `LayoutError`. Co-authored-by: Christopher Durham <[email protected]>
2 parents d80e810 + 7294287 commit 1481056

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/slice-dst/src/layout_polyfill.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(deprecated)] // this is a polyfill module
2+
13
use core::{
24
alloc::{Layout, LayoutErr},
35
cmp,

0 commit comments

Comments
 (0)