Skip to content

Commit

Permalink
Declare as no_std (no std:: imports are used) (#2)
Browse files Browse the repository at this point in the history
* Declare as no_std (no std:: imports are used)

* Update compile failure cases

Update expected stderr output for compile failure tests.

* Revert failure case output changes

Prefer stderr from stable to the nightly output.
Nightly will fail until the outputs are the same.

* Allow test failures on nightly

Allow tests to fail on nightly to changes in stderr on compile failures.


Co-authored-by: James <[email protected]>
  • Loading branch information
mehcode and Juici committed Nov 4, 2019
1 parent d2bbe07 commit 1fee2db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ script:

matrix:
include:
- rust: nightly
- rust: stable
env: ROLE=test
script:
- cargo test --all-features --release
- rust: stable
allow_failures:
- rust: nightly
env: ROLE=test
script:
- cargo test --all-features --release
allow_failures:
- rust: nightly
env: ROLE=clippy
script:
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
//! # Examples
//!
//! ```
//! extern crate wchar;
//!
//! use wchar::{wch, wch_c};
//!
//! // Equivalent to `#define RUST L"Rust"` in C.
Expand All @@ -25,6 +23,8 @@
//! assert_eq!(ALSO_RUST, &[0x0052, 0x0075, 0x0073, 0x0074, 0x0000]);
//! ```
#![no_std]

use proc_macro_hack::proc_macro_hack;

/// Generate a UTF-16 wide string from the given string literal.
Expand Down

0 comments on commit 1fee2db

Please sign in to comment.