Skip to content
This repository was archived by the owner on Oct 30, 2019. It is now read-only.

fix attr tests #23

Merged
merged 1 commit into from
May 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
rust_version: nightly
- bash: |
export RUST_BACKTRACE=1
cargo test --all --exclude runtime-attributes || exit
cargo test --all || exit
displayName: "Run cargo test"
- job: check_benches
pool:
Expand Down
28 changes: 0 additions & 28 deletions ci/test.yml

This file was deleted.

7 changes: 4 additions & 3 deletions runtime-attributes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ use syn::spanned::Spanned;
///
/// # Examples
///
/// ```
/// ```ignore
/// #![feature(async_await)]
///
/// #[runtime::main]
/// async fn main() -> std::io::Result<()> {
/// Ok(())
/// }
/// ```
#[cfg(not(test))] // NOTE: exporting main breaks tests, we should file an issue.
#[proc_macro_attribute]
pub fn main(attr: TokenStream, item: TokenStream) -> TokenStream {
let rt = if attr.is_empty() {
Expand Down Expand Up @@ -74,7 +75,7 @@ pub fn main(attr: TokenStream, item: TokenStream) -> TokenStream {
///
/// # Examples
///
/// ```
/// ```ignore
/// #![feature(async_await)]
///
/// #[runtime::test]
Expand Down Expand Up @@ -118,7 +119,7 @@ pub fn test(attr: TokenStream, item: TokenStream) -> TokenStream {
///
/// # Examples
///
/// ```
/// ```ignore
/// #![feature(async_await, await_macro, test)]
///
/// extern crate test;
Expand Down