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

Commit 86aad62

Browse files
authored
fix attr tests (#23)
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent e09dda7 commit 86aad62

File tree

3 files changed

+5
-32
lines changed

3 files changed

+5
-32
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
rust_version: nightly
1717
- bash: |
1818
export RUST_BACKTRACE=1
19-
cargo test --all --exclude runtime-attributes || exit
19+
cargo test --all || exit
2020
displayName: "Run cargo test"
2121
- job: check_benches
2222
pool:

ci/test.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

runtime-attributes/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ use syn::spanned::Spanned;
1616
///
1717
/// # Examples
1818
///
19-
/// ```
19+
/// ```ignore
2020
/// #![feature(async_await)]
2121
///
2222
/// #[runtime::main]
2323
/// async fn main() -> std::io::Result<()> {
2424
/// Ok(())
2525
/// }
2626
/// ```
27+
#[cfg(not(test))] // NOTE: exporting main breaks tests, we should file an issue.
2728
#[proc_macro_attribute]
2829
pub fn main(attr: TokenStream, item: TokenStream) -> TokenStream {
2930
let rt = if attr.is_empty() {
@@ -74,7 +75,7 @@ pub fn main(attr: TokenStream, item: TokenStream) -> TokenStream {
7475
///
7576
/// # Examples
7677
///
77-
/// ```
78+
/// ```ignore
7879
/// #![feature(async_await)]
7980
///
8081
/// #[runtime::test]
@@ -118,7 +119,7 @@ pub fn test(attr: TokenStream, item: TokenStream) -> TokenStream {
118119
///
119120
/// # Examples
120121
///
121-
/// ```
122+
/// ```ignore
122123
/// #![feature(async_await, await_macro, test)]
123124
///
124125
/// extern crate test;

0 commit comments

Comments
 (0)