Skip to content

Commit 1f9a9e2

Browse files
committed
---
yaml --- r: 234165 b: refs/heads/beta c: eda85fe h: refs/heads/master i: 234163: 3f9dd97 v: v3
1 parent 762efbd commit 1f9a9e2

File tree

18 files changed

+2626
-310
lines changed

18 files changed

+2626
-310
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 9f1f4c16aa8d6d76f5ead50bfd9eeb1329dfe56b
26+
refs/heads/beta: eda85fede0ed55205545f0508b834994d86414ea
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 370fe2786109360f7c35b8ba552b83b773dd71d6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/configure

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,28 @@ 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+
906+
step_msg "on OpenBSD, disabling jemalloc"
907+
CFG_DISABLE_JEMALLOC=1
908+
fi
909+
888910
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
889911
# system, so if we find that gcc is clang, we should just use clang directly.
890912
if [ $CFG_OSTYPE = apple-darwin -a -z "$CFG_ENABLE_CLANG" ]
@@ -956,7 +978,7 @@ then
956978
LLVM_VERSION=$($LLVM_CONFIG --version)
957979

958980
case $LLVM_VERSION in
959-
(3.[5-7]*)
981+
(3.[5-8]*)
960982
msg "found ok version of LLVM: $LLVM_VERSION"
961983
;;
962984
(*)
@@ -1030,7 +1052,7 @@ then
10301052
esac
10311053
else
10321054
case $CFG_CLANG_VERSION in
1033-
(3.2* | 3.3* | 3.4* | 3.5* | 3.6* | 3.7*)
1055+
(3.2* | 3.3* | 3.4* | 3.5* | 3.6* | 3.7* | 3.8*)
10341056
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
10351057
;;
10361058
(*)

branches/beta/src/doc/reference.md

Lines changed: 12 additions & 12 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. For example, in
1492+
Traits may inherit from other traits. Consider the following example:
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
@@ -2059,31 +2059,31 @@ arbitrarily complex configurations through nesting.
20592059

20602060
The following configurations must be defined by the implementation:
20612061

2062-
* `debug_assertions`. Enabled by default when compiling without optimizations.
2062+
* `debug_assertions` - Enabled by default when compiling without optimizations.
20632063
This can be used to enable extra debugging code in development but not in
20642064
production. For example, it controls the behavior of the standard library's
20652065
`debug_assert!` macro.
2066-
* `target_arch = "..."`. Target CPU architecture, such as `"x86"`, `"x86_64"`
2066+
* `target_arch = "..."` - Target CPU architecture, such as `"x86"`, `"x86_64"`
20672067
`"mips"`, `"powerpc"`, `"arm"`, or `"aarch64"`.
2068-
* `target_endian = "..."`. Endianness of the target CPU, either `"little"` or
2068+
* `target_endian = "..."` - Endianness of the target CPU, either `"little"` or
20692069
`"big"`.
2070-
* `target_env = ".."` - an option provided by the compiler by default
2070+
* `target_env = ".."` - An option provided by the compiler by default
20712071
describing the runtime environment of the target platform. Some examples of
20722072
this are `musl` for builds targeting the MUSL libc implementation, `msvc` for
20732073
Windows builds targeting MSVC, and `gnu` frequently the rest of the time. This
20742074
option may also be blank on some platforms.
2075-
* `target_family = "..."`. Operating system family of the target, e. g.
2075+
* `target_family = "..."` - Operating system family of the target, e. g.
20762076
`"unix"` or `"windows"`. The value of this configuration option is defined
20772077
as a configuration itself, like `unix` or `windows`.
2078-
* `target_os = "..."`. Operating system of the target, examples include
2078+
* `target_os = "..."` - Operating system of the target, examples include
20792079
`"windows"`, `"macos"`, `"ios"`, `"linux"`, `"android"`, `"freebsd"`, `"dragonfly"`,
20802080
`"bitrig"` , `"openbsd"` or `"netbsd"`.
2081-
* `target_pointer_width = "..."`. Target pointer width in bits. This is set
2081+
* `target_pointer_width = "..."` - Target pointer width in bits. This is set
20822082
to `"32"` for targets with 32-bit pointers, and likewise set to `"64"` for
20832083
64-bit pointers.
2084-
* `test`. Enabled when compiling the test harness (using the `--test` flag).
2085-
* `unix`. See `target_family`.
2086-
* `windows`. See `target_family`.
2084+
* `test` - Enabled when compiling the test harness (using the `--test` flag).
2085+
* `unix` - See `target_family`.
2086+
* `windows` - See `target_family`.
20872087

20882088
You can also set another attribute based on a `cfg` variable with `cfg_attr`:
20892089

0 commit comments

Comments
 (0)