diff options
| author | bors <bors@rust-lang.org> | 2013-07-16 09:31:28 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-07-16 09:31:28 -0700 |
| commit | a317584e4f7643c862e94138eb210ce154974d0e (patch) | |
| tree | 78988a434c8f3e5a1490eb48b28059a886793894 /src/test/codegen/stack-alloc-string-slice.cc | |
| parent | 274e7a4e4999fe4e59a8ab0d71555f7f3eea3d6f (diff) | |
| parent | 31d29d394f817580cacf0962bd8c2272c8b817db (diff) | |
| download | rust-a317584e4f7643c862e94138eb210ce154974d0e.tar.gz rust-a317584e4f7643c862e94138eb210ce154974d0e.zip | |
auto merge of #7726 : omasanori/rust/semver-2.0.0, r=graydon
The Ord impl of Version refered to the algorithm in release candidate versions of semver. [Semantic Versioning 2.0.0](http://semver.org/spec/v2.0.0.html) says, "Build metadata SHOULD be ignored when determining version precedence."
Note that Version's `le` is not "less than or equal to" now, since `lt` ignores build metadata. I think the new ordering algorithm satisfies strict weak ordering which C++ STL requires, instead of strict total ordering.
BTW, is `a || b || ... || x`-style code better or idiomatic in Rust than `if a { return true; } if b { return true; } ... if x { return true; } return false;`-style one?
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions
