Stream: t-compiler/help

Topic: unused attribute errors


nikomatsakis (Feb 21 2019 at 16:33, on Zulip):

Is anybody seeing errors like this when building the compiler?

Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
   Compiling core v0.0.0 (/home/nmatsakis/versioned/rust-3/src/libcore)
error: unused attribute
   --> src/libcore/num/mod.rs:50:17
    |
50  |                   #[rustc_layout_scalar_valid_range_start(1)]
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
100 | / nonzero_integers! {
101 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
102 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
103 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
.
nikomatsakis (Feb 21 2019 at 16:33, on Zulip):

wtf?

nikomatsakis (Feb 21 2019 at 16:33, on Zulip):

/me tries x.py clean

oli (Feb 21 2019 at 16:40, on Zulip):

I've seen these (and others) with keep-stage

maksimsco (Feb 21 2019 at 16:40, on Zulip):

I've seen a lot, only clean helped

nikomatsakis (Feb 21 2019 at 16:46, on Zulip):

clean seems to have helped, yeah, thanks. curious.

Santiago Pastorino (Feb 21 2019 at 17:17, on Zulip):

same happened to me and clean did the trick

Santiago Pastorino (Feb 21 2019 at 17:17, on Zulip):

I was wondering why did that happen

Santiago Pastorino (Feb 21 2019 at 17:18, on Zulip):

I've seen these (and others) with keep-stage

in my case was not with keep-stage

oli (Feb 21 2019 at 17:19, on Zulip):

Maybe after a rebase without a clean?

Santiago Pastorino (Feb 21 2019 at 18:24, on Zulip):

yes, after a rebase where previously I run build -i --stage 1 src/libstd

Last update: Nov 11 2019 at 22:55UTC