rust/src
Mara Bos 557d300e1b
Rollup merge of #91530 - bobrippling:suggest-1-tuple-parens, r=camelid
Suggest 1-tuple parentheses on exprs without existing parens

A follow-on from #86116, split out from #90677.

This alters the suggestion to add a trailing comma to create a 1-tuple - previously we would only apply this if the relevant expression was parenthesised. We now make the suggestion regardless of parentheses, which reduces the fragility of the check (w.r.t formatting).

e.g.
```rust
let a: Option<(i32,)> = Some(3);
```

gets the below suggestion:

```rust
let a: Option<(i32,)> = Some((3,));
//                           ^ ^^
```

This change also improves the suggestion in other ways, such as by only making the suggestion if the types would match after the suggestion is applied and making the suggestion a multipart suggestion.
2022-02-07 14:08:31 +00:00
..
bootstrap Rollup merge of #88313 - jyn514:pre-push, r=Mark-Simulacrum 2022-02-07 14:08:29 +00:00
build_helper Hide failed command unless in verbose mode 2022-01-30 17:37:11 -05:00
ci Rollup merge of #93657 - Mark-Simulacrum:apple-measurement, r=pietroalbini 2022-02-06 04:13:34 +01:00
doc Rollup merge of #92383 - lancethepants:armv7-unknown-linux-uclibceabi, r=nagisa 2022-02-06 04:13:30 +01:00
etc Rollup merge of #88313 - jyn514:pre-push, r=Mark-Simulacrum 2022-02-07 14:08:29 +00:00
librustdoc Rollup merge of #93659 - UltiRequiem:refactor_conditional_static_rustdoc, r=GuillaumeGomez 2022-02-06 04:13:35 +01:00
llvm-project@fdc8f411ec Update llvm-project submodule 2022-02-05 21:00:23 +00:00
rustdoc-json-types Increase the format version of rustdoc-json-types 2022-01-20 22:14:02 +01:00
test Rollup merge of #91530 - bobrippling:suggest-1-tuple-parens, r=camelid 2022-02-07 14:08:31 +00:00
tools Auto merge of #93654 - RalfJung:miri, r=RalfJung 2022-02-04 17:40:02 +00:00
README.md
stage0.json bump bootstrap compiler 2022-01-28 15:01:04 +01:00
version bump version to 1.60.0 2022-01-07 10:04:15 +01:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.