rust/library/core/src
bors 380addd7d2 Auto merge of #100733 - scottmcm:inline-from-from-identity, r=m-ou-se
Inline `<T as From<T>>::from`

I noticed (in https://github.com/rust-lang/rust/pull/100693#issuecomment-1218520141) that the MIR for <https://play.rust-lang.org/?version=nightly&mode=release&edition=2021&gist=67097e0494363ee27421a4e3bdfaf513> has inlined most stuff
```
scope 5 (inlined <Result<i32, u32> as Try>::branch)
```
```
scope 8 (inlined <Result<i32, u32> as Try>::from_output)
```

But yet the do-nothing `from` call was still there:
```
_17 = <u32 as From<u32>>::from(move _18) -> bb9;
```

So let's give this a try and see what perf has to say.
2022-09-06 14:33:31 +00:00
..
alloc Move error trait into core 2022-08-22 13:28:25 -07:00
array Move error trait into core 2022-08-22 13:28:25 -07:00
async_iter Add Stream alias for AsyncIterator 2022-03-15 20:59:13 -07:00
cell Move/rename lazy::{OnceCell, Lazy} to cell::{OnceCell, LazyCell} 2022-06-16 19:53:59 +04:00
char Make char::is_lowercase and char::is_uppercase const 2022-09-04 08:07:53 -07:00
convert Auto merge of #100733 - scottmcm:inline-from-from-identity, r=m-ou-se 2022-09-06 14:33:31 +00:00
ffi Inline CStr::from_bytes_with_nul_unchecked::rt_impl 2022-08-10 12:21:17 +00:00
fmt Remove a packing branch from fmt::builders::PadAdapter 2022-08-24 01:21:40 +02:00
future Stabilize future_poll_fn 2022-07-16 10:04:14 +09:00
hash Adjust cfgs 2022-08-12 16:28:15 -04:00
iter Rollup merge of #100220 - scottmcm:fix-by-ref-sized, r=joshtriplett 2022-08-24 18:20:08 +02:00
macros Link “? operator” to relevant chapter in The Book 2022-08-31 11:01:49 +02:00
mem Make const_eval_select a real intrinsic 2022-09-04 20:35:23 +08:00
num Add inline(always) to rt functions 2022-09-04 20:35:23 +08:00
ops Address nits, rename enclosing_scope => parent_label 2022-09-04 02:10:31 +00:00
panic Update integer_atomics tracking issue 2022-07-08 17:52:04 -04:00
prelude Create 2024 edition 2022-04-02 02:45:49 -04:00
ptr Make const_eval_select a real intrinsic 2022-09-04 20:35:23 +08:00
slice Rollup merge of #101412 - WaffleLapkin:improve_std_ptr_code_leftovers, r=scottmcm 2022-09-06 16:34:44 +05:30
str Make const_eval_select a real intrinsic 2022-09-04 20:35:23 +08:00
sync fix nitpicks from review 2022-08-21 06:36:11 +04:00
task Remove self-referential intra-doc links. 2022-08-03 22:07:50 -07:00
unicode Address feedback from PR #101401 2022-09-04 08:07:53 -07:00
any.rs Add Provider::{would_be_satisfied_by_value_of,would_be_satisfied_by_ref_of} 2022-08-23 10:48:59 -04:00
ascii.rs Inline <EscapeDefault as Iterator>::next 2022-03-10 15:35:22 +01:00
asserting.rs [RFC 2011] Library code 2022-05-22 07:18:32 -03:00
bool.rs Remove trailing whitespace 2022-09-01 17:32:00 +01:00
borrow.rs Improve primitive/std docs separation and headers 2022-08-20 16:50:29 -05:00
cell.rs adjust UnsafeCell documentation 2022-07-22 14:25:41 -04:00
clone.rs update cfg(bootstrap)s 2022-07-01 15:48:23 +02:00
cmp.rs Improve primitive/std docs separation and headers 2022-08-20 16:50:29 -05:00
default.rs Improve primitive/std docs separation and headers 2022-08-20 16:50:29 -05:00
error.md Move error trait into core 2022-08-22 13:28:25 -07:00
error.rs error::Error: remove some comments 2022-08-25 07:42:07 +01:00
hint.rs Fix a bunch of typo 2022-08-31 18:24:55 +08:00
internal_macros.rs ignore a doctest for the non-exported macro 2022-05-03 18:33:56 +09:00
intrinsics.rs Add inline(always) to function generated by macro 2022-09-04 20:35:23 +08:00
lazy.rs Move/rename lazy::{OnceCell, Lazy} to cell::{OnceCell, LazyCell} 2022-06-16 19:53:59 +04:00
lib.rs Make char::is_lowercase and char::is_uppercase const 2022-09-04 08:07:53 -07:00
marker.rs Fix links to error codes 2022-08-23 21:47:31 +02:00
option.rs Add a warning about Option/Result::and() being eagerly evaluated 2022-08-23 16:15:09 +00:00
panic.rs resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00
panicking.rs Reduce code size of assert_matches_failed 2022-08-24 00:56:04 +02:00
pin.rs Fix the generator example for pin!() 2022-05-05 09:58:13 +10:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive_docs.rs Add the syntax of references to their documentation summary. 2022-08-26 10:47:03 -07:00
result.rs Rollup merge of #100604 - dtolnay:okorerr, r=m-ou-se 2022-08-26 09:51:44 +09:00
time.rs Fix a bunch of typo 2022-08-31 18:24:55 +08:00
tuple.rs Adjust cfgs 2022-08-12 16:28:15 -04:00
unit.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00