Skip to content

Commit ba61646

Browse files
committed
---
yaml --- r: 123695 b: refs/heads/try c: 4989a56 h: refs/heads/master i: 123693: 224aef9 123691: a4ecf19 123687: a54c802 123679: 7309e87 v: v3
1 parent 0fc86d0 commit ba61646

35 files changed

+1137
-1138
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: da4e4e4e0a7778a85748aa4a303b13f603e96b4b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8ddd286ea4ba4384a0dc9eae393ed515460a986e
5-
refs/heads/try: 5716abe3f019ab7d9c8cdde9879332040191cf88
5+
refs/heads/try: 4989a56448c7e3047e0538ff4ef54c49db8a5a4f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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)