Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/79496.sh: fixed with errors #1514

Merged
merged 1 commit into from
Feb 27, 2023
Merged

ices/79496.sh: fixed with errors #1514

merged 1 commit into from
Feb 27, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#79496

#!/bin/bash

cat > out.rs <<'EOF'

#![crate_type="proc-macro"]

extern crate proc_macro;
use proc_macro::TokenStream;

#[proc_macro_derive()]
pub fn some_derive(_: TokenStream) -> TokenStream {
    TokenStream::new()
}


EOF

rustdoc --edition=2021 out.rs
=== stdout ===
=== stderr ===
error: the `#[proc_macro_derive]` attribute is only usable with crates of the `proc-macro` crate type
 --> out.rs:7:1
  |
7 | #[proc_macro_derive()]
  | ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

==============

=== stdout ===
=== stderr ===
error: the `#[proc_macro_derive]` attribute is only usable with crates of the `proc-macro` crate type
 --> out.rs:7:1
  |
7 | #[proc_macro_derive()]
  | ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

==============
@JohnTitor JohnTitor merged commit 612060b into master Feb 27, 2023
@JohnTitor JohnTitor deleted the autofix/ices/79496.sh branch February 27, 2023 08:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants