diff options
Diffstat (limited to 'vendor/displaydoc/tests/no_std')
| -rw-r--r-- | vendor/displaydoc/tests/no_std/enum_prefix.rs | 36 | ||||
| -rw-r--r-- | vendor/displaydoc/tests/no_std/enum_prefix_missing.rs | 35 | ||||
| -rw-r--r-- | vendor/displaydoc/tests/no_std/enum_prefix_missing.stderr | 22 | ||||
| -rw-r--r-- | vendor/displaydoc/tests/no_std/multi_line.rs | 37 | ||||
| -rw-r--r-- | vendor/displaydoc/tests/no_std/multi_line.stderr | 22 | ||||
| -rw-r--r-- | vendor/displaydoc/tests/no_std/multi_line_allow.rs | 38 | ||||
| -rw-r--r-- | vendor/displaydoc/tests/no_std/with.rs | 32 | ||||
| -rw-r--r-- | vendor/displaydoc/tests/no_std/without.rs | 28 | ||||
| -rw-r--r-- | vendor/displaydoc/tests/no_std/without.stderr | 22 |
9 files changed, 0 insertions, 272 deletions
diff --git a/vendor/displaydoc/tests/no_std/enum_prefix.rs b/vendor/displaydoc/tests/no_std/enum_prefix.rs deleted file mode 100644 index 5538e275..00000000 --- a/vendor/displaydoc/tests/no_std/enum_prefix.rs +++ /dev/null @@ -1,36 +0,0 @@ -#![cfg_attr(not(feature = "std"), allow(internal_features), feature(lang_items, start))] -#![cfg_attr(not(feature = "std"), no_std)] - -#[cfg_attr(not(feature = "std"), start)] -fn start(_argc: isize, _argv: *const *const u8) -> isize { - 0 -} -#[lang = "eh_personality"] -#[no_mangle] -#[cfg(not(feature = "std"))] -pub extern "C" fn rust_eh_personality() {} -#[panic_handler] -#[cfg(not(feature = "std"))] -fn panic(_info: &core::panic::PanicInfo) -> ! { - unsafe { - libc::abort(); - } -} - -use displaydoc::Display; - -/// this type is pretty swell -#[derive(Display)] -#[prefix_enum_doc_attributes] -enum TestType { - /// this variant is too - Variant1, - - /// this variant is two - Variant2, -} - -static_assertions::assert_impl_all!(TestType: core::fmt::Display); - -#[cfg(feature = "std")] -fn main() {} diff --git a/vendor/displaydoc/tests/no_std/enum_prefix_missing.rs b/vendor/displaydoc/tests/no_std/enum_prefix_missing.rs deleted file mode 100644 index 71710726..00000000 --- a/vendor/displaydoc/tests/no_std/enum_prefix_missing.rs +++ /dev/null @@ -1,35 +0,0 @@ -#![cfg_attr(not(feature = "std"), allow(internal_features), feature(lang_items, start))] -#![cfg_attr(not(feature = "std"), no_std)] - -#[cfg_attr(not(feature = "std"), start)] -fn start(_argc: isize, _argv: *const *const u8) -> isize { - 0 -} -#[lang = "eh_personality"] -#[no_mangle] -#[cfg(not(feature = "std"))] -pub extern "C" fn rust_eh_personality() {} -#[panic_handler] -#[cfg(not(feature = "std"))] -fn panic(_info: &core::panic::PanicInfo) -> ! { - unsafe { - libc::abort(); - } -} - -use displaydoc::Display; - -#[derive(Display)] -#[prefix_enum_doc_attributes] -enum TestType { - /// this variant is too - Variant1, - - /// this variant is two - Variant2, -} - -static_assertions::assert_impl_all!(TestType: core::fmt::Display); - -#[cfg(feature = "std")] -fn main() {} diff --git a/vendor/displaydoc/tests/no_std/enum_prefix_missing.stderr b/vendor/displaydoc/tests/no_std/enum_prefix_missing.stderr deleted file mode 100644 index 8cf79932..00000000 --- a/vendor/displaydoc/tests/no_std/enum_prefix_missing.stderr +++ /dev/null @@ -1,22 +0,0 @@ -error: proc-macro derive panicked - --> $DIR/enum_prefix_missing.rs:22:10 - | -22 | #[derive(Display)] - | ^^^^^^^ - | - = help: message: Missing doc comment on enum with #[prefix_enum_doc_attributes]. Please remove the attribute or add a doc comment to the enum itself. - -error[E0277]: `TestType` doesn't implement `Display` - --> $DIR/enum_prefix_missing.rs:32:37 - | -32 | static_assertions::assert_impl_all!(TestType: core::fmt::Display); - | ^^^^^^^^ `TestType` cannot be formatted with the default formatter - | - = help: the trait `Display` is not implemented for `TestType` - = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead -note: required by a bound in `assert_impl_all` - --> $DIR/enum_prefix_missing.rs:32:1 - | -32 | static_assertions::assert_impl_all!(TestType: core::fmt::Display); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all` - = note: this error originates in the macro `static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/vendor/displaydoc/tests/no_std/multi_line.rs b/vendor/displaydoc/tests/no_std/multi_line.rs deleted file mode 100644 index ca4215cd..00000000 --- a/vendor/displaydoc/tests/no_std/multi_line.rs +++ /dev/null @@ -1,37 +0,0 @@ -#![cfg_attr(not(feature = "std"), allow(internal_features), feature(lang_items, start))] -#![cfg_attr(not(feature = "std"), no_std)] - -#[cfg_attr(not(feature = "std"), start)] -fn start(_argc: isize, _argv: *const *const u8) -> isize { - 0 -} -#[lang = "eh_personality"] -#[no_mangle] -#[cfg(not(feature = "std"))] -pub extern "C" fn rust_eh_personality() {} -#[panic_handler] -#[cfg(not(feature = "std"))] -fn panic(_info: &core::panic::PanicInfo) -> ! { - unsafe { - libc::abort(); - } -} - -use displaydoc::Display; - -/// this type is pretty swell -#[derive(Display)] -enum TestType { - /// This one is okay - Variant1, - - /// Multi - /// line - /// doc. - Variant2, -} - -static_assertions::assert_impl_all!(TestType: core::fmt::Display); - -#[cfg(feature = "std")] -fn main() {} diff --git a/vendor/displaydoc/tests/no_std/multi_line.stderr b/vendor/displaydoc/tests/no_std/multi_line.stderr deleted file mode 100644 index f3d77b9e..00000000 --- a/vendor/displaydoc/tests/no_std/multi_line.stderr +++ /dev/null @@ -1,22 +0,0 @@ -error: proc-macro derive panicked - --> $DIR/multi_line.rs:23:10 - | -23 | #[derive(Display)] - | ^^^^^^^ - | - = help: message: Multi-line comments are disabled by default by displaydoc. Please consider using block doc comments (/** */) or adding the #[ignore_extra_doc_attributes] attribute to your type next to the derive. - -error[E0277]: `TestType` doesn't implement `Display` - --> $DIR/multi_line.rs:34:37 - | -34 | static_assertions::assert_impl_all!(TestType: core::fmt::Display); - | ^^^^^^^^ `TestType` cannot be formatted with the default formatter - | - = help: the trait `Display` is not implemented for `TestType` - = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead -note: required by a bound in `assert_impl_all` - --> $DIR/multi_line.rs:34:1 - | -34 | static_assertions::assert_impl_all!(TestType: core::fmt::Display); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all` - = note: this error originates in the macro `static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/vendor/displaydoc/tests/no_std/multi_line_allow.rs b/vendor/displaydoc/tests/no_std/multi_line_allow.rs deleted file mode 100644 index 84676817..00000000 --- a/vendor/displaydoc/tests/no_std/multi_line_allow.rs +++ /dev/null @@ -1,38 +0,0 @@ -#![cfg_attr(not(feature = "std"), allow(internal_features), feature(lang_items, start))] -#![cfg_attr(not(feature = "std"), no_std)] - -#[cfg_attr(not(feature = "std"), start)] -fn start(_argc: isize, _argv: *const *const u8) -> isize { - 0 -} -#[lang = "eh_personality"] -#[no_mangle] -#[cfg(not(feature = "std"))] -pub extern "C" fn rust_eh_personality() {} -#[panic_handler] -#[cfg(not(feature = "std"))] -fn panic(_info: &core::panic::PanicInfo) -> ! { - unsafe { - libc::abort(); - } -} - -use displaydoc::Display; - -/// this type is pretty swell -#[derive(Display)] -#[ignore_extra_doc_attributes] -enum TestType { - /// This one is okay - Variant1, - - /// Multi - /// line - /// doc. - Variant2, -} - -static_assertions::assert_impl_all!(TestType: core::fmt::Display); - -#[cfg(feature = "std")] -fn main() {} diff --git a/vendor/displaydoc/tests/no_std/with.rs b/vendor/displaydoc/tests/no_std/with.rs deleted file mode 100644 index 67aef473..00000000 --- a/vendor/displaydoc/tests/no_std/with.rs +++ /dev/null @@ -1,32 +0,0 @@ -#![feature(lang_items, start)] -#![no_std] - -#[start] -#[cfg(not(feature = "std"))] -fn start(_argc: isize, _argv: *const *const u8) -> isize { - 0 -} - -#[lang = "eh_personality"] -#[no_mangle] -#[cfg(not(feature = "std"))] -pub extern "C" fn rust_eh_personality() {} - -#[panic_handler] -#[cfg(not(feature = "std"))] -fn panic(_info: &core::panic::PanicInfo) -> ! { - unsafe { - libc::abort(); - } -} - -#[cfg(feature = "std")] -fn main() {} - -use displaydoc::Display; - -/// this type is pretty swell -#[derive(Display)] -struct FakeType; - -static_assertions::assert_impl_all!(FakeType: core::fmt::Display); diff --git a/vendor/displaydoc/tests/no_std/without.rs b/vendor/displaydoc/tests/no_std/without.rs deleted file mode 100644 index 04d4b8fa..00000000 --- a/vendor/displaydoc/tests/no_std/without.rs +++ /dev/null @@ -1,28 +0,0 @@ -#![cfg_attr(not(feature = "std"), allow(internal_features), feature(lang_items, start))] -#![cfg_attr(not(feature = "std"), no_std)] - -#[cfg_attr(not(feature = "std"), start)] -fn start(_argc: isize, _argv: *const *const u8) -> isize { - 0 -} -#[lang = "eh_personality"] -#[no_mangle] -#[cfg(not(feature = "std"))] -pub extern "C" fn rust_eh_personality() {} -#[panic_handler] -#[cfg(not(feature = "std"))] -fn panic(_info: &core::panic::PanicInfo) -> ! { - unsafe { - libc::abort(); - } -} - -use displaydoc::Display; - -/// this type is pretty swell -struct FakeType; - -static_assertions::assert_impl_all!(FakeType: core::fmt::Display); - -#[cfg(feature = "std")] -fn main() {} diff --git a/vendor/displaydoc/tests/no_std/without.stderr b/vendor/displaydoc/tests/no_std/without.stderr deleted file mode 100644 index a12edc4a..00000000 --- a/vendor/displaydoc/tests/no_std/without.stderr +++ /dev/null @@ -1,22 +0,0 @@ -warning: unused import: `displaydoc::Display` - --> $DIR/without.rs:20:5 - | -20 | use displaydoc::Display; - | ^^^^^^^^^^^^^^^^^^^ - | - = note: `#[warn(unused_imports)]` on by default - -error[E0277]: `FakeType` doesn't implement `Display` - --> $DIR/without.rs:25:37 - | -25 | static_assertions::assert_impl_all!(FakeType: core::fmt::Display); - | ^^^^^^^^ `FakeType` cannot be formatted with the default formatter - | - = help: the trait `Display` is not implemented for `FakeType` - = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead -note: required by a bound in `assert_impl_all` - --> $DIR/without.rs:25:1 - | -25 | static_assertions::assert_impl_all!(FakeType: core::fmt::Display); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all` - = note: this error originates in the macro `static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info) |
