|
|
@ -1095,7 +1095,7 @@ diff -uNr 12_exceptions_part1_groundwork/src/exception.rs 13_integrated_testing/
|
|
|
|
diff -uNr 12_exceptions_part1_groundwork/src/lib.rs 13_integrated_testing/src/lib.rs
|
|
|
|
diff -uNr 12_exceptions_part1_groundwork/src/lib.rs 13_integrated_testing/src/lib.rs
|
|
|
|
--- 12_exceptions_part1_groundwork/src/lib.rs
|
|
|
|
--- 12_exceptions_part1_groundwork/src/lib.rs
|
|
|
|
+++ 13_integrated_testing/src/lib.rs
|
|
|
|
+++ 13_integrated_testing/src/lib.rs
|
|
|
|
@@ -0,0 +1,171 @@
|
|
|
|
@@ -0,0 +1,170 @@
|
|
|
|
+// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
|
|
+// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
|
|
+//
|
|
|
|
+//
|
|
|
|
+// Copyright (c) 2018-2020 Andre Richter <andre.o.richter@gmail.com>
|
|
|
|
+// Copyright (c) 2018-2020 Andre Richter <andre.o.richter@gmail.com>
|
|
|
@ -1207,17 +1207,16 @@ diff -uNr 12_exceptions_part1_groundwork/src/lib.rs 13_integrated_testing/src/li
|
|
|
|
+#![allow(incomplete_features)]
|
|
|
|
+#![allow(incomplete_features)]
|
|
|
|
+#![feature(const_generics)]
|
|
|
|
+#![feature(const_generics)]
|
|
|
|
+#![feature(const_panic)]
|
|
|
|
+#![feature(const_panic)]
|
|
|
|
+#![feature(custom_inner_attributes)]
|
|
|
|
|
|
|
|
+#![feature(format_args_nl)]
|
|
|
|
+#![feature(format_args_nl)]
|
|
|
|
+#![feature(global_asm)]
|
|
|
|
+#![feature(global_asm)]
|
|
|
|
+#![feature(linkage)]
|
|
|
|
+#![feature(linkage)]
|
|
|
|
+#![feature(naked_functions)]
|
|
|
|
+#![feature(naked_functions)]
|
|
|
|
+#![feature(panic_info_message)]
|
|
|
|
+#![feature(panic_info_message)]
|
|
|
|
+#![feature(slice_ptr_range)]
|
|
|
|
|
|
|
|
+#![feature(trait_alias)]
|
|
|
|
+#![feature(trait_alias)]
|
|
|
|
+#![no_std]
|
|
|
|
+#![no_std]
|
|
|
|
+// Testing
|
|
|
|
+// Testing
|
|
|
|
+#![cfg_attr(test, no_main)]
|
|
|
|
+#![cfg_attr(test, no_main)]
|
|
|
|
|
|
|
|
+#![cfg_attr(test, feature(slice_ptr_range))]
|
|
|
|
+#![feature(custom_test_frameworks)]
|
|
|
|
+#![feature(custom_test_frameworks)]
|
|
|
|
+#![reexport_test_harness_main = "test_main"]
|
|
|
|
+#![reexport_test_harness_main = "test_main"]
|
|
|
|
+#![test_runner(crate::test_runner)]
|
|
|
|
+#![test_runner(crate::test_runner)]
|
|
|
|