Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Don't use startswith when comparing mentions paths. #301

Merged
merged 1 commit into from
Dec 9, 2020

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Dec 7, 2020

This changes it so that paths in "mentions" are compared using full path components instead of a simple string compare. This should fix "src/tools/cargo" from matching "src/tools/cargotest". AFAIK, none of the current mentions are relying on this behavior.

I added a test, though in the process needed to change some things because the existing test infrastructure didn't properly support "mentions".

Fixes #253

@pietroalbini pietroalbini merged commit 60dff4f into rust-lang:master Dec 9, 2020
@pietroalbini
Copy link
Member

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

naive startswith can cover wrong directories for "mentions"
2 participants