mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
Remove rustc_metadata_utils, which contains only one function
This commit is contained in:
@@ -20,6 +20,6 @@ rustc = { path = "../librustc" }
|
||||
rustc_allocator = { path = "../librustc_allocator" }
|
||||
rustc_target = { path = "../librustc_target" }
|
||||
rustc_data_structures = { path = "../librustc_data_structures" }
|
||||
rustc_metadata = { path = "../librustc_metadata" }
|
||||
rustc_mir = { path = "../librustc_mir" }
|
||||
rustc_incremental = { path = "../librustc_incremental" }
|
||||
rustc_metadata_utils = { path = "../librustc_metadata_utils" }
|
||||
|
||||
@@ -35,12 +35,12 @@
|
||||
extern crate rustc;
|
||||
extern crate rustc_allocator;
|
||||
extern crate rustc_target;
|
||||
extern crate rustc_metadata;
|
||||
extern crate rustc_mir;
|
||||
extern crate rustc_incremental;
|
||||
extern crate syntax;
|
||||
extern crate syntax_pos;
|
||||
#[macro_use] extern crate rustc_data_structures;
|
||||
extern crate rustc_metadata_utils;
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
use std::path::{Path, PathBuf};
|
||||
use syntax::{ast, attr};
|
||||
use syntax_pos::Span;
|
||||
use rustc_metadata_utils::validate_crate_name;
|
||||
|
||||
pub fn out_filename(sess: &Session,
|
||||
crate_type: config::CrateType,
|
||||
@@ -52,7 +51,7 @@ pub fn find_crate_name(sess: Option<&Session>,
|
||||
attrs: &[ast::Attribute],
|
||||
input: &Input) -> String {
|
||||
let validate = |s: String, span: Option<Span>| {
|
||||
validate_crate_name(sess, &s, span);
|
||||
::rustc_metadata::validate_crate_name(sess, &s, span);
|
||||
s
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user