|
18 | 18 | // option. This file may not be copied, modified, or distributed
|
19 | 19 | // except according to those terms.
|
20 | 20 |
|
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. |
24 | 24 |
|
25 | 25 | use hir::def;
|
26 | 26 | use hir::def_id::{CrateNum, DefId, DefIndex};
|
@@ -55,8 +55,8 @@ pub struct LinkMeta {
|
55 | 55 | pub crate_hash: Svh,
|
56 | 56 | }
|
57 | 57 |
|
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. |
60 | 60 | #[derive(PartialEq, Clone, Debug)]
|
61 | 61 | pub struct CrateSource {
|
62 | 62 | pub dylib: Option<(PathBuf, PathKind)>,
|
@@ -120,10 +120,14 @@ pub enum LinkagePreference {
|
120 | 120 |
|
121 | 121 | #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, RustcEncodable, RustcDecodable)]
|
122 | 122 | 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, |
127 | 131 | }
|
128 | 132 |
|
129 | 133 | #[derive(Clone, Hash, RustcEncodable, RustcDecodable)]
|
|
0 commit comments