rust/src
Michael Howell 3903ca197e rustdoc: load the set of in-scope traits for modules with no docstring
Fixes #93428

This fix is a response to a couple of special cases related to the
`module_id`, which is eventually used for trait candidates:

  * The module id is always set to the current crate, when checking `crate::`.

    Normally, the set of in-scope traits would be set in `load_links_in_attrs`,
    but if there are no doc comments, then that loop will never run.

  * the module id is set to the parent module, when resolving a module
    that is spelled like this:

        // Notice how we use an outlined doc comment here!
        // [`Test::my_fn`]
        mod something {
        }

    As with the above problem with `crate::`, we need to make sure the
    module gets its traits in scope resolved, even if it has no doc comments
    of its own.
2022-01-28 12:24:13 -07:00
..
bootstrap Auto merge of #93047 - matthiaskrgr:defer__dist_PlainSourceTarball, r=Mark-Simulacrum 2022-01-23 12:29:08 +00:00
build_helper Remove dead code from build_helper 2022-01-22 12:06:44 +01:00
ci Auto merge of #92983 - pietroalbini:pa-bump-runner-images, r=Mark-Simulacrum 2022-01-21 17:43:39 +00:00
doc Rollup merge of #92134 - nico-abram:patch-1, r=michaelwoerister 2022-01-26 23:45:21 +01:00
etc Auto merge of #87648 - JulianKnodt:const_eq_constrain, r=oli-obk 2022-01-18 09:58:39 +00:00
librustdoc rustdoc: load the set of in-scope traits for modules with no docstring 2022-01-28 12:24:13 -07:00
llvm-project@221a195b62 Update LLVM submodule 2022-01-26 09:39:15 +01:00
rustdoc-json-types Increase the format version of rustdoc-json-types 2022-01-20 22:14:02 +01:00
test rustdoc: load the set of in-scope traits for modules with no docstring 2022-01-28 12:24:13 -07:00
tools Merge commit 'a98e7ab8b9' into clippyup 2022-01-27 15:12:45 +01:00
README.md
stage0.json Bump bootstrap compiler 2021-11-30 10:44:21 -05: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.