Skip to content

Warning when compiling unit tests #42364

@Loirooriol

Description

@Loirooriol

./mach test-unit -d produces

warning: associated function `new` is never used
  --> components/servo/tests/common/mod.rs:25:19
   |
24 | impl ServoTest {
   | -------------- associated function in this implementation
25 |     pub(crate) fn new() -> Self {
   |                   ^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: `libservo` (test "largest_contentful_paint") generated 1 warning

Metadata

Metadata

Assignees

Labels

A-buildRelated to or part of the build processC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions