Skip to content

Commit 7294287

Browse files
authored
Allow deprecated in polyfills
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`.
1 parent d80e810 commit 7294287

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)