Commit Graph

50192 Commits

Author SHA1 Message Date
Alex Crichton
8f803c2026 Remove "powerpc64le" and "mipsel" target_arch
Currently the `mipsel-unknown-linux-gnu` target doesn't actually set the
`target_arch` value to `mipsel` but it rather uses `mips`. Alternatively the
`powerpc64le` target does indeed set the `target_arch` as `powerpc64le`,
causing a bit of inconsistency between theset two.

As these are just the same instance of one instruction set, let's use
`target_endian` to switch between them and only set the `target_arch` as one
value. This should cut down on the number of `#[cfg]` annotations necessary and
all around be a little more ergonomic.
2016-02-01 20:39:07 -08:00
bors
508c21e4ae Auto merge of #31314 - alexcrichton:less-warnings, r=brson
Help cleans up our build a bit and stays in line with the rest of our crates
denying warnings traditionally.
2016-02-02 04:33:02 +00:00
Kamal Marhubi
129a6239d2 docs: Standardize on 'Errors' header in std docs 2016-02-01 21:41:29 -05:00
bors
a4a249fcab Auto merge of #31279 - DanielJCampbell:MacroReferencing, r=nrc
r? @nrc
2016-02-02 01:35:39 +00:00
Ryan Thomas
df31868cac Update TESTNAME description 2016-02-02 10:58:59 +11:00
Ryan Thomas
a5e491fa92 Update TESTNAME matching description 2016-02-02 10:57:24 +11:00
Ryan Thomas
66eb588476 Merge branch 'master' of https://github.com/rust-lang/rust into doc 2016-02-02 10:54:05 +11:00
Steve Klabnik
dc3a39d807 Explain behavior of _
Fixes #31154
2016-02-01 18:49:47 -05:00
Steve Klabnik
69c298e733 Further explain take_while
This is a behavior that some find confusing, so it deserves its own example.

Fixes #31318
2016-02-01 18:33:08 -05:00
bors
b94cd7a5bd Auto merge of #31250 - nrc:more-aborts, r=@nikomatsakis
With this PR we can save-analysis on code with errors, essential foundation work for IDE support.
2016-02-01 21:22:59 +00:00
Niko Matsakis
35d6efb232 Use the per-tree state to detect and permit DAGs (but not cyclic graphs) 2016-02-01 16:08:34 -05:00
Alex Crichton
0574b395ef doc: Move 32-bit MSVC to a tier 1 platform
Some other shufflings as well:

* Three powerpc triples for Linux have been added recently
* An armv7 linux triple was added recently
* The 64-bit Solaris triple is now mentioned in tier 3

We are currently now also building nightlies for iOS, powerpc triples, and
armv7, but there hasn't been much vetting of the triples themselves so I've left
them in tier 3 for now.
2016-02-01 12:53:38 -08:00
Steve Klabnik
7deb057d55 Discuss pitfalls of stateful closures with Map
Fixes #30632
2016-02-01 15:38:20 -05:00
Tshepang Lekhonkhobe
4289973a2d doc: bindings not needed for this example 2016-02-01 22:14:10 +02:00
Nick Cameron
185a0e51bf Reviewer requested changes and test fixes 2016-02-02 09:00:35 +13:00
bors
7cae6b59b4 Auto merge of #30367 - tamird:fix-makefile-bugs, r=alexcrichton
Some of this is scary stuff. Probably time to lint against this.

Found with `make --warn-undefined-variables`.

r? @alexcrichton
2016-02-01 18:27:54 +00:00
Alexander Lopatin
ed08701539 Fix a documentation typo 2016-02-01 21:09:19 +03:00
Brandon W Maister
d59372b7aa Decide to hide constness only in fn/method renders
ConstnessSpace has no knowledge of the type of item it's modifying, so
hide the constness a level up.
2016-02-01 13:05:37 -05:00
Niko Matsakis
37815fde39 Add a notion of "per-tree" state 2016-02-01 12:59:49 -05:00
Kamal Marhubi
49fe519791 book: Change "Failures" to "Errors" in doc special sections chapter
This matches the usage in the standard library's documentation.
2016-02-01 12:26:51 -05:00
Steve Klabnik
7df3bf1860 make this example more obvious
Fixes #31334
2016-02-01 12:19:33 -05:00
bors
2849ca64be Auto merge of #30901 - mackwic:doc-core-convert, r=steveklabnik
Also add a note about the necessary simplicity of the conversion.
Related issue: #29349

r? @steveklabnik
2016-02-01 16:25:13 +00:00
bors
28bed3f5e6 Auto merge of #31317 - jseyfried:remove_external_module_children, r=nrc
This PR refactors away `Module`'s `external_module_children` and instead puts `extern crate` declarations in `children` like other items, simplifying duplicate checking and name resolution.

This PR also allows values to share a name with extern crates, which are only defined in the type namespace. Other than that, it is a pure refactoring.

r? @nrc
2016-02-01 14:26:48 +00:00
bors
91e804409b Auto merge of #31303 - alexcrichton:mips-warnings, r=aturon
Currently any compilation to MIPS spits out the warning:

    'generic' is not a recognized processor for this target (ignoring processor)

Doesn't make for a great user experience! We don't encounter this in the normal
bootstrap because the cpu/feature set are set by the makefiles. Instead let's
just propagate these to the defaults for the entire target all the time (still
overridable from the command line) and prevent warnings from being emitted by
default.
2016-02-01 12:24:01 +00:00
Reeze Xia
7aa41a1a86 Comment fix 2016-02-01 18:53:07 +08:00
bors
aaab14dd3f Auto merge of #31277 - DanielJCampbell:SpanEquality, r=nrc
r? @nrc
2016-02-01 10:25:31 +00:00
Tamir Duberstein
d03712977d mk: fix some undefined variable warnings
Some of this is scary stuff. Probably time to lint against this.

Found with `make --warn-undefined-variables`.
2016-02-01 05:21:06 -05:00
bors
14dc9fcc67 Auto merge of #31232 - stepancheg:enum-univariant, r=nrc
```
enum Univariant {
    X = 17
}
```

Fixes #10292
2016-02-01 07:06:05 +00:00
Prayag Verma
2043cd8623 Fix typo in doc/book/getting-started.md
Spelling mistake -
`familliar` > `familiar`
2016-02-01 12:15:33 +05:30
Daniel Campbell
1d326419a1 Implemented macro referencing for save analysis 2016-02-01 19:09:18 +13:00
Ryan Thomas
a58d3303f2 Update docs about how to run specific tests 2016-02-01 17:04:39 +11:00
bors
654f68dd50 Auto merge of #30866 - jseyfried:fix_shadowed_use_visibility, r=nrc
This reverts PR #30324, fixing bug #30159 in which a public a glob import makes public any preceding imports that share a name with an item in the module being glob imported from.

For example,
```rust
pub fn f() {}
pub mod foo {
    fn f() {}
}

mod bar {
    use f;
    use f as g;
    pub use foo::*; // This makes the first import public but does not affect the second import.
}
```

This is a [breaking-change].
2016-02-01 04:52:12 +00:00
Dirk Gadsden
76839221ff Minor corrections in docs for std::process::Child 2016-01-31 20:50:34 -08:00
bors
094c5b0d61 Auto merge of #31331 - petevine:master, r=alexcrichton
The target was meant as a modern generic `armv7` option, therefore a few changes were necessary:

- gcc's `-march=armv7` was causing compilation failures on modern linux systems
- rust codegen defaulted to `cortex-a7` causing illegal instruction crashes on previous `armv7-a` processors (e.g, cortex-a5, cortex-a8)
2016-01-31 23:06:01 +00:00
Alex Burka
20c1dfd39e show location of unused error codes 2016-01-31 17:19:38 -05:00
petevine
2efd024ad3 Fix the armv7 linux target 2016-01-31 22:26:34 +01:00
Daniel Campbell
e1be504068 Spans now derive equality 2016-02-01 10:18:50 +13:00
Brandon W Maister
cea8f67199 Don't show const in docs when it's not available
Fixes #31098
2016-01-31 15:48:08 -05:00
Dirk Gadsden
cee1695e08 Safety docs about std::process::Child going out of scope
There is no `Drop` implemented for `Child`, so if it goes out
of scope in Rust-land and gets deallocated, the child process
will continue to exist and execute. If users want a guarantee
that the process has finished running and exited they must
manually use `kill`, `wait`, or `wait_with_output`.

Fixes #31289.
2016-01-31 11:50:22 -08:00
Nick Cameron
4f97338a3a Some changes to save-analysis to cope with errors 2016-02-01 08:42:27 +13:00
Nick Cameron
6bd782c4ca Try to run compiler callbacks when we error out 2016-02-01 08:42:27 +13:00
Nick Cameron
b6e4f18e55 Replace some aborts with Results
Fixes #31207

by removing abort_if_new_errors
2016-02-01 08:42:27 +13:00
Sean Leffler
418daa761e Fix 31267, add rpass tests 2016-01-31 11:31:06 -08:00
Nikita Baksalyar
bb6e646c7b
Fix unresolved name in libstd/sys/unix/thread 2016-01-31 19:01:32 +03:00
Nikita Baksalyar
e5da5d59f8
Rename sunos to solaris 2016-01-31 19:01:30 +03:00
Nikita Baksalyar
6d07b68f5e
Fix problems with f64 and DirEntry on Illumos 2016-01-31 18:57:30 +03:00
Nikita Baksalyar
ebab24059a
Apply several fixes for Illumos support 2016-01-31 18:57:28 +03:00
Nikita Baksalyar
f189d7a693
Add Illumos support 2016-01-31 18:57:26 +03:00
bors
9041b93058 Auto merge of #31298 - japaric:mips-musl, r=alexcrichton
This target covers MIPS devices that run the trunk version of OpenWRT.

The x86_64-unknown-linux-musl target always links statically to C libraries. For
the mips(el)-unknown-linux-musl target, we opt for dynamic linking (like most of
other targets do) to keep binary size down.

As for the C compiler flags used in the build system, we use the same flags used
for the mips(el)-unknown-linux-gnu target.

r? @alexcrichton
2016-01-31 12:27:06 +00:00
Jorge Aparicio
27127dbc23 update libc submodule
fixes failed test (std::os::raw::tests::unix) in x86_64-musl target
2016-01-31 07:20:34 -05:00