From ca5fb9d822a2ed33dfc15b7e9c49a9947510edd4 Mon Sep 17 00:00:00 2001 From: Guanghua Guo Date: Wed, 17 Oct 2018 15:21:25 +0800 Subject: [PATCH] Fix build error for panic_handler https://www.google.com/search?client=safari&rls=en&q=Fix+build+error(about+rust+no_std+panic_handler)&ie=UTF-8&oe=UTF-8 --- core/sr-io/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/sr-io/src/lib.rs b/core/sr-io/src/lib.rs index 12e09945d2704..e239b99f0a9c4 100644 --- a/core/sr-io/src/lib.rs +++ b/core/sr-io/src/lib.rs @@ -18,6 +18,7 @@ //! This is part of the Substrate runtime. // end::description[] +#![cfg_attr(not(feature = "std"), feature(panic_handler))] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), feature(lang_items))] #![cfg_attr(not(feature = "std"), feature(alloc_error_handler))]