summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2015-04-25Make iterator struct docs more consistent.Steve Klabnik-13/+13
Fixes #24008.
2015-04-25remove bad example from PartialEq docsSteve Klabnik-21/+0
Fixes #24173
2015-04-25Clean up Box documentation.Steve Klabnik-8/+13
Without the `box` keyword, one of these two reasons is not correct, so let's just eliminate this section and elaborate on the reason for the legit use case inline. Fixes #24511
2015-04-25Update reference to old_io in fmt docsMatt Brubeck-1/+1
2015-04-25Whoops, please tidySteve Klabnik-9/+9
2015-04-25Add examples by @pnkfelix to fmt precisionSteve Klabnik-5/+62
Fixes #24656
2015-04-25Remove doc-comment default::Default importsCorey Farwell-12/+0
In 8f5b5f94dcdb9884737dfbc8efd893d1d70f0b14, `default::Default` was added to the prelude, so these imports are no longer necessary.
2015-04-25Backport of https://github.com/rust-lang/rust/pull/24783Steve Klabnik-4/+4
Only backporting the style portion, as changing the test suite is needless churn, and the book/reference are getting their own imports at the end.
2015-04-24Merge pull request #24785 from brson/betaAlex Crichton-2/+2
Fix fallout from wrapping_neg revert
2015-04-24Fix fallout from wrapping_neg revertBrian Anderson-2/+2
2015-04-24Prerelease version is .3Brian Anderson-1/+1
2015-04-23Fix some missing casesNiko Matsakis-2/+7
2015-04-23Rewrite constrained type params code to operate generically overNiko Matsakis-38/+89
multiple kinds of parameters (regions and types, specifically) Conflicts: src/librustc_typeck/collect.rs
2015-04-23Augment the constrainted parameter check to ensure that all regionsNiko Matsakis-11/+128
which get mentioned in an associated type are constrained. Arguably we should just require that all regions are constrained, but that is more of a breaking change. Conflicts: src/librustc_typeck/collect.rs
2015-04-23Create a struct to represent early-bound regionsNiko Matsakis-49/+79
2015-04-23Add `Sync` to the bounds in `io::Error`Kevin Ballard-10/+15
This allows `io::Error` values to be stored in `Arc` properly. Because this requires `Sync` of any value passed to `io::Error::new()` and modifies the relevant `convert::From` impls, this is a [breaking-change] Fixes #24049.
2015-04-23Test fixes and rebase conflicts, round 1Alex Crichton-14/+4
Conflicts: src/test/run-pass/task-stderr.rs
2015-04-23Make stability attributes an error. #22830Brian Anderson-10/+6
Conflicts: src/librustc_data_structures/lib.rs
2015-04-23std: Bring back f32::from_str_radix as an unstable APIAlex Crichton-1222/+561
This API was exercised in a few tests and mirrors the `from_str_radix` functionality of the integer types. Conflicts: src/doc/trpl/traits.md src/libstd/sys/windows/fs2.rs
2015-04-23test: Fix fallout in testsAlex Crichton-466/+205
2015-04-23std: Remove deprecated/unstable num functionalityAlex Crichton-5601/+623
This commit removes all the old casting/generic traits from `std::num` that are no longer in use by the standard library. This additionally removes the old `strconv` module which has not seen much use in quite a long time. All generic functionality has been supplanted with traits in the `num` crate and the `strconv` module is supplanted with the [rust-strconv crate][rust-strconv]. [rust-strconv]: https://github.com/lifthrasiir/rust-strconv This is a breaking change due to the removal of these deprecated crates, and the alternative crates are listed above. [breaking-change] Conflicts: src/libstd/num/strconv.rs
2015-04-23std: Remove deprecated AsPath traitAlex Crichton-32/+0
2015-04-23std: Remove deprecated AsOsStr/Str/AsSlice traitsAlex Crichton-157/+2
Cleaning out more deprecated items Conflicts: src/libcore/result.rs
2015-04-23unstabilize Words structkwantam-1/+3
Words struct was stabilied by mistake. Unstabilize.
2015-04-23std: Add Default/IntoIterator/ToOwned to the preludeAlex Crichton-289/+241
This is an implementation of [RFC 1030][rfc] which adds these traits to the prelude and additionally removes all inherent `into_iter` methods on collections in favor of the trait implementation (which is now accessible by default). [rfc]: https://github.com/rust-lang/rfcs/pull/1030 This is technically a breaking change due to the prelude additions and removal of inherent methods, but it is expected that essentially no code breaks in practice. [breaking-change] Closes #24538
2015-04-23unit test for checked overflow during signed negation.Felix S. Klock II-0/+19
2015-04-23Workaround deliberate overflowing negation in serialize::json.Felix S. Klock II-1/+1
2015-04-23side-step potentially panic'ing negate in `fn abs`.Felix S. Klock II-1/+5
2015-04-23Add conditional overflow-checking to signed negate operator.Felix S. Klock II-3/+18
2015-04-23factor out useful helper.Felix S. Klock II-15/+20
2015-04-23Fallout from this change.Felix S. Klock II-54/+220
2015-04-23Regression tests for issues that led me to revise typeck.Felix S. Klock II-0/+126
Close #23729 Close #23827 Close #24356
2015-04-23typeck: Do high-level structural/signature checks before function body checks.Felix S. Klock II-44/+71
This avoids various ICEs, e.g. premature calls to cat_expr that yield the dreaded "cat_expr Errd" ICE.
2015-04-22add notes clarifying introduction of warnings for a pair of run-pass tests.Felix S. Klock II-0/+13
2015-04-22Tests for shadowing between lifetimes and loop labels within function bodies.Felix S. Klock II-3/+275
2015-04-22Check for shadowing between lifetimes and loop labels in function bodies.Felix S. Klock II-12/+201
Note: this Warns rather than error on shadowing problems involving labels. We took this more conservative option mostly due to issues with hygiene being broken for labels and/or lifetimes. Add FIXME regarding non-hygienic comparison.
2015-04-16Auto merge of #24181 - jgallagher:aarch64-hfa, r=pnkfelixbors-0/+84
I doubt this PR is ready to merge as-is, for a couple reasons: * There are no tests for this change. I'm not sure how to add tests for this change, as it modifies the C ABI for a cross-compilation target. Anecdotally, I have an iOS library I've been working on, and before this change, it crashes running on an arm64 device due to bad calling conventions (a simplified example is in #24154), and after this change, it runs correctly. * This is my first foray into LLVM. I did my best to reimplement what Clang does for AArch64 codegen (https://github.com/llvm-mirror/clang/blob/master/lib/CodeGen/TargetInfo.cpp), particularly in `ABIInfo::isHomogeneousAggregate`, `AArch64ABIInfo::isHomogeneousAggregateBaseType`, and `AArch64ABIInfo::isHomogeneousAggregateSmallEnough`, but I'm not confident I got a complete translation, particularly because Clang includes a lot of checks that I don't believe are necessary for rustc. Fixes #24154.
2015-04-16Auto merge of #24448 - alexcrichton:issue-24445, r=huonwbors-1/+54
One of the parameters to the magical "register a thread-local destructor" function is called `__dso_handle` and largely just passed along (this seems to be what other implementations do). Currently we pass the *value* of this symbol, but apparently the correct piece of information to pass is the *address* of the symbol. In a PIE binary the symbol actually contains an address to itself which is why we've gotten away with what we're doing as long as we have. In a non-PIE binary the symbol contains the address `NULL`, causing a segfault in the runtime library if it keeps going. Closes #24445
2015-04-16Auto merge of #24437 - fhahn:issue-24434, r=alexcrichtonbors-2/+19
closes #24434 This PR changes executes `syntax::config::strip_unconfigured_items` before `syntax::feature_gate::check_crate_macros(sess.codemap()`. As far as I know, `strip_unconfigured_items` should be independent of `check_crate_macros`.
2015-04-16Auto merge of #24423 - tbelaire:include_bytes, r=alexcrichtonbors-0/+45
This is a little bit tricky, since with include_str!, we know that we are including utf-8 content, so it's safe to store the source as a String in a FileMap. We don't know that for include_bytes!, but I don't think we actually need to track the contents anyways, so I'm passing "". new_filemap does check for the zero length content, and it should be reasonable, howeven I'm not sure if it would be better to pass None instead of Some(Rc::new("")) as the src component of a FileMap. Fixes bug #24348
2015-04-16Auto merge of #24306 - l0kod:libc-noctty, r=alexcrichtonbors-0/+5
cf. open(2): If the open file refers to a terminal device it will not become the process's controlling terminal even if the process does not have one.
2015-04-16Auto merge of #23682 - tamird:DRY-is-empty, r=alexcrichtonbors-259/+262
r? @alexcrichton
2015-04-16Auto merge of #24485 - brson:is, r=alexcrichtonbors-12/+24
It was an oversight that this was not done in the great int upheaval. [breaking-change]
2015-04-15Forbid is/us suffixes. Fixes #22496Brian Anderson-12/+24
It was an oversight that this was not done in the great int upheaval. [breaking-change]
2015-04-15Auto merge of #24481 - steveklabnik:rollup, r=steveklabnikbors-283/+327
- Successful merges: #24425, #24435, #24438, #24440, #24449, #24457, #24460, #24465, #24467, #24468, #24471, #24476, #24480 - Failed merges:
2015-04-15Rollup merge of #24480 - achanda:move_test, r=alexcrichtonSteve Klabnik-259/+270
- Also move common functions to test.rs - Leaves out Socket address related tests in addr.rs
2015-04-15Rollup merge of #24476 - brettcannon:patch-3, r=steveklabnikSteve Klabnik-1/+1
"as an library" -> "as a library"
2015-04-15Rollup merge of #24471 - andrewseidl:master, r=alexcrichtonSteve Klabnik-1/+1
Use external instead of relative link for rustbyexample.com in generated `src/doc/index.md`. (http://doc.rust-lang.org/nightly/index.html) Previous: http://doc.rust-lang.org/nightly/rustbyexample.com Desired: http://rustbyexample.com/
2015-04-15Rollup merge of #24468 - brettcannon:patch-2, r=alexcrichtonSteve Klabnik-4/+4
Link spanned a line and was missing the actual link target.
2015-04-15Rollup merge of #24467 - brettcannon:patch-1, r=alexcrichtonSteve Klabnik-2/+2
Had a newline in middle of a link, causing the link text to be shown with `[]`.