Skip to content

#[must_use] now suddenly warns in nightly #44213

Closed
@nox

Description

@nox

Building Euclid on nightly now produces a gazillion of warnings that were not there before.

   Compiling euclid v0.15.1
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform2d.rs:164:5
    |
164 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform2d.rs:178:5
    |
178 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform2d.rs:194:5
    |
194 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform2d.rs:200:5
    |
200 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform2d.rs:216:5
    |
216 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform2d.rs:222:5
    |
222 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform2d.rs:244:5
    |
244 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform2d.rs:250:5
    |
250 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform2d.rs:257:5
    |
257 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform2d.rs:265:5
    |
265 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform2d.rs:274:5
    |
274 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform2d.rs:290:5
    |
290 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform3d.rs:373:5
    |
373 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform3d.rs:460:5
    |
460 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform3d.rs:466:5
    |
466 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform3d.rs:483:5
    |
483 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform3d.rs:494:5
    |
494 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform3d.rs:537:5
    |
537 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/transform3d.rs:543:5
    |
543 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/point.rs:236:5
    |
236 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/point.rs:248:5
    |
248 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/point.rs:260:5
    |
260 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/point.rs:547:5
    |
547 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/point.rs:558:5
    |
558 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/point.rs:569:5
    |
569 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/rect.rs:170:5
    |
170 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/rect.rs:195:5
    |
195 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/rect.rs:204:5
    |
204 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/rect.rs:225:5
    |
225 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/rect.rs:397:5
    |
397 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/rect.rs:406:5
    |
406 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/rect.rs:415:5
    |
415 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/vector.rs:269:5
    |
269 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/vector.rs:281:5
    |
281 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/vector.rs:293:5
    |
293 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/vector.rs:616:5
    |
616 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/vector.rs:627:5
    |
627 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable
warning: `#[must_use]` on methods is experimental (see issue #43302)
   --> /home/travis/build/servo/servo-with-rust-nightly/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/euclid-0.15.1/src/vector.rs:638:5
    |
638 |     #[must_use]
    |     ^^^^^^^^^^^
    |
    = help: add #![feature(fn_must_use)] to the crate attributes to enable

Cc @nical @SimonSapin

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions