rust/tests
Matthias Krüger ea2347843c
Rollup merge of #115363 - kpreid:suggest-private, r=compiler-errors
Don't suggest adding parentheses to call an inaccessible method.

Previously, code of this form would emit E0615 (attempt to use a method as a field), thus emphasizing the existence of private methods that the programmer probably does not care about. Now it ignores their existence instead, producing error E0609 (no field). The motivating example is:

```rust
let x = std::rc::Rc::new(());
x.inner;
```

which would previously mention the private method `Rc::inner()`, even though `Rc<T>` intentionally has no public methods so that it can be a transparent smart pointer for any `T`.

```rust
error[E0615]: attempted to take value of method `inner` on type `Rc<()>`
 --> src/main.rs:3:3
  |
3 | x.inner;
  |   ^^^^^ method, not a field
  |
help: use parentheses to call the method
  |
3 | x.inner();
  |        ++
  ```

  With this change, it emits E0609 and no suggestion.
2023-08-30 07:18:13 +02:00
..
assembly Auto merge of #112922 - g0djan:godjan/wasi-threads, r=wesleywiser 2023-08-02 01:01:48 +00:00
auxiliary
codegen Auto merge of #115260 - scottmcm:not-quite-so-cold, r=WaffleLapkin 2023-08-29 02:23:43 +00:00
codegen-units
debuginfo tests: add test for #67992 2023-08-25 10:31:22 +01:00
incremental Forbid old-style simd_shuffleN intrinsics 2023-08-03 09:29:00 +00:00
mir-opt Auto merge of #115231 - saethlin:dont-ignore-wasm, r=Mark-Simulacrum 2023-08-27 17:51:50 +00:00
pretty
run-coverage Various trivial formatting fixes in run-coverage tests 2023-08-26 14:35:34 +10:00
run-coverage-rustdoc Tidy up some awkwardly-placed comments in tests 2023-08-26 14:35:34 +10:00
run-make Rollup merge of #115135 - GuillaumeGomez:no-html-source-flag, r=notriddle 2023-08-23 17:46:35 +02:00
run-make-fulldeps
run-pass-valgrind
rustdoc Auto merge of #115078 - camelid:tydef-to-alias, r=aDotInTheVoid,GuillaumeGomez 2023-08-24 04:13:28 +00:00
rustdoc-gui Remove unneeded "background_color" parameter 2023-08-26 11:25:04 +02:00
rustdoc-js
rustdoc-js-std
rustdoc-json Fix rustdoc-json tests 2023-08-23 11:52:49 -07:00
rustdoc-ui rustdoc: use unicode-aware checks for redundant explicit link fastpath 2023-08-21 14:25:26 -07:00
ui Rollup merge of #115363 - kpreid:suggest-private, r=compiler-errors 2023-08-30 07:18:13 +02:00
ui-fulldeps Create StableMir replacer for SMirCalls 2023-08-29 16:30:50 +03:00
COMPILER_TESTS.md