about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-04-24 01:15:36 +0000
committerbors <bors@rust-lang.org>2018-04-24 01:15:36 +0000
commita1286f6835ade2d46b936100acd82d44093b3b68 (patch)
tree82dd0fe4ec36797dc742c20aebce18889332720d /src/liballoc
parent725c9b0ede0b222cd64a8dc87cbeed052ecad157 (diff)
parent7cbc93b14f0c5b39003a95f6cfbb74bd4fa04f40 (diff)
downloadrust-a1286f6835ade2d46b936100acd82d44093b3b68.tar.gz
rust-a1286f6835ade2d46b936100acd82d44093b3b68.zip
Auto merge of #48989 - ExpHP:path-prefix, r=dtolnay
Make signature of Path::strip_prefix accept non-references

I did this a while back but didn't submit a PR. Might as well see what happens.

Fixes #48390.

**Note: This has the potential to cause regressions in type inference.**  However, in order for code to break, it would need to be relying on the signature to determine that a type is `&_`, while still being able to figure out what the `_` is.  I'm having a hard time imagining such a scenario in real code.
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions