From 8f23fdc9340167cf9d6d31a09705369c3b8acccb Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sat, 9 Dec 2017 15:12:42 +0100 Subject: deny warnings and unsafe code in tests and examples --- tests/cfail/critical-section.rs | 1 + tests/cfail/duplicated-task.rs | 1 + tests/cfail/exception.rs | 1 + tests/cfail/idle.rs | 1 + tests/cfail/init.rs | 1 + tests/cfail/interrupt.rs | 1 + tests/cfail/late-resource-init.rs | 1 + tests/cfail/lock.rs | 1 + tests/cfail/peripheral-alias.rs | 1 + tests/cfail/priority-too-high.rs | 1 + tests/cfail/priority-too-low.rs | 1 + tests/cfail/resource-alias.rs | 1 + tests/cfail/resource-not-send.rs | 1 + tests/cfail/token-outlive.rs | 1 + tests/cfail/token-transfer.rs | 1 + tests/cfail/wrong-threshold.rs | 1 + 16 files changed, 16 insertions(+) (limited to 'tests') diff --git a/tests/cfail/critical-section.rs b/tests/cfail/critical-section.rs index 728388e..6571978 100644 --- a/tests/cfail/critical-section.rs +++ b/tests/cfail/critical-section.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(const_fn)] #![feature(proc_macro)] diff --git a/tests/cfail/duplicated-task.rs b/tests/cfail/duplicated-task.rs index d91f09b..82b7ac6 100644 --- a/tests/cfail/duplicated-task.rs +++ b/tests/cfail/duplicated-task.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/tests/cfail/exception.rs b/tests/cfail/exception.rs index 065ccad..e2e749a 100644 --- a/tests/cfail/exception.rs +++ b/tests/cfail/exception.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/tests/cfail/idle.rs b/tests/cfail/idle.rs index a362ec7..79fe99b 100644 --- a/tests/cfail/idle.rs +++ b/tests/cfail/idle.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/tests/cfail/init.rs b/tests/cfail/init.rs index 73643b1..d2823e3 100644 --- a/tests/cfail/init.rs +++ b/tests/cfail/init.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/tests/cfail/interrupt.rs b/tests/cfail/interrupt.rs index b913d83..e3ef2e8 100644 --- a/tests/cfail/interrupt.rs +++ b/tests/cfail/interrupt.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/tests/cfail/late-resource-init.rs b/tests/cfail/late-resource-init.rs index cb37887..a1059f3 100644 --- a/tests/cfail/late-resource-init.rs +++ b/tests/cfail/late-resource-init.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/tests/cfail/lock.rs b/tests/cfail/lock.rs index e0e37e0..5630649 100644 --- a/tests/cfail/lock.rs +++ b/tests/cfail/lock.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(const_fn)] #![feature(proc_macro)] diff --git a/tests/cfail/peripheral-alias.rs b/tests/cfail/peripheral-alias.rs index 042666a..3528ec6 100644 --- a/tests/cfail/peripheral-alias.rs +++ b/tests/cfail/peripheral-alias.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/tests/cfail/priority-too-high.rs b/tests/cfail/priority-too-high.rs index c139471..5c35377 100644 --- a/tests/cfail/priority-too-high.rs +++ b/tests/cfail/priority-too-high.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/tests/cfail/priority-too-low.rs b/tests/cfail/priority-too-low.rs index cefd342..2be2254 100644 --- a/tests/cfail/priority-too-low.rs +++ b/tests/cfail/priority-too-low.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/tests/cfail/resource-alias.rs b/tests/cfail/resource-alias.rs index 788af6f..e1c73bb 100644 --- a/tests/cfail/resource-alias.rs +++ b/tests/cfail/resource-alias.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(proc_macro)] #![no_std] diff --git a/tests/cfail/resource-not-send.rs b/tests/cfail/resource-not-send.rs index 333a3a5..c89c3d3 100644 --- a/tests/cfail/resource-not-send.rs +++ b/tests/cfail/resource-not-send.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(const_fn)] #![feature(proc_macro)] diff --git a/tests/cfail/token-outlive.rs b/tests/cfail/token-outlive.rs index 31231b7..819a3d1 100644 --- a/tests/cfail/token-outlive.rs +++ b/tests/cfail/token-outlive.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(const_fn)] #![feature(proc_macro)] diff --git a/tests/cfail/token-transfer.rs b/tests/cfail/token-transfer.rs index 38e8786..bc62052 100644 --- a/tests/cfail/token-transfer.rs +++ b/tests/cfail/token-transfer.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(const_fn)] #![feature(proc_macro)] diff --git a/tests/cfail/wrong-threshold.rs b/tests/cfail/wrong-threshold.rs index b974071..149f357 100644 --- a/tests/cfail/wrong-threshold.rs +++ b/tests/cfail/wrong-threshold.rs @@ -1,3 +1,4 @@ +#![deny(unsafe_code)] #![deny(warnings)] #![feature(proc_macro)] #![no_std] -- cgit v1.2.3