Skip to content
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

imported modules aren't exported #268

Closed
marijnh opened this issue Mar 11, 2011 · 1 comment
Closed

imported modules aren't exported #268

marijnh opened this issue Mar 11, 2011 · 1 comment

Comments

@marijnh
Copy link
Contributor

marijnh commented Mar 11, 2011

If I have, in mod1:

import foo = x.y;

And then in another mod try to refer to mod1.foo.[something], I get (with rustboot) "error: the name 'foo' can't be found in the module".

Maybe this is by design, but I'd argue that it'd be very good to have this supported (and that it's not hard to support). I ran into this trying to factor out the duplicated native modules in lib/linux_os.rs and lib/macosx_os.rs.

@graydon
Copy link
Contributor

graydon commented Mar 12, 2011

Supported in rustc; buggy in rustboot. Unfortunately I don't think we can easily fix it in rustboot. Need to stick with either redundant declarations or compiler-conditional crate components until after we bootstrap.

oli-obk added a commit to oli-obk/rust that referenced this issue Sep 19, 2017
Split up miri into the librustc_mir and bin parts
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
linux: Add prlimit(2) and prlimit64(2)

As with `getrlimit` and `setrlimit`, the glibc wrappers have a non-`int`
for the `resource` argument, eg:

    extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
                        const struct rlimit *__new_limit,
                        struct rlimit *__old_limit) __THROW;
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
djtech-dev pushed a commit to djtech-dev/rust that referenced this issue Dec 9, 2021
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
This issue was closed.
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

No branches or pull requests

2 participants