Commit 72d71e3
committed
Optimize
This PR lets `impl Default for Rc<str>` re-use the implementation
for `Rc::<[u8]>::default()`. The previous version only calculted the
memory layout at runtime, even though it should be known at compile
time, resulting in an additional function call.
Resolves <#135784>.Rc::<str>::default() implementation1 parent 15c6f7e commit 72d71e3
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2369 | 2369 | | |
2370 | 2370 | | |
2371 | 2371 | | |
2372 | | - | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
2373 | 2375 | | |
2374 | 2376 | | |
2375 | 2377 | | |
| |||
0 commit comments