Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Explicit 'extern crate proc_macro;' is needed for stable channel #5690

Closed
wants to merge 1 commit into from
Closed
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
1 change: 1 addition & 0 deletions client/chain-spec/derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

mod impls;

extern crate proc_macro;
use proc_macro::TokenStream;

#[proc_macro_derive(ChainSpecGroup)]
Expand Down
1 change: 1 addition & 0 deletions frame/staking/reward-curve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
mod log;

use log::log2;
extern crate proc_macro;
use proc_macro::TokenStream;
use proc_macro2::{TokenStream as TokenStream2, Span};
use proc_macro_crate::crate_name;
Expand Down
1 change: 1 addition & 0 deletions frame/support/procedural/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
mod storage;
mod construct_runtime;

extern crate proc_macro;
use proc_macro::TokenStream;

/// Declares strongly-typed wrappers around codec-compatible types in storage.
Expand Down
1 change: 1 addition & 0 deletions frame/support/procedural/tools/derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#![recursion_limit = "128"]

extern crate proc_macro;
use proc_macro::TokenStream;
use proc_macro2::Span;
use syn::parse_macro_input;
Expand Down
1 change: 1 addition & 0 deletions primitives/api/proc-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#![recursion_limit = "512"]

extern crate proc_macro;
use proc_macro::TokenStream;

mod impl_runtime_apis;
Expand Down
1 change: 1 addition & 0 deletions primitives/debug-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

mod impls;

extern crate proc_macro;
use proc_macro::TokenStream;

#[proc_macro_derive(RuntimeDebug)]
Expand Down
1 change: 1 addition & 0 deletions primitives/phragmen/compact/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

//! Proc macro for phragmen compact assignment.

extern crate proc_macro;
use proc_macro::TokenStream;
use proc_macro2::{TokenStream as TokenStream2, Span, Ident};
use proc_macro_crate::crate_name;
Expand Down
1 change: 1 addition & 0 deletions primitives/sr-api/proc-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#![recursion_limit = "512"]

extern crate proc_macro;
use proc_macro::TokenStream;

mod impl_runtime_apis;
Expand Down