Skip to content

Commit bd056d4

Browse files
committed
---
yaml --- r: 82538 b: refs/heads/auto c: 8c45423 h: refs/heads/master v: v3
1 parent 08d76eb commit bd056d4

File tree

3 files changed

+6
-32
lines changed

3 files changed

+6
-32
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: a5cf9fdb61432ea0182dc250305332f3a2d6f214
16+
refs/heads/auto: 8c45423a8a2d5edad60583525b02fe2f2911122b
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libextra/semver.rs

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Semantic version parsing and comparison.
12-
//!
13-
//! Semantic versioning (see http://semver.org/) is a set of rules for
14-
//! assigning version numbers intended to convey meaning about what has
15-
//! changed, and how much. A version number has five parts:
16-
//!
17-
//! * Major number, updated for incompatible API changes
18-
//! * Minor number, updated for backwards-compatible API additions
19-
//! * Patch number, updated for backwards-compatible bugfixes
20-
//! * Pre-release information (optional), preceded by a hyphen (`-`)
21-
//! * Build metadata (optional), preceded by a plus sign (`+`)
22-
//!
23-
//! The three mandatory components are required to be decimal numbers. The
24-
//! pre-release information and build metadata are required to be a
25-
//! period-separated list of identifiers containing only alphanumeric
26-
//! characters and hyphens.
27-
//!
28-
//! An example version number with all five components is
29-
//! `0.8.1-rc.3.0+20130922.linux`.
11+
//! Semver parsing and logic
12+
13+
#[allow(missing_doc)];
14+
3015

3116
use std::char;
3217
use std::cmp;
@@ -35,8 +20,6 @@ use std::io;
3520
use std::option::{Option, Some, None};
3621
use std::to_str::ToStr;
3722

38-
/// An identifier in the pre-release or build metadata. If the identifier can
39-
/// be parsed as a decimal value, it will be represented with `Numeric`.
4023
#[deriving(Clone, Eq)]
4124
pub enum Identifier {
4225
Numeric(uint),
@@ -66,20 +49,12 @@ impl ToStr for Identifier {
6649
}
6750

6851

69-
/// Represents a version number conforming to the semantic versioning scheme.
7052
#[deriving(Clone, Eq)]
7153
pub struct Version {
72-
/// The major version, to be incremented on incompatible changes.
7354
major: uint,
74-
/// The minor version, to be incremented when functionality is added in a
75-
/// backwards-compatible manner.
7655
minor: uint,
77-
/// The patch version, to be incremented when backwards-compatible bug
78-
/// fixes are made.
7956
patch: uint,
80-
/// The pre-release version identifier, if one exists.
8157
pre: ~[Identifier],
82-
/// The build metadata, ignored when determining version precedence.
8358
build: ~[Identifier],
8459
}
8560

@@ -227,7 +202,6 @@ fn parse_reader(rdr: @io::Reader) -> Version {
227202
}
228203

229204

230-
/// Parse a string into a semver object.
231205
pub fn parse(s: &str) -> Option<Version> {
232206
if !s.is_ascii() {
233207
return None;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# If this file is modified, then llvm will be forcibly cleaned and then rebuilt.
22
# The actual contents of this file do not matter, but to trigger a change on the
33
# build bots then the contents should be changed so git updates the mtime.
4-
2013-09-11
4+
2013-09-22

0 commit comments

Comments
 (0)