Skip to content

Commit be69520

Browse files
committed
Auto merge of #43655 - bjorn3:more_doc_comments, r=arielb1
Make some comments doc comments in librustc/middle/cstore.rs
2 parents a9c24fd + 068710f commit be69520

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/librustc/middle/cstore.rs

+13-9
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
// option. This file may not be copied, modified, or distributed
1919
// except according to those terms.
2020

21-
// the rustc crate store interface. This also includes types that
22-
// are *mostly* used as a part of that interface, but these should
23-
// probably get a better home if someone can find one.
21+
//! the rustc crate store interface. This also includes types that
22+
//! are *mostly* used as a part of that interface, but these should
23+
//! probably get a better home if someone can find one.
2424
2525
use hir::def;
2626
use hir::def_id::{CrateNum, DefId, DefIndex};
@@ -55,8 +55,8 @@ pub struct LinkMeta {
5555
pub crate_hash: Svh,
5656
}
5757

58-
// Where a crate came from on the local filesystem. One of these three options
59-
// must be non-None.
58+
/// Where a crate came from on the local filesystem. One of these three options
59+
/// must be non-None.
6060
#[derive(PartialEq, Clone, Debug)]
6161
pub struct CrateSource {
6262
pub dylib: Option<(PathBuf, PathKind)>,
@@ -120,10 +120,14 @@ pub enum LinkagePreference {
120120

121121
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, RustcEncodable, RustcDecodable)]
122122
pub enum NativeLibraryKind {
123-
NativeStatic, // native static library (.a archive)
124-
NativeStaticNobundle, // native static library, which doesn't get bundled into .rlibs
125-
NativeFramework, // macOS-specific
126-
NativeUnknown, // default way to specify a dynamic library
123+
/// native static library (.a archive)
124+
NativeStatic,
125+
/// native static library, which doesn't get bundled into .rlibs
126+
NativeStaticNobundle,
127+
/// macOS-specific
128+
NativeFramework,
129+
/// default way to specify a dynamic library
130+
NativeUnknown,
127131
}
128132

129133
#[derive(Clone, Hash, RustcEncodable, RustcDecodable)]

0 commit comments

Comments
 (0)