Commit a1286f6
committed
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.1 file changed
+11
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
305 | 304 | | |
306 | 305 | | |
307 | 306 | | |
| |||
1967 | 1966 | | |
1968 | 1967 | | |
1969 | 1968 | | |
1970 | | - | |
| 1969 | + | |
1971 | 1970 | | |
1972 | 1971 | | |
1973 | 1972 | | |
| |||
1978 | 1977 | | |
1979 | 1978 | | |
1980 | 1979 | | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
1981 | 1983 | | |
1982 | 1984 | | |
1983 | | - | |
1984 | | - | |
| 1985 | + | |
| 1986 | + | |
1985 | 1987 | | |
1986 | 1988 | | |
1987 | 1989 | | |
1988 | 1990 | | |
1989 | 1991 | | |
1990 | | - | |
1991 | | - | |
| 1992 | + | |
| 1993 | + | |
1992 | 1994 | | |
1993 | 1995 | | |
1994 | 1996 | | |
| |||
0 commit comments