-
Notifications
You must be signed in to change notification settings - Fork 13.4k
#[test]
attributes in modules defined in functions are ignored
#19694
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
Comments
The relevant code is in // We don't want to recurse into anything other than mods, since
// mods or tests inside of functions will break things
let res = match i.node {
ast::ItemMod(..) => fold::noop_fold_item(i, self),
_ => SmallVector::one(i),
}; I'm not sure what things it'll break, though. @sfackler do you know anything about this? |
There's no way for anything outside of the function to access |
That makes sense. Should |
That seems reasonable. On Thu, Dec 11, 2014, 1:18 AM Chris Wong [email protected] wrote:
|
Closing in favor of rust-lang/rfcs#612 |
I'm not sure if this is a bug or intended behavior, but if its the latter, the compiler messages should probably explain it somehow.
The text was updated successfully, but these errors were encountered: