1
Fork 0
rust/tests/ui-fulldeps
David Tolnay 0a09252866
Rollup merge of #134834 - dtolnay:unnamedcall, r=compiler-errors
Skip parenthesis around tuple struct field calls

The pretty-printer previously did not distinguish between named vs unnamed fields when printing a function call containing a struct field. It would print the call as `(self.fun)()` for a named field which is correct, and `(self.0)()` for an unnamed field which is redundant.

This PR changes function calls of tuple struct fields to print without parens.

**Before:**

```rust
struct Tuple(fn());

fn main() {
    let tuple = Tuple(|| {});
    (tuple.0)();
}
```

**After:**

```rust
struct Tuple(fn());

fn main() {
    let tuple = Tuple(|| {});
    tuple.0();
}
```
2024-12-27 18:43:05 -08:00
..
auxiliary Extract ui-fulldeps expression parser into module 2024-12-21 18:48:13 -08:00
codegen-backend Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
fluent-messages Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
internal-lints Begin to implement type system layer of unsafe binders 2024-12-22 21:57:57 +00:00
lexer Add test to check unicode identifier version 2024-12-09 06:23:59 -08:00
mod_dir_simple [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
session-diagnostic Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
stable-mir Rollup merge of #132410 - bjorn3:yet_another_driver_refactor_round, r=cjgillot 2024-11-27 22:23:24 +01:00
try-from-u32 Add a macro that derives TryFrom<u32> for fieldless enums 2024-10-26 20:19:53 +11:00
compiler-calls.rs Remove all threading through of ErrorGuaranteed from the driver 2024-12-06 18:42:31 +00:00
deriving-global.rs Improve dead code analysis 2024-07-04 22:05:00 +08:00
deriving-hygiene.rs Improve dead code analysis 2024-07-04 22:05:00 +08:00
dropck-tarena-cycle-checked.rs Remove ignore-stage1 that was added when changing error count msg 2024-01-06 12:53:06 +01:00
dropck-tarena-cycle-checked.stderr Remove ignore-stage1 that was added when changing error count msg 2024-01-06 12:53:06 +01:00
dropck-tarena-unsound-drop.rs Remove ignore-stage1 that was added when changing error count msg 2024-01-06 12:53:06 +01:00
dropck-tarena-unsound-drop.stderr Remove ignore-stage1 that was added when changing error count msg 2024-01-06 12:53:06 +01:00
dropck_tarena_sound_drop.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
empty-struct-braces-derive.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
hash-stable-is-unstable.rs Don't test new error messages with the stage 0 compiler 2024-11-03 14:32:25 -08:00
hash-stable-is-unstable.stderr Don't test new error messages with the stage 0 compiler 2024-11-03 14:32:25 -08:00
lint-pass-macros.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
missing-rustc-driver-error.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
missing-rustc-driver-error.stderr Don't depend on crate names in tests/ui-fulldeps/missing-rustc-driver-error.rs 2023-07-11 22:30:28 -05:00
mod_dir_path_canonicalized.rs Make top-level rustc_parse functions fallible. 2024-06-05 10:38:03 +10:00
obtain-borrowck.rs Fix ui-fulldep tests 2024-12-06 18:42:31 +00:00
obtain-borrowck.run.stdout Port tests/run-make-fulldeps/obtain-borrowck to ui-fulldeps 2024-06-07 00:41:31 +10:00
pathless-extern-unstable.rs Don't test new error messages with the stage 0 compiler 2024-11-03 14:32:25 -08:00
pathless-extern-unstable.stderr Don't test new error messages with the stage 0 compiler 2024-11-03 14:32:25 -08:00
pprust-expr-roundtrip.rs Switch pretty-printer roundtrip test to better parser 2024-12-21 18:49:51 -08:00
pprust-parenthesis-insertion.rs Rollup merge of #134834 - dtolnay:unnamedcall, r=compiler-errors 2024-12-27 18:43:05 -08:00
regions-mock-tcx.rs Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
run-compiler-twice.rs Fix tests 2024-12-14 14:53:59 +00:00
rustc_encodable_hygiene.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00