Skip to content

Commit

Permalink
rustc_back: move dynamic_lib to rustc_metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
irinagpopa committed Dec 4, 2017
1 parent d6f7035 commit dda924a
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/librustc_back/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@

#![feature(box_syntax)]
#![feature(const_fn)]
#![feature(libc)]

extern crate syntax;
extern crate libc;
extern crate rand;
extern crate serialize;
#[macro_use] extern crate log;
Expand All @@ -40,7 +38,6 @@ extern crate serialize as rustc_serialize; // used by deriving

pub mod tempdir;
pub mod target;
pub mod dynamic_lib;

use std::str::FromStr;

Expand Down
2 changes: 1 addition & 1 deletion src/librustc_metadata/creader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ impl<'a> CrateLoader<'a> {
use std::{env, mem};
use proc_macro::TokenStream;
use proc_macro::__internal::Registry;
use rustc_back::dynamic_lib::DynamicLibrary;
use dynamic_lib::DynamicLibrary;
use syntax_ext::deriving::custom::ProcMacroDerive;
use syntax_ext::proc_macro_impl::{AttrProcMacro, BangProcMacro};

Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions src/librustc_metadata/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
#![feature(box_patterns)]
#![feature(conservative_impl_trait)]
#![feature(i128_type)]
#![feature(libc)]
#![feature(proc_macro_internals)]
#![feature(quote)]
#![feature(rustc_diagnostic_macros)]
#![feature(specialization)]
#![feature(rustc_private)]

extern crate libc;
#[macro_use]
extern crate log;
#[macro_use]
Expand Down Expand Up @@ -54,6 +56,7 @@ mod link_args;

pub mod creader;
pub mod cstore;
pub mod dynamic_lib;
pub mod locator;

__build_diagnostic_array! { librustc_metadata, DIAGNOSTICS }
1 change: 0 additions & 1 deletion src/librustc_plugin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ crate-type = ["dylib"]

[dependencies]
rustc = { path = "../librustc" }
rustc_back = { path = "../librustc_back" }
rustc_metadata = { path = "../librustc_metadata" }
syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" }
Expand Down
1 change: 0 additions & 1 deletion src/librustc_plugin/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
#[macro_use] extern crate syntax;

extern crate rustc;
extern crate rustc_back;
extern crate rustc_metadata;
extern crate syntax_pos;
extern crate rustc_errors as errors;
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_plugin/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl<'a> PluginLoader<'a> {
span: Span,
path: PathBuf,
symbol: String) -> PluginRegistrarFun {
use rustc_back::dynamic_lib::DynamicLibrary;
use rustc_metadata::dynamic_lib::DynamicLibrary;

// Make sure the path contains a / or the linker will search for it.
let path = env::current_dir().unwrap().join(&path);
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use std::mem;
use std::string::String;
use std::path::PathBuf;

use rustc_back::dynamic_lib as dl;
use rustc_metadata::dynamic_lib as dl;

pub type PluginResult = clean::Crate;
pub type PluginCallback = fn (clean::Crate) -> PluginResult;
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use rustc::hir::intravisit;
use rustc::session::{self, CompileIncomplete, config};
use rustc::session::config::{OutputType, OutputTypes, Externs};
use rustc::session::search_paths::{SearchPaths, PathKind};
use rustc_back::dynamic_lib::DynamicLibrary;
use rustc_metadata::dynamic_lib::DynamicLibrary;
use rustc_back::tempdir::TempDir;
use rustc_driver::{self, driver, Compilation};
use rustc_driver::driver::phase_2_configure_and_expand;
Expand Down
4 changes: 2 additions & 2 deletions src/test/run-make/extern-fn-reachable/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

#![feature(rustc_private)]

extern crate rustc_back;
extern crate rustc_metadata;

use rustc_back::dynamic_lib::DynamicLibrary;
use rustc_metadata::dynamic_lib::DynamicLibrary;
use std::path::Path;

pub fn main() {
Expand Down
4 changes: 2 additions & 2 deletions src/test/run-pass-fulldeps/auxiliary/linkage-visibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
// do the runtime check that these functions aren't exported.
#![allow(private_no_mangle_fns)]

extern crate rustc_back;
extern crate rustc_metadata;

use rustc_back::dynamic_lib::DynamicLibrary;
use rustc_metadata::dynamic_lib::DynamicLibrary;

#[no_mangle]
pub fn foo() { bar(); }
Expand Down

0 comments on commit dda924a

Please sign in to comment.