-
-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partially work around ridiculous rust-analyzer behavior
- Loading branch information
Showing
7 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,69 @@ | ||
#[doc(hidden)] | ||
pub use std::clone::Clone; | ||
#[doc(hidden)] | ||
pub use std::cmp::{Eq, PartialEq}; | ||
#[doc(hidden)] | ||
pub use std::concat; | ||
#[doc(hidden)] | ||
pub use std::default::Default; | ||
pub use std::fmt::{self, Debug, Formatter}; | ||
#[doc(hidden)] | ||
pub use std::fmt::Debug; | ||
#[doc(hidden)] | ||
pub use std::hash::{Hash, Hasher}; | ||
#[doc(hidden)] | ||
pub use std::marker::Copy; | ||
#[doc(hidden)] | ||
pub use std::option::Option::{None, Some}; | ||
pub use std::primitive::{bool, str}; | ||
#[doc(hidden)] | ||
pub use std::result::Result::{Err, Ok}; | ||
#[doc(hidden)] | ||
pub use std::stringify; | ||
|
||
#[doc(hidden)] | ||
pub type Formatter<'a> = std::fmt::Formatter<'a>; | ||
#[doc(hidden)] | ||
pub type FmtResult = std::fmt::Result; | ||
|
||
#[doc(hidden)] | ||
pub type bool = std::primitive::bool; | ||
#[doc(hidden)] | ||
pub type str = std::primitive::str; | ||
|
||
#[cfg(feature = "printing")] | ||
#[doc(hidden)] | ||
pub use quote; | ||
|
||
pub use proc_macro2::{Span, TokenStream as TokenStream2}; | ||
#[doc(hidden)] | ||
pub type Span = proc_macro2::Span; | ||
#[doc(hidden)] | ||
pub type TokenStream2 = proc_macro2::TokenStream; | ||
|
||
#[cfg(feature = "parsing")] | ||
#[doc(hidden)] | ||
pub use crate::group::{parse_braces, parse_brackets, parse_parens}; | ||
|
||
#[doc(hidden)] | ||
pub use crate::span::IntoSpans; | ||
|
||
#[cfg(all(feature = "parsing", feature = "printing"))] | ||
#[doc(hidden)] | ||
pub use crate::parse_quote::parse as parse_quote; | ||
|
||
#[cfg(feature = "parsing")] | ||
#[doc(hidden)] | ||
pub use crate::token::parsing::{peek_punct, punct as parse_punct}; | ||
|
||
#[cfg(feature = "printing")] | ||
#[doc(hidden)] | ||
pub use crate::token::printing::punct as print_punct; | ||
|
||
#[cfg(feature = "proc-macro")] | ||
pub use proc_macro::TokenStream; | ||
#[doc(hidden)] | ||
pub type TokenStream = proc_macro::TokenStream; | ||
|
||
#[cfg(feature = "printing")] | ||
#[doc(hidden)] | ||
pub use quote::{ToTokens, TokenStreamExt}; | ||
|
||
#[doc(hidden)] | ||
pub struct private(pub(crate) ()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters