Skip to content

Commit 496782c

Browse files
committed
---
yaml --- r: 123440 b: refs/heads/auto c: 4989a56 h: refs/heads/master v: v3
1 parent 31b6a60 commit 496782c

35 files changed

+1137
-1138
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 5716abe3f019ab7d9c8cdde9879332040191cf88
16+
refs/heads/auto: 4989a56448c7e3047e0538ff4ef54c49db8a5a4f
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libsyntax/abi.rs

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,12 @@ pub struct AbiData {
6060
}
6161

6262
pub enum AbiArchitecture {
63-
RustArch, // Not a real ABI (e.g., intrinsic)
64-
AllArch, // An ABI that specifies cross-platform defaults (e.g., "C")
65-
Archs(u32) // Multiple architectures (bitset)
63+
/// Not a real ABI (e.g., intrinsic)
64+
RustArch,
65+
/// An ABI that specifies cross-platform defaults (e.g., "C")
66+
AllArch,
67+
/// Multiple architectures (bitset)
68+
Archs(u32)
6669
}
6770

6871
static AbiDatas: &'static [AbiData] = &[
@@ -84,21 +87,13 @@ static AbiDatas: &'static [AbiData] = &[
8487
AbiData {abi: RustIntrinsic, name: "rust-intrinsic", abi_arch: RustArch},
8588
];
8689

90+
/// Iterates through each of the defined ABIs.
8791
fn each_abi(op: |abi: Abi| -> bool) -> bool {
88-
/*!
89-
*
90-
* Iterates through each of the defined ABIs.
91-
*/
92-
9392
AbiDatas.iter().advance(|abi_data| op(abi_data.abi))
9493
}
9594

95+
/// Returns the ABI with the given name (if any).
9696
pub fn lookup(name: &str) -> Option<Abi> {
97-
/*!
98-
*
99-
* Returns the ABI with the given name (if any).
100-
*/
101-
10297
let mut res = None;
10398

10499
each_abi(|abi| {

0 commit comments

Comments
 (0)