Skip to content

const_path_join should handle more cases #1553

@smoelius

Description

@smoelius

Right now, the lint uses a function is_lit_string that checks whether its argument is a literal string:

The lint should be able to handle cases where a path component is constant but not a literal, e.g., env!("CARGO_MANIFEST_DIR").

Metadata

Metadata

Assignees

Labels

lintNew lint or lint enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions