Skip to content

unnecessary path disambiguator slips past deny(warnings) #58055

Closed
@tspiteri

Description

@tspiteri
#[deny(warnings)]
pub fn foo() {
    type _V = Vec::<u32>;
}

Although there is a deny(warnings) attribute, this code compiles with a warning only.

   Compiling warn v0.1.0 (/tmp/warn)
warning: unnecessary path disambiguator
 --> src/lib.rs:3:18
  |
3 |     type _V = Vec::<u32>;
  |                  ^^ try removing `::`

    Finished dev [unoptimized + debuginfo] target(s) in 0.23s

This behavior is present in all versions I tested including the latest nightly 2019-01-31 and 1.21.0 when relaxed path syntax was introduced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions