diff options
| author | Ryan Leung <rleungx@gmail.com> | 2018-04-28 15:08:58 +0800 |
|---|---|---|
| committer | Seiichi Uchida <seuchida@gmail.com> | 2018-04-28 16:08:58 +0900 |
| commit | fb9a5add9b651d64ecf365ade61d83d76fd6b307 (patch) | |
| tree | cdf9351a18606562427ba8afc7e262575edec942 /src | |
| parent | d19fc450c06cd480ef2b9e1031b55ff10df080a7 (diff) | |
add rustc_target to dependencies (#2660)
Diffstat (limited to 'src')
| -rw-r--r-- | src/items.rs | 3 | ||||
| -rw-r--r-- | src/lib.rs | 1 | ||||
| -rw-r--r-- | src/utils.rs | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/items.rs b/src/items.rs index 80e837ed904..f68fb890961 100644 --- a/src/items.rs +++ b/src/items.rs @@ -15,9 +15,10 @@ use std::cmp::{min, Ordering}; use config::lists::*; use regex::Regex; +use rustc_target::spec::abi; use syntax::codemap::{self, BytePos, Span}; use syntax::visit; -use syntax::{abi, ast, ptr, symbol}; +use syntax::{ast, ptr, symbol}; use codemap::{LineRangeUtils, SpanUtils}; use comment::{combine_strs_with_missing_comments, contains_comment, recover_comment_removed, diff --git a/src/lib.rs b/src/lib.rs index b272402b20f..f43056df408 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,6 +29,7 @@ extern crate lazy_static; #[macro_use] extern crate log; extern crate regex; +extern crate rustc_target; extern crate serde; #[macro_use] extern crate serde_derive; diff --git a/src/utils.rs b/src/utils.rs index 2493c9a5c74..115aee7dd2b 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -10,10 +10,11 @@ use std::borrow::Cow; +use rustc_target::spec::abi; use syntax::ast::{self, Attribute, CrateSugar, MetaItem, MetaItemKind, NestedMetaItem, NestedMetaItemKind, Path, Visibility, VisibilityKind}; use syntax::codemap::{BytePos, Span, NO_EXPANSION}; -use syntax::{abi, ptr}; +use syntax::ptr; use config::Color; use rewrite::RewriteContext; |
