Skip to content

Commit

Permalink
update comment (codegen_backend -> codegen_crate)
Browse files Browse the repository at this point in the history
use intra-doc links so there'll be a doc gen fail next time this becomes
wrong
  • Loading branch information
Monadic-Cat committed Nov 28, 2024
1 parent 6b6a867 commit 52684a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_codegen_ssa/src/traits/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ pub trait CodegenBackend {
need_metadata_module: bool,
) -> Box<dyn Any>;

/// This is called on the returned `Box<dyn Any>` from `codegen_backend`
/// This is called on the returned `Box<dyn Any>` from [`codegen_crate`](Self::codegen_crate)
///
/// # Panics
///
/// Panics when the passed `Box<dyn Any>` was not returned by `codegen_backend`.
/// Panics when the passed `Box<dyn Any>` was not returned by [`codegen_crate`](Self::codegen_crate).
fn join_codegen(
&self,
ongoing_codegen: Box<dyn Any>,
Expand Down

0 comments on commit 52684a4

Please # to comment.