Skip to content

Module export #340

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

Merged
merged 5 commits into from
May 1, 2011
Merged

Module export #340

merged 5 commits into from
May 1, 2011

Conversation

brson
Copy link
Contributor

@brson brson commented Apr 25, 2011

This patch implements module export, at least for the most basic cases. Please look at it and see if I'm on the right track. There may be more work yet for tag variants and native modules, and it doesn't do anything about crate exports.

The implementation looks inefficient since it loops over the view_items every time name lookup encounters a module, but it doesn't seem to have much impact on stage1 build times so I'm not that concerned.

brson added 5 commits May 1, 2011 16:57
An unexported foo.baz can't be resolved from inside foo when called as foo.baz
instead of just baz. This behavior may want to change eventually.
It's not actually involved in the fold so it can just be passed between the
functions that need it.
@brson brson merged commit a5ccead into rust-lang:master May 1, 2011
oli-obk added a commit to oli-obk/rust that referenced this pull request Sep 19, 2017
Remove `#[linkage(foo)]` statics from core miri
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this pull request Dec 12, 2017
Aaron1011 pushed a commit to Aaron1011/rust that referenced this pull request Oct 26, 2020
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this pull request Mar 7, 2023
carolynzech pushed a commit to carolynzech/rust that referenced this pull request May 7, 2025
This is an automated PR to merge library subtree updates from 2025-04-21
(rust-lang/rust@b8c54d6) to 2025-04-23
(rust-lang/rust@6bc57c6), inclusive.
This is a clean merge, no conflicts were detected. **Do not remove or
edit the following annotations:**
git-subtree-dir: library
git-subtree-split: 54a7b4f

---------

Signed-off-by: xizheyin <[email protected]>
Signed-off-by: Petros Angelatos <[email protected]>
Signed-off-by: Huang Qi <[email protected]>
Signed-off-by: Ayush Singh <[email protected]>
Signed-off-by: Alice Ryhl <[email protected]>
Co-authored-by: Matthias Krüger <[email protected]>
Co-authored-by: Frank King <[email protected]>
Co-authored-by: Mara Bos <[email protected]>
Co-authored-by: Daniel Henry-Mantilla <[email protected]>
Co-authored-by: Scott McMurray <[email protected]>
Co-authored-by: joboet <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: bors <[email protected]>
Co-authored-by: mejrs <[email protected]>
Co-authored-by: okaneco <[email protected]>
Co-authored-by: Jacob Pratt <[email protected]>
Co-authored-by: xizheyin <[email protected]>
Co-authored-by: Benoît du Garreau <[email protected]>
Co-authored-by: clubby789 <[email protected]>
Co-authored-by: Takayuki Maeda <[email protected]>
Co-authored-by: Daniel Bloom <[email protected]>
Co-authored-by: Trevor Gross <[email protected]>
Co-authored-by: Jake Wharton <[email protected]>
Co-authored-by: bjorn3 <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Co-authored-by: Guillaume Gomez <[email protected]>
Co-authored-by: Kornel <[email protected]>
Co-authored-by: Calder Coalson <[email protected]>
Co-authored-by: Stuart Cook <[email protected]>
Co-authored-by: Thalia Archibald <[email protected]>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: izarma <[email protected]>
Co-authored-by: Bennet Bleßmann <[email protected]>
Co-authored-by: Celina G. Val <[email protected]>
Co-authored-by: Jonathan Gruner <[email protected]>
Co-authored-by: Stan Manilov <[email protected]>
Co-authored-by: Gabriel Bjørnager Jensen <[email protected]>
Co-authored-by: lincot <[email protected]>
Co-authored-by: timesince <[email protected]>
Co-authored-by: Boxy <[email protected]>
Co-authored-by: oyvindln <[email protected]>
Co-authored-by: Alice Ryhl <[email protected]>
Co-authored-by: Folkert de Vries <[email protected]>
Co-authored-by: Bastian Kersting <[email protected]>
Co-authored-by: Petros Angelatos <[email protected]>
Co-authored-by: Jesus Checa Hidalgo <[email protected]>
Co-authored-by: Michael Howell <[email protected]>
Co-authored-by: Ricardo Fernández Serrata <[email protected]>
Co-authored-by: GenYuLi <[email protected]>
Co-authored-by: Chris Denton <[email protected]>
Co-authored-by: Amanieu d'Antras <[email protected]>
Co-authored-by: Sky <[email protected]>
Co-authored-by: Huang Qi <[email protected]>
Co-authored-by: Ayush Singh <[email protected]>
Co-authored-by: Jethro Beekman <[email protected]>
Co-authored-by: 0x79de <[email protected]>
Co-authored-by: binarycat <[email protected]>
Co-authored-by: Glyn Normington <[email protected]>
Co-authored-by: Tamir Duberstein <[email protected]>
Co-authored-by: Josh Triplett <[email protected]>
Co-authored-by: Bastian Kersting <[email protected]>
Co-authored-by: Lyndon Brown <[email protected]>
Co-authored-by: Kent Ross <[email protected]>
Co-authored-by: Noa <[email protected]>
Co-authored-by: Lieselotte <[email protected]>
Co-authored-by: Patrick Mooney <[email protected]>
Co-authored-by: Onè <[email protected]>
Co-authored-by: 王宇逸 <[email protected]>
Co-authored-by: gitbot <git@bot>
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.

1 participant