Skip to content

Rename librustsyntax to libsyntax #2465

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 6 additions & 6 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,16 @@ CFG_RUSTLLVM :=$(call CFG_LIB_NAME,rustllvm)
CFG_CORELIB :=$(call CFG_LIB_NAME,core)
CFG_STDLIB :=$(call CFG_LIB_NAME,std)
CFG_LIBRUSTC :=$(call CFG_LIB_NAME,rustc)
CFG_LIBRUSTSYNTAX :=$(call CFG_LIB_NAME,rustsyntax)
CFG_LIBSYNTAX :=$(call CFG_LIB_NAME,syntax)

STDLIB_GLOB :=$(call CFG_LIB_GLOB,std)
CORELIB_GLOB :=$(call CFG_LIB_GLOB,core)
LIBRUSTC_GLOB :=$(call CFG_LIB_GLOB,rustc)
LIBRUSTSYNTAX_GLOB :=$(call CFG_LIB_GLOB,rustsyntax)
LIBSYNTAX_GLOB :=$(call CFG_LIB_GLOB,syntax)
STDLIB_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,std)
CORELIB_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,core)
LIBRUSTC_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,rustc)
LIBRUSTSYNTAX_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,rustsyntax)
LIBSYNTAX_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,syntax)

# version-string calculation
CFG_GIT_DIR := $(CFG_SRC_DIR).git
Expand Down Expand Up @@ -200,9 +200,9 @@ COMPILER_INPUTS := $(filter-out $(S)src/rustc/driver/rustc.rs, \
$(wildcard $(addprefix $(S)src/rustc/, \
rustc.rc *.rs */*.rs */*/*.rs */*/*/*.rs)))

LIBRUSTSYNTAX_CRATE := $(S)src/librustsyntax/rustsyntax.rc
LIBRUSTSYNTAX_INPUTS := $(wildcard $(addprefix $(S)src/librustsyntax/, \
rustsyntax.rc *.rs */*.rs */*/*.rs))
LIBSYNTAX_CRATE := $(S)src/libsyntax/syntax.rc
LIBSYNTAX_INPUTS := $(wildcard $(addprefix $(S)src/libsyntax/, \
syntax.rc *.rs */*.rs */*/*.rs))

RUSTC_INPUTS := $(S)src/rustc/driver/rustc.rs

Expand Down
8 changes: 4 additions & 4 deletions mk/clean.mk
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ clean$(1)_H_$(2):
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_CORELIB)
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_STDLIB)
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_LIBRUSTC)
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_LIBRUSTSYNTAX)
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_LIBSYNTAX)
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CORELIB_GLOB)
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(STDLIB_GLOB)
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(LIBRUSTC_GLOB)
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(LIBRUSTSYNTAX_GLOB)
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(LIBSYNTAX_GLOB)
$(Q)rm -f $$(HLIB$(1)_H_$(2))/$(CFG_RUSTLLVM)
$(Q)rm -f $$(HLIB$(1)_H_$(2))/libstd.rlib

Expand All @@ -87,11 +87,11 @@ clean$(1)_T_$(2)_H_$(3):
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_CORELIB)
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB)
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTC)
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTSYNTAX)
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBSYNTAX)
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CORELIB_GLOB)
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(STDLIB_GLOB)
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(LIBRUSTC_GLOB)
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(LIBRUSTSYNTAX_GLOB)
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(LIBSYNTAX_GLOB)
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_RUSTLLVM)
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/libstd.rlib
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/libmorestack.a
Expand Down
2 changes: 1 addition & 1 deletion mk/dist.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ PKG_FILES := \
etc \
fuzzer \
libcore \
librustsyntax \
libsyntax \
libstd \
rt \
rustdoc \
Expand Down
10 changes: 5 additions & 5 deletions mk/host.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $$(HBIN$(2)_H_$(4))/rustc$$(X): \

$$(HLIB$(2)_H_$(4))/$$(CFG_LIBRUSTC): \
$$(TLIB$(1)_T_$(4)_H_$(3))/$$(CFG_LIBRUSTC) \
$$(HLIB$(2)_H_$(4))/$$(CFG_LIBRUSTSYNTAX) \
$$(HLIB$(2)_H_$(4))/$$(CFG_LIBSYNTAX) \
$$(HLIB$(2)_H_$(4))/$$(CFG_RUNTIME) \
$$(HLIB$(2)_H_$(4))/$$(CFG_RUSTLLVM) \
$$(HCORELIB_DEFAULT$(2)_H_$(3)) \
Expand All @@ -34,16 +34,16 @@ $$(HLIB$(2)_H_$(4))/$$(CFG_LIBRUSTC): \
$$(TLIB$(1)_T_$(4)_H_$(3))/$(LIBRUSTC_DSYM_GLOB) \
$$(HLIB$(2)_H_$(4))

$$(HLIB$(2)_H_$(4))/$$(CFG_LIBRUSTSYNTAX): \
$$(TLIB$(1)_T_$(4)_H_$(3))/$$(CFG_LIBRUSTSYNTAX) \
$$(HLIB$(2)_H_$(4))/$$(CFG_LIBSYNTAX): \
$$(TLIB$(1)_T_$(4)_H_$(3))/$$(CFG_LIBSYNTAX) \
$$(HLIB$(2)_H_$(4))/$$(CFG_RUNTIME) \
$$(HLIB$(2)_H_$(4))/$$(CFG_RUSTLLVM) \
$$(HCORELIB_DEFAULT$(2)_H_$(3)) \
$$(HSTDLIB_DEFAULT$(2)_H_$(3))
@$$(call E, cp: $$@)
$$(Q)cp $$< $$@
$$(Q)cp -R $$(TLIB$(1)_T_$(4)_H_$(3))/$(LIBRUSTSYNTAX_GLOB) \
$$(TLIB$(1)_T_$(4)_H_$(3))/$(LIBRUSTSYNTAX_DSYM_GLOB) \
$$(Q)cp -R $$(TLIB$(1)_T_$(4)_H_$(3))/$(LIBSYNTAX_GLOB) \
$$(TLIB$(1)_T_$(4)_H_$(3))/$(LIBSYNTAX_DSYM_GLOB) \
$$(HLIB$(2)_H_$(4))

$$(HLIB$(2)_H_$(4))/$$(CFG_RUNTIME): \
Expand Down
6 changes: 3 additions & 3 deletions mk/install.mk
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ install-target-$(1)-host-$(2): $$(SREQ$$(ISTAGE)_T_$(1)_H_$(2))
$$(Q)$$(call INSTALL_LIB, \
$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(LIBRUSTC_GLOB))
$$(Q)$$(call INSTALL_LIB, \
$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(LIBRUSTSYNTAX_GLOB))
$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(LIBSYNTAX_GLOB))
$$(Q)$$(call INSTALL,$$(TL$(1)$(2)),$$(PTL$(1)$(2)),libmorestack.a)

endef
Expand Down Expand Up @@ -77,7 +77,7 @@ install-host: $(SREQ$(ISTAGE)_T_$(CFG_HOST_TRIPLE)_H_$(CFG_HOST_TRIPLE))
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(CORELIB_GLOB))
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(STDLIB_GLOB))
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBRUSTC_GLOB))
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBRUSTSYNTAX_GLOB))
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBSYNTAX_GLOB))
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUSTLLVM))
$(Q)$(call INSTALL,$(S)/man, \
$(PREFIX_ROOT)/share/man/man1,rustc.1)
Expand All @@ -98,7 +98,7 @@ uninstall:
$(call HOST_LIB_FROM_HL_GLOB,$(CORELIB_GLOB)) \
$(call HOST_LIB_FROM_HL_GLOB,$(STDLIB_GLOB)) \
$(call HOST_LIB_FROM_HL_GLOB,$(LIBRUSTC_GLOB)) \
$(call HOST_LIB_FROM_HL_GLOB,$(LIBRUSTSYNTAX_GLOB)) \
$(call HOST_LIB_FROM_HL_GLOB,$(LIBSYNTAX_GLOB)) \
; \
do rm -f $$i ; \
done
Expand Down
6 changes: 3 additions & 3 deletions mk/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ $$(TBIN$(1)_T_$(2)_H_$(3))/rustc$$(X): \

$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTC): \
$$(COMPILER_CRATE) $$(COMPILER_INPUTS) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTSYNTAX)
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBSYNTAX)
@$$(call E, compile_and_link: $$@)
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$< && touch $$@

$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTSYNTAX): \
$$(LIBRUSTSYNTAX_CRATE) $$(LIBRUSTSYNTAX_INPUTS) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBSYNTAX): \
$$(LIBSYNTAX_CRATE) $$(LIBSYNTAX_INPUTS) \
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_RUSTLLVM) \
$$(TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3)) \
Expand Down
2 changes: 1 addition & 1 deletion mk/tests.mk
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ define TEST_STAGEN
TEST_SREQ$(1)_T_$(2)_H_$(3) = \
$$(HBIN$(1)_H_$(3))/compiletest$$(X) \
$$(HSREQ$(1)_$(2)_$(3)) \
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTSYNTAX)
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBSYNTAX)


check-stage$(1)-T-$(2)-H-$(3): tidy \
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/cargo.rc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use core(vers = "0.2");
use std(vers = "0.2");
use rustc(vers = "0.2");
use syntax(name = "rustsyntax", vers = "0.2");
use syntax(vers = "0.2");

import core::*;

Expand Down
8 changes: 4 additions & 4 deletions src/etc/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,28 @@ def scrub(b):
"lib/libcore-*.so",
"lib/libstd-*.so",
"lib/librustc-*.so",
"lib/librustsyntax-*.so",
"lib/libsyntax-*.so",
"lib/librustrt.so",
"lib/librustllvm.so"],
"macos": ["bin/rustc",
"lib/libcore-*.dylib",
"lib/libstd-*.dylib",
"lib/librustc-*.dylib",
"lib/librustsyntax-*.dylib",
"lib/libsyntax-*.dylib",
"lib/librustrt.dylib",
"lib/librustllvm.dylib"],
"winnt": ["bin/rustc.exe",
"bin/core-*.dll",
"bin/std-*.dll",
"bin/rustc-*.dll",
"bin/rustsyntax-*.dll",
"bin/syntax-*.dll",
"bin/rustrt.dll",
"bin/rustllvm.dll"],
"freebsd": ["bin/rustc",
"lib/libcore-*.so",
"lib/libstd-*.so",
"lib/librustc-*.so",
"lib/librustsyntax-*.so",
"lib/libsyntax-*.so",
"lib/librustrt.so",
"lib/librustllvm.so"]
}
Expand Down
2 changes: 1 addition & 1 deletion src/fuzzer/fuzzer.rc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use core(vers = "0.2");
use std(vers = "0.2");
use syntax(name = "rustsyntax", vers = "0.2");
use syntax(vers = "0.2");

import core::*;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions src/librustsyntax/rustsyntax.rc → src/libsyntax/syntax.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#[link(name = "rustsyntax",
#[link(name = "syntax",
vers = "0.2",
uuid = "c2b79dd0-a437-4ec7-95f9-858d77808c2f")];
uuid = "9311401b-d6ea-4cd9-a1d9-61f89499c645")];



#[crate_type = "lib"];

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/rustc/driver/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use core(vers = "0.2");
use std(vers = "0.2");
use rustc(vers = "0.2");
use syntax(name = "rustsyntax", vers = "0.2");
use syntax(vers = "0.2");

import core::*;

Expand Down
2 changes: 1 addition & 1 deletion src/rustc/metadata/astencode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fn decode_inlined_item(cdata: cstore::crate_metadata,
alt ii {
ast::ii_item(i) {
#debug(">>> DECODED ITEM >>>\n%s\n<<< DECODED ITEM <<<",
rustsyntax::print::pprust::item_to_str(i));
syntax::print::pprust::item_to_str(i));
}
_ { }
}
Expand Down
2 changes: 1 addition & 1 deletion src/rustc/rustc.rc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use core(vers = "0.2");
use std(vers = "0.2");
use syntax(name = "rustsyntax", vers = "0.2");
use syntax(vers = "0.2");

import core::*;

Expand Down
2 changes: 1 addition & 1 deletion src/rustdoc/rustdoc.rc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use core(vers = "0.2");
use std(vers = "0.2");
use rustc(vers = "0.2");
use syntax(name = "rustsyntax", vers = "0.2");
use syntax(vers = "0.2");

import core::*;

Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/qquote-1.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// xfail-pretty

use std;
use syntax(name = "rustsyntax");
use syntax;

import io::*;

Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/qquote-2.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// xfail-pretty

use std;
use syntax(name = "rustsyntax");
use syntax;

import std::io::*;

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/issue-1926.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// xfail-test
// fails pretty printing for some reason
use syntax(name = "rustsyntax");
use syntax;
import syntax::diagnostic;
import syntax;
import syntax::ast;
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/qquote.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// xfail-pretty

use std;
use syntax(name = "rustsyntax");
use syntax;

import io::*;

Expand Down