rust/src/test
Yuki Okushi 48da6758e5
Rollup merge of #75613 - estebank:explain-mut-method, r=petrochenkov
Add explanation for `&mut self` method call when expecting `-> Self`

When a user tries to use a method as if it returned a new value of the
same type as its receiver, we will emit a type error. Try to detect this
and provide extra explanation that the method modifies the receiver
in-place.

This has confused people in the wild, like in
https://users.rust-lang.org/t/newbie-why-the-commented-line-stops-the-snippet-from-compiling/47322
2020-08-18 09:27:47 +09:00
..
assembly Work around LLVM issues with explicit register in inline asm 2020-08-03 10:43:09 +01:00
auxiliary
codegen Revert "Suppress debuginfo on naked function arguments" 2020-08-11 15:00:23 -04:00
codegen-units instance: only polymorphize upvar substs 2020-08-09 14:53:33 +01:00
compile-fail rustc_metadata: Make crate loading fully speculative 2020-07-18 14:06:04 +04:00
debuginfo Revert "Suppress debuginfo on naked function arguments" 2020-08-11 15:00:23 -04:00
incremental Share serialization optimization between incr and metadata 2020-07-26 18:37:03 -04:00
mir-opt Implement 'considered equal' for statements, so that for example _0 = _1 and discriminant(_0) = discriminant(0) are considered equal if 0 is a fieldless variant of an enum 2020-08-16 22:04:58 +02:00
pretty tests: add regression test for #74745 2020-08-02 15:33:06 +01:00
run-make proc_macro: Add API for tracked access to environment variables 2020-07-26 13:37:37 +03:00
run-make-fulldeps Auto merge of #73851 - matthewjasper:serialize-not-special, r=oli-obk 2020-08-15 00:45:13 +00:00
run-pass-valgrind
rustdoc Auto merge of #75205 - Aaron1011:fix/auto-trait-proj-ice, r=nikomatsakis 2020-08-12 06:42:49 +00:00
rustdoc-js rustdoc: Fix doc aliases with crate filtering 2020-06-23 09:27:37 +01:00
rustdoc-js-std
rustdoc-ui Auto merge of #75127 - jyn514:impl-trait, r=pnkfelix 2020-08-10 19:33:25 +00:00
rustfix
ui Rollup merge of #75613 - estebank:explain-mut-method, r=petrochenkov 2020-08-18 09:27:47 +09:00
ui-fulldeps Fix ui fulldeps tests 2020-08-14 17:34:32 +01:00
COMPILER_TESTS.md