This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2024-11-23 15:23:46 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
75fa9f6dec
rust
/
tests
/
ui
/
privacy
/
private-item-simple.rs
8 lines
85 B
Rust
Raw
Normal View
History
Unescape
Escape
rustc: Implement "priv" for simple items. Inherited privacy doesn't work yet. This probably requires a snapshot since it won't be backwards compatible. Additionally, two errors are printed instead of one. For this reason the test is XFAIL'd.
2012-08-18 00:55:34 +00:00
mod
a
{
Fix fallout
2013-08-08 03:20:06 +00:00
fn
f
(
)
{
}
rustc: Implement "priv" for simple items. Inherited privacy doesn't work yet. This probably requires a snapshot since it won't be backwards compatible. Additionally, two errors are printed instead of one. For this reason the test is XFAIL'd.
2012-08-18 00:55:34 +00:00
}
fn
main
(
)
{
Fix existing privacy/visibility violations This commit fixes all of the fallout of the previous commit which is an attempt to refine privacy. There were a few unfortunate leaks which now must be plugged, and the most horrible one is the current `shouldnt_be_public` module now inside `std::rt`. I think that this either needs a slight reorganization of the runtime, or otherwise it needs to just wait for the external users of these modules to get replaced with their `rt` implementations. Other fixes involve making things pub which should be pub, and otherwise updating error messages that now reference privacy instead of referencing an "unresolved name" (yay!).
2013-10-05 21:44:37 +00:00
a
::
f
(
)
;
//~ ERROR function `f` is private
rustc: Implement "priv" for simple items. Inherited privacy doesn't work yet. This probably requires a snapshot since it won't be backwards compatible. Additionally, two errors are printed instead of one. For this reason the test is XFAIL'd.
2012-08-18 00:55:34 +00:00
}
Reference in New Issue
Copy Permalink