Skip to content

Cross-crate stability attributes on tuple structs are ignored #11741

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

Closed
dmanescu opened this issue Jan 23, 2014 · 0 comments · Fixed by #11932
Closed

Cross-crate stability attributes on tuple structs are ignored #11741

dmanescu opened this issue Jan 23, 2014 · 0 comments · Fixed by #11932
Labels
A-lints Area: Lints (warnings about flaws in source code) such as unused_mut.

Comments

@dmanescu
Copy link
Contributor

In file test_experimental.rs:

#[deny(experimental)];
extern mod test_experimental_crate;

fn main() {
    let _ = test_experimental_crate::Struct { x: 1 };
    let _ = test_experimental_crate::Tuple(1);
}

In file test_experimental_crate.rs:

#[experimental]
pub struct Struct { x: int }

#[experimental]
pub struct Tuple(int);

Compiler issues this:

test_experimental.rs:15:13: 15:38 error: use of experimental item
test_experimental.rs:15     let _ = test_experimental_crate::Struct { x: 1 };
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_experimental.rs:11:8: 11:20 note: lint level defined here
test_experimental.rs:11 #[deny(experimental)];
                                            ^~~~~~~~~~~~
error: aborting due to previous error
bors added a commit that referenced this issue Feb 1, 2014
…lexcrichton

Fixes #11741
Added tests and removed xfail-fast from run-pass/simd-experimental which is now fixed (see #11738).
@bors bors closed this as completed in bc8983a Feb 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lints Area: Lints (warnings about flaws in source code) such as unused_mut.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant