Skip to content

Commit 83b564a

Browse files
committed
---
yaml --- r: 231906 b: refs/heads/auto c: 90043cb h: refs/heads/master v: v3
1 parent 99661cd commit 83b564a

File tree

13 files changed

+225
-2219
lines changed

13 files changed

+225
-2219
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 5ff55943a38f2b581bd4ae5d521f57defd1a8b29
11+
refs/heads/auto: 90043cbbf0bd30557099543e9aaa0e299958df55
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/configure

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,25 @@ then
885885
CFG_DISABLE_JEMALLOC=1
886886
fi
887887

888+
# default gcc version under OpenBSD maybe too old, try using egcc, which is a
889+
# gcc version from ports
890+
if [ $CFG_OSTYPE = unknown-openbsd ]
891+
then
892+
if [ $("$CFG_GCC" --version 2>&1 | grep -c ' 4\.[0-6]') -ne 0 ]; then
893+
step_msg "older GCC found, try with egcc instead"
894+
895+
# probe again but using egcc
896+
probe CFG_GCC egcc
897+
898+
# and use egcc/eg++ for CC/CXX too if it was found
899+
# (but user setting has priority)
900+
if [ -n "$CFG_GCC" ]; then
901+
CC="${CC:-egcc}"
902+
CXX="${CXX:-eg++}"
903+
fi
904+
fi
905+
fi
906+
888907
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
889908
# system, so if we find that gcc is clang, we should just use clang directly.
890909
if [ $CFG_OSTYPE = apple-darwin -a -z "$CFG_ENABLE_CLANG" ]
@@ -956,7 +975,7 @@ then
956975
LLVM_VERSION=$($LLVM_CONFIG --version)
957976

958977
case $LLVM_VERSION in
959-
(3.[5-8]*)
978+
(3.[5-7]*)
960979
msg "found ok version of LLVM: $LLVM_VERSION"
961980
;;
962981
(*)
@@ -1030,7 +1049,7 @@ then
10301049
esac
10311050
else
10321051
case $CFG_CLANG_VERSION in
1033-
(3.2* | 3.3* | 3.4* | 3.5* | 3.6* | 3.7* | 3.8*)
1052+
(3.2* | 3.3* | 3.4* | 3.5* | 3.6* | 3.7*)
10341053
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
10351054
;;
10361055
(*)

branches/auto/src/doc/reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,14 +1489,14 @@ impl Num for f64 {
14891489
let x: f64 = Num::from_i32(42);
14901490
```
14911491

1492-
Traits may inherit from other traits. Consider the following example:
1492+
Traits may inherit from other traits. For example, in
14931493

14941494
```
14951495
trait Shape { fn area(&self) -> f64; }
14961496
trait Circle : Shape { fn radius(&self) -> f64; }
14971497
```
14981498

1499-
The syntax `Circle : Shape` means that types that implement `Circle` must also
1499+
the syntax `Circle : Shape` means that types that implement `Circle` must also
15001500
have an implementation for `Shape`. Multiple supertraits are separated by `+`,
15011501
`trait Circle : Shape + PartialEq { }`. In an implementation of `Circle` for a
15021502
given type `T`, methods can refer to `Shape` methods, since the typechecker

0 commit comments

Comments
 (0)