rust/src
Dylan DPC 521c590c9f
Rollup merge of #91416 - compiler-errors:infinite-ty-option-box, r=estebank
Specialize infinite-type "insert some indirection" suggestion for Option

Suggest `Option<Box<_>>` instead of `Box<Option<_>>` for infinitely-recursive members of a struct.

Not sure if I can get the span of the generic subty of the Option so I can make this a `+++`-style suggestion. The current output is a tiny bit less fancy looking than the original suggestion.

Should I limit the specialization to just `Option<Box<TheOuterStruct>>`? Because right now it applies to all `Option` members in the struct that are returned by `Representability::SelfRecursive`.

Fixes #91402

r? `@estebank`
(since you wrote the original suggestion and are definitely most familiar with it!)
2022-03-31 17:29:52 +02:00
..
bootstrap Rollup merge of #95445 - jyn514:rustc-unit-tests, r=Dylan-DPC 2022-03-31 13:09:52 +02:00
ci Update browser-ui-test version to 0.8.4 2022-03-25 21:12:31 +01:00
doc Stabilize native library modifier syntax and the whole-archive modifier specifically 2022-03-30 23:53:21 +03:00
etc rustdoc-json-types: implementors -> implementations 2022-03-14 00:05:11 +00:00
librustdoc Rollup merge of #95495 - GuillaumeGomez:rm-unneeded-to-string, r=notriddle 2022-03-31 13:09:54 +02:00
llvm-project@9168e236c5 Update to LLVM 14.0.0 final 2022-03-23 11:42:13 -07:00
rustdoc-json-types rustdoc-json-types: implementors -> implementations 2022-03-14 00:05:11 +00:00
test Rollup merge of #91416 - compiler-errors:infinite-ty-option-box, r=estebank 2022-03-31 17:29:52 +02:00
tools Update cargo 2022-03-30 21:28:18 -07:00
README.md
stage0.json Bump bootstrap to 1.60 2022-02-25 08:00:24 -05:00
version Bump version to 1.61 2022-02-19 13:40:33 -05: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.