2024-02-26 12:03:06 -06:00
|
|
|
//@ check-pass
|
|
|
|
/// oli-obk added this test after messing up the interner logic
|
|
|
|
/// around mutability of nested allocations. This was not caught
|
|
|
|
/// by the test suite, but by trying to build stage2 rustc.
|
|
|
|
/// There is no real explanation for this test, as it was just
|
|
|
|
/// a bug during a refactoring.
|
|
|
|
|
|
|
|
pub struct Lint {
|
|
|
|
pub name: &'static str,
|
|
|
|
pub desc: &'static str,
|
|
|
|
pub report_in_external_macro: bool,
|
2024-04-29 08:44:51 -05:00
|
|
|
pub is_externally_loaded: bool,
|
2024-02-26 12:03:06 -06:00
|
|
|
pub crate_level_only: bool,
|
|
|
|
}
|
|
|
|
|
|
|
|
static FOO: &Lint = &Lint {
|
|
|
|
name: &"foo",
|
|
|
|
desc: "desc",
|
|
|
|
report_in_external_macro: false,
|
2024-04-29 08:44:51 -05:00
|
|
|
is_externally_loaded: true,
|
2024-02-26 12:03:06 -06:00
|
|
|
crate_level_only: false,
|
|
|
|
};
|
|
|
|
|
|
|
|
fn main() {}
|