Skip to content

Implement extern mod a = "b/c/d"; - #8176

Closed
catamorphism wants to merge 4 commits into
rust-lang:masterfrom
catamorphism:rustpkg-extern-mod
Closed

catamorphism wants to merge 4 commits into
rust-lang:masterfrom
catamorphism:rustpkg-extern-mod

Conversation

@catamorphism

Copy link
Copy Markdown
Contributor

r? @graydon Also, notably, make rustpkgtest depend on the rustpkg executable (otherwise, tests that shell out to rustpgk might run when rustpkg doesn't exist).

bors added a commit that referenced this pull request Aug 2, 2013
…phism

r? @graydon Also, notably, make rustpkgtest depend on the rustpkg executable (otherwise, tests that shell out to rustpgk might run when rustpkg doesn't exist).
Comment thread src/librustc/back/link.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be foreach p in pkg_id.iter() { now.

@thestinger

Copy link
Copy Markdown
Contributor

@catamorphism: seems that this needs another rebase, and also a search/replace of foreach to for now that it's on the way out

This commit allows you to write:

 extern mod x = "a/b/c";

which means rustc will search in the RUST_PATH for a package with
ID a/b/c, and bind it to the name `x` if it's found.

Incidentally, move get_relative_to from back::rpath into std::path
Get rid of special cases for names beginning with "rust-" or
containing hyphens, and just store a Path in a package ID. The Rust-identifier
for the crate is none of rustpkg's business.
bors added a commit that referenced this pull request Aug 9, 2013
…phism

r? @graydon Also, notably, make rustpkgtest depend on the rustpkg executable (otherwise, tests that shell out to rustpgk might run when rustpkg doesn't exist).
@bors bors closed this Aug 10, 2013
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
8176: Cleanup r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants