rust/src
Matthias Krüger c1e2948c21
Rollup merge of #93461 - dtolnay:fmtyield, r=davidtwco
Accommodate yield points in the format_args expansion

Fixes #93274.

For the case `println!("{} {:?}", "", async {}.await)` in the issue, the expansion before:

```rust
::std::io::_print(
    ::core::fmt::Arguments::new_v1(
        &["", " ", "\n"],
        &[
            ::core::fmt::ArgumentV1::new(&"", ::core::fmt::Display::fmt),
            ::core::fmt::ArgumentV1::new(&async {}.await, ::core::fmt::Debug::fmt),
        ],
    ),
);
```

After:

```rust
::std::io::_print(
    ::core::fmt::Arguments::new_v1(
        &["", " ", "\n"],
        &match (&"", &async {}.await) {
            _args => [
                ::core::fmt::ArgumentV1::new(_args.0, ::core::fmt::Display::fmt),
                ::core::fmt::ArgumentV1::new(_args.1, ::core::fmt::Debug::fmt),
            ],
        },
    ),
);
```
2022-01-31 07:00:42 +01:00
..
bootstrap Rollup merge of #92887 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrum 2022-01-30 08:37:46 -08:00
build_helper Remove dead code from build_helper 2022-01-22 12:06:44 +01:00
ci Update browser-ui-test version to 0.5.8 2022-01-29 10:44:18 +01:00
doc Rollup merge of #93375 - Kvicii:ISSUE_93374, r=notriddle 2022-01-28 15:20:28 +01:00
etc Auto merge of #87648 - JulianKnodt:const_eq_constrain, r=oli-obk 2022-01-18 09:58:39 +00:00
librustdoc Auto merge of #92711 - zredb:issue-90187-fix, r=notriddle 2022-01-30 20:57:34 +00:00
llvm-project@b6b46f596a backport llvm fix for issue 91671. 2022-01-28 09:22:16 -05:00
rustdoc-json-types Increase the format version of rustdoc-json-types 2022-01-20 22:14:02 +01:00
test Rollup merge of #93461 - dtolnay:fmtyield, r=davidtwco 2022-01-31 07:00:42 +01:00
tools Auto merge of #90891 - nbdd0121:format, r=Mark-Simulacrum 2022-01-31 00:04:46 +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.