rust/src
Martin Nordholts aa763fcf42 rustdoc-json: Include GenericParamDefKind::Type::synthetic in JSON
The rustdoc JSON for

```
pub fn f(_: impl Clone) {}
```

will effectively be

```
pub fn f<impl Clone: Clone>(_: impl Clone)
```

where a synthetic generic parameter called `impl Clone` with generic
trait bound `Clone` is added to the function declaration.

The generated HTML filters out these generic parameters by doing
`self.params.iter().filter(|p| !p.is_synthetic_type_param())`, because
the synthetic generic parameter is not of interest to regular users.

For the same reason, we should expose whether or not a generic parameter
is synthetic or not also in the rustdoc JSON, so that rustdoc JSON
clients can also have the option to hide synthetic generic parameters.
2022-03-04 05:54:12 +01:00
..
bootstrap Rollup merge of #94415 - bjorn3:cfg_default_backend, r=Mark-Simulacrum 2022-02-27 21:46:36 +01:00
build_helper Hide failed command unless in verbose mode 2022-01-30 17:37:11 -05:00
ci Move submodule checkout before msys2 installation. 2022-03-01 10:16:47 -08:00
doc Rollup merge of #94499 - RandomInsano:patch-1, r=Dylan-DPC 2022-03-03 01:09:13 +01:00
etc Auto merge of #93626 - wesleywiser:fix_hashmap_natvis, r=michaelwoerister 2022-02-08 10:05:05 +00:00
librustdoc rustdoc-json: Include GenericParamDefKind::Type::synthetic in JSON 2022-03-04 05:54:12 +01:00
llvm-project@e29ac13bc9 Update LLVM submodule 2022-02-16 21:15:30 +01:00
rustdoc-json-types rustdoc-json: Include GenericParamDefKind::Type::synthetic in JSON 2022-03-04 05:54:12 +01:00
test rustdoc-json: Include GenericParamDefKind::Type::synthetic in JSON 2022-03-04 05:54:12 +01:00
tools Auto merge of #94512 - RalfJung:sdiv-ub, r=oli-obk 2022-03-03 12:56:24 +00: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.