mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 01:25:15 +00:00
rustdoc: Fix crash when trying to list attributes on an opaque type Fixes https://github.com/rust-lang/rust/issues/160107. It's crashing because we're using `get_attrs` on an `OpaqueTy` which cannot have attributes and therefore crashed. So instead, I check ahead of calling this function in the path where this can happen instead of doing it in `convert_render_type_id` on all `RenderTypeId::DefId`. r? @notriddle
This directory contains some source code for the Rust project, including:
- The bootstrapping build system
- Various submodules for tools, like cargo, tidy, etc.
For more information on how various parts of the compiler work, see the rustc dev guide.