about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2015-05-10Add error explanation for E0259.Ricardo Martins-1/+20
2015-05-10Add error explanation for E0154.Ricardo Martins-1/+32
2015-05-10Fix documentation URL in diagnostic message.Ricardo Martins-1/+1
2015-05-10Add error explanation for E0317.Ricardo Martins-1/+18
2015-05-10Rollup merge of #25261 - nham:obsolete_assoc_space_comment, r=alexcrichtonManish Goregaokar-1/+0
This was added in d2f8074 along with the AssocSpace stuff. The AssocSpace stuff was then removed in de8e0ae, except it seems the comment here was missed.
2015-05-10Rollup merge of #25252 - inrustwetrust:crate-type-attribute, r=alexcrichtonManish Goregaokar-5/+16
Fixes the problem in #16974 with unhelpful error messages when accidentally using the wrong syntax for the `crate_type="lib"` attribute. The attribute syntax error now shows up instead of "main function not found".
2015-05-10Rollup merge of #25251 - nham:whitespace_lang_items, r=ManishearthManish Goregaokar-48/+48
In my opinion this looks nicer, but also it matches the whitespace generally used for stability markers.
2015-05-10Rollup merge of #25249 - robyoung:minor-doc-fix, r=ManishearthManish Goregaokar-2/+4
Remove an rogue 'is' and fix some line wrapping.
2015-05-10Rollup merge of #25248 - carols10cents:unused-auxiliaries, r=ManishearthManish Goregaokar-231/+0
Hiiiii Rust, it's me again, Carol ;) Based on the unused files that I found hanging out and that I removed in #25231, I looked at the rest of the auxiliary files to see if there were any more not being used. Guess what!! There were!!!!! ;) Have I mentioned how much I enjoy deleting code? ;) ;) ;) <3
2015-05-10Rollup merge of #25242 - acgtyrant:patch-3, r=ManishearthManish Goregaokar-1/+1
Fix a typo while `io::stdin().read_line()` returns `Result` actually
2015-05-09Remove obsolete comment in rustc::middle::subst.Nick Hamann-1/+0
This was added in d2f8074 along with the AssocSpace stuff. The AssocSpace stuff was then removed in de8e0ae, except the comment was missed it seems.
2015-05-10Update error-handling.mdIsaac Ge-1/+1
Fix two typos while `io::stdin().read_line()` returns `Result` actually Signed-off-by: acgtyrant <acgtyrant@gmail.com>
2015-05-10Upgraded warning for invalid crate_type attribute syntax to an errorinrustwetrust-5/+16
If the user intended to set the crate_type to "lib" but accidentally used incorrect syntax such as `#![crate_type(lib)]`, the compilation would fail with "main function not found". This made it hard to locate the source of the problem, since the failure would cause the warning about the incorrect attribute not to be shown.
2015-05-09Convert #[lang=".."] to #[lang = ".."] for docs too.Nick Hamann-4/+4
2015-05-09Convert #[lang="..."] to #[lang = "..."]Nick Hamann-44/+44
In my opinion this looks nicer, but also it matches the whitespace generally used for stability markers more closely.
2015-05-09Change E0062 and E0063 to say each field should be specified once.Nick Hamann-2/+4
2015-05-09Add long diagnostic for E0137Nick Hamann-1/+6
2015-05-09Add long diagnostics for E0062 and E0063Nick Hamann-2/+10
2015-05-09Minor docs fixRob Young-2/+4
Remove an rogue 'is' and fix some line wrapping.
2015-05-09Remove auxiliary files not used since eb4d39eCarol Nichols-40/+0
2015-05-09Remove auxiliary file not used since 17da4c7Carol Nichols-27/+0
2015-05-09Remove auxiliary files not used since 812637eCarol Nichols-164/+0
2015-05-09Auto merge of #24728 - GuillaumeGomez:type-mismatch, r=pnkfelixbors-1/+136
Part of #24407.
2015-05-09Use of @pnkfelix code and fix typosGuillaume Gomez-1/+136
2015-05-09Auto merge of #24612 - lifthrasiir:flt2dec, r=pnkfelixbors-334/+4054
This is a direct port of my prior work on the float formatting. The detailed description is available [here](https://github.com/lifthrasiir/rust-strconv#flt2dec). In brief, * This adds a new hidden module `core::num::flt2dec` for testing from `libcoretest`. Why is it in `core::num` instead of `core::fmt`? Because I envision that the table used by `flt2dec` is directly applicable to `dec2flt` (cf. #24557) as well, which exceeds the realm of "formatting". * This contains both Dragon4 algorithm (exact, complete but slow) and Grisu3 algorithm (exact, fast but incomplete). * The code is accompanied with a large amount of self-tests and some exhaustive tests. In particular, `libcoretest` gets a new dependency on `librand`. For the external interface it relies on the existing test suite. * It is known that, in the best case, the entire formatting code has about 30 KBs of binary overhead (judged from strconv experiments). Not too bad but there might be a potential room for improvements. This is rather large code. I did my best to comment and annotate the code, but you have been warned. For the maximal availability the original code was licensed in CC0, but I've also dual-licensed it in MIT/Apache as well so there should be no licensing concern. This is [breaking-change] as it changes the float output slightly (and it also affects the casing of `inf` and `nan`). I hope this is not a big deal though :) Fixes #7030, #18038 and #24556. Also related to #6220 and #20870. ## Known Issues - [x] I've yet to finish `make check-stage1`. It does pass main test suites including `run-pass` but there might be some unknown edges on the doctests. - [ ] Figure out how this PR affects rustc. - [ ] Determine which internal routine is mapped to the formatting specifier. Depending on the decision, some internal routine can be safely removed (for instance, currently `to_shortest_str` is unused).
2015-05-09test: fixed some tests affected by banker's rounding.Kang Seonghoon-4/+4
2015-05-09Rollup merge of #25227 - jooert:bitvec-doc-fix, r=alexcrichtonManish Goregaokar-0/+4
I forgot this in #24890.
2015-05-09Rollup merge of #25216 - barosl:no-more-task, r=ManishearthManish Goregaokar-198/+199
I've found that there are still huge amounts of occurrences of `task`s in the documentation. This PR tries to eliminate all of them in favor of `thread`.
2015-05-09Auto merge of #25212 - pnkfelix:dropck-box-trait, r=nikomatsakisbors-115/+393
dropck: must assume `Box<Trait + 'a>` has a destructor of interest. Fix #25199. This detail was documented in [RFC 769]; the implementation was just missing. [breaking-change] The breakage here falls into both obvious and non-obvious cases. The obvious case: if you were relying on the unsoundness this exposes (namely being able to reference dead storage from a destructor, by doing it via a boxed trait object bounded by the lifetime of the dead storage), then this change disallows that. The non-obvious cases: The way dropck works, it causes lifetimes to be extended to longer extents than they covered before. I.e. lifetimes that are attached as trait-bounds may become longer than they were previously. * This includes lifetimes that are only *implicitly* attached as trait-bounds (due to [RFC 599]). So you may have code that was e.g. taking a parameter of type `&'a Box<Trait>` (which expands to `&'a Box<Trait+'a>`), that now may need to be assigned type `&'a Box<Trait+'static>` to ensure that `'a` is not inadvertantly inferred to a region that is actually too long. (See commit ee06263 for an example of this.) [RFC 769]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md#the-drop-check-rule [RFC 599]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
2015-05-09Auto merge of #25214 - acgtyrant:patch-1, r=brsonbors-1/+1
make the definition of static methods explicit
2015-05-09address fallout in libsyntaxtest.Felix S. Klock II-1/+5
2015-05-09Auto merge of #25231 - carols10cents:lingering-quoted-crate-names, ↵bors-71/+6
r=alexcrichton This syntax was removed in b24a3b8 but references remained in the grammar, the reference, rustdoc generation, and some auxiliary test files that don't seem to have been used since 812637e. Thanks!! :heart_decoration:
2015-05-09Auto merge of #25159 - inrustwetrust:wrapping_inline, r=alexcrichtonbors-0/+1
This was causing function calls to be emitted for bitwise complements, even with optimizations on. Steps to reproduce: ``` $ cat wrapping.rs fn main() { let a = std::num::Wrapping(std::env::args().len() as u32); let b = !a; println!("{}", b.0); } $ rustc -O wrapping.rs --emit=asm,link $ grep Not wrapping.s callq _ZN3num8wrapping23Wrapping$LT$u32$GT$.Not3not20hba4b266232e02b1dHkbE ```
2015-05-08Remove references to deprecated `extern crate "foo" as bar` syntaxCarol Nichols-71/+6
This syntax was removed in b24a3b8 but references remained in the grammar, the reference, rustdoc generation, and some auxiliary test files that don't seem to have been used since 812637e.
2015-05-09Auto merge of #25162 - seanmonstar:asref-bytes, r=alexcrichtonbors-12/+27
r? @aturon
2015-05-08collections: change bounds of SliceConcatExt implementations to use Borrow ↵Sean McArthur-12/+10
instead of AsRef
2015-05-08collections: impl AsRef<[u8]> for StringSean McArthur-0/+8
2015-05-08core: impl AsRef<[u8]> for strSean McArthur-0/+9
2015-05-09Document panic behaviour of BitVec::split_offJohannes Oertel-0/+4
2015-05-08Auto merge of #25218 - Manishearth:rollup, r=Manishearthbors-35/+81
- Successful merges: #24864, #25140, #25179, #25181, #25190, #25194, #25195, #25198, #25203, #25210, #25211, #25215 - Failed merges: #25200
2015-05-09Rollup merge of #25215 - acgtyrant:patch-2, r=alexcrichtonManish Goregaokar-1/+1
Fix wrong radius valve from 0.0 to 1.0 as above
2015-05-09Rollup merge of #25211 - huonw:libc, r=cmrManish Goregaokar-2/+4
Many many many people ask in #rust about this libraries, having an explanatory reason will probably help a lot.
2015-05-09Rollup merge of #25210 - rick68:patch-1, r=alexcrichtonManish Goregaokar-1/+1
fixed a doc mistake in libcore/marker.mk
2015-05-09Rollup merge of #25195 - simonkern:master, r=steveklabnikManish Goregaokar-4/+5
I deleted one unneccessary 'the' and added the href for [bindings]
2015-05-09Rollup merge of #25194 - tshepang:assert-convention, r=steveklabnikManish Goregaokar-15/+15
… compared
2015-05-09Rollup merge of #25190 - nham:E0046_E0054, r=alexcrichtonManish Goregaokar-2/+22
cc #24407
2015-05-09Rollup merge of #25181 - steveklabnik:fix_curlies, r=alexcrichtonManish Goregaokar-1/+1
2015-05-09Rollup merge of #25179 - bengesoff:patch-1, r=steveklabnikManish Goregaokar-6/+5
Following paragraph says "we've used `*` which..." but code says "rand=\"0.3.0\""
2015-05-09Rollup merge of #25140 - kevinmehall:mips, r=steveklabnikManish Goregaokar-2/+26
Building with `--target=mipsel-unknown-linux-gnu` currently results in the following errors, fixed by this PR: ``` rustc: x86_64-unknown-linux-gnu/stage2/lib/rustlib/mipsel-unknown-linux-gnu/lib/libstd /vol/rust/src/libstd/os/linux/raw.rs:76:21: 76:28 error: use of undeclared type name `c_ulong` /vol/rust/src/libstd/os/linux/raw.rs:76 pub st_dev: c_ulong, ^~~~~~~ /vol/rust/src/libstd/os/linux/raw.rs:83:22: 83:29 error: use of undeclared type name `c_ulong` /vol/rust/src/libstd/os/linux/raw.rs:83 pub st_rdev: c_ulong, ^~~~~~~ /vol/rust/src/libstd/sys/common/net2.rs:210:52: 210:70 error: unresolved name `libc::TCP_KEEPIDLE` /vol/rust/src/libstd/sys/common/net2.rs:210 setsockopt(&self.inner, libc::IPPROTO_TCP, libc::TCP_KEEPIDLE, ```
2015-05-09Rollup merge of #24864 - astraw:patch-1, r=steveklabnikManish Goregaokar-1/+1
If you have 0 references (`&T`) to a resource, presumably, you could have a mutable reference (`&mut T`). So this only start to make sense at having 1 reference to a resource.