Skip to content

Guard unstable proc_macro things behind nightly feature #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Aug 23, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Use crate:: prefixes in use paths everywhere
  • Loading branch information
LukasKalbertodt committed Jul 30, 2018
commit e558b5602c1a581c8bf7d236cb4d51fef7ad1d2c
2 changes: 1 addition & 1 deletion src/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use syn::{
};

use crate::{
analyze::{find_suitable_param_names},
analyze::find_suitable_param_names,
diag::{DiagnosticExt, SpanExt},
proxy::ProxyType,
spanned::Spanned
Expand Down
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ mod gen;
mod proxy;
mod spanned;

use diag::SpanExt;
use spanned::Spanned;
use crate::{
diag::SpanExt,
spanned::Spanned,
};


/// See crate documentation for more information.
Expand Down
2 changes: 1 addition & 1 deletion src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::iter::Peekable;

use proc_macro::{token_stream, TokenStream, TokenTree};

use diag::SpanExt;
use crate::diag::SpanExt;

/// Types for which a trait can automatically be implemented.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
Expand Down