diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6d7ed917d0..a787f7ec05 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,10 +19,6 @@ jobs: # - name: Ninja Install # run: pip install ninja - uses: actions/checkout@v3 - - name: Build tests - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose - name: Build examples run: | cd examples @@ -31,10 +27,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Build tests - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose - name: Build examples run: | cd examples @@ -43,10 +35,6 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v3 - - name: Build tests - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose - name: Build examples run: | cd examples diff --git a/vulkano-macros/src/lib.rs b/vulkano-macros/src/lib.rs index 9649f30e78..089558cf6d 100644 --- a/vulkano-macros/src/lib.rs +++ b/vulkano-macros/src/lib.rs @@ -21,8 +21,11 @@ mod derive_vertex; /// Derives the [`Vertex`] trait. /// /// [`Vertex`]: https://docs.rs/vulkano/latest/vulkano/pipeline/graphics/vertex_input/trait.Vertex.html +#[allow(unused, unreachable_code)] #[proc_macro_derive(Vertex, attributes(name, format))] pub fn derive_vertex(input: TokenStream) -> TokenStream { + panic!("{}", env!("CARGO_MANIFEST_DIR")); + let ast = parse_macro_input!(input as DeriveInput); derive_vertex::derive_vertex(ast) @@ -33,8 +36,11 @@ pub fn derive_vertex(input: TokenStream) -> TokenStream { /// Derives the [`BufferContents`] trait. /// /// [`BufferContents`]: https://docs.rs/vulkano/latest/vulkano/buffer/trait.BufferContents.html +#[allow(unused, unreachable_code)] #[proc_macro_derive(BufferContents)] pub fn derive_buffer_contents(input: TokenStream) -> TokenStream { + panic!("{}", env!("CARGO_MANIFEST_DIR")); + let ast = parse_macro_input!(input as DeriveInput); derive_buffer_contents::derive_buffer_contents(ast)