Skip to content

Commit

Permalink
Add doc comment for rustc_middle::mir::mono::Linkage
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleywiser committed May 12, 2020
1 parent 99cb9cc commit 5063297
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustc_middle/mir/mono.rs
Expand Up @@ -239,6 +239,9 @@ pub struct CodegenUnit<'tcx> {
size_estimate: Option<usize>,
}

/// Specifies the linkage type for a `MonoItem`.
///
/// See https://llvm.org/docs/LangRef.html#linkage-types for more details about these variants.
#[derive(Copy, Clone, PartialEq, Debug, RustcEncodable, RustcDecodable, HashStable)]
pub enum Linkage {
External,
Expand Down

0 comments on commit 5063297

Please sign in to comment.