From 7294287fcfed7caeb051d91fc9be54bde20a8da8 Mon Sep 17 00:00:00 2001 From: Christopher Durham Date: Thu, 15 Apr 2021 22:03:33 -0500 Subject: [PATCH] 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`. --- crates/slice-dst/src/layout_polyfill.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/slice-dst/src/layout_polyfill.rs b/crates/slice-dst/src/layout_polyfill.rs index 071ac9e..c551599 100644 --- a/crates/slice-dst/src/layout_polyfill.rs +++ b/crates/slice-dst/src/layout_polyfill.rs @@ -1,3 +1,5 @@ +#![allow(deprecated)] // this is a polyfill module + use core::{ alloc::{Layout, LayoutErr}, cmp,