summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2015-06-08Auto merge of #25989 - jooert:implement_rfc839, r=Gankrobors-1/+291
I had to use `impl<'a, V: Copy> Extend<(usize, &'a V)> for VecMap<V>` instead of `impl<'a, V: Copy> Extend<(&'a usize, &'a V)> for VecMap<V>` as that's what is needed for doing ```rust let mut a = VecMap::new(); let b = VecMap::new(); b.insert(1, "foo"); a.extend(&b) ``` I can squash the commits after review. r? @Gankro
2015-06-08Updated with requested changesMathieu David-4/+1
2015-06-08Fixed old occurences of the removed array syntaxMarcel Müller-6/+6
As per RFC#520 the syntax for arrays has changed, this changes the remaining comments to reflect the new syntax.
2015-06-08Replace usage of String::from_str with String:fromSimon Sapin-106/+105
2015-06-08Auto merge of #26091 - chellmuth:pub-struct-field-span, r=nrcbors-1/+34
Issue: #26083 Re-submitting https://github.com/rust-lang/rust/pull/26084 r? @nrc
2015-06-08Add ability to change `ar` tool from target specification jsonRussell McClellan-0/+1
2015-06-08Auto merge of #26088 - tamird:llvm35-fixes, r=alexcrichtonbors-11/+52
rebase of #25739, closes #25739. r? @alexcrichton
2015-06-08Implement RFC 839Johannes Oertel-1/+291
Closes #25976.
2015-06-08Auto merge of #26029 - GuillaumeGomez:const_check, r=Manishearthbors-1/+19
Part of #24407.
2015-06-08Skip useless recursion in freshening and late-bound-region substitutioAriel Ben-Yehuda-76/+129
Before: 581.72user 4.75system 7:42.74elapsed 126%CPU (0avgtext+0avgdata 1176224maxresident)k llvm took 359.183 After: 550.63user 5.09system 7:20.28elapsed 126%CPU (0avgtext+0avgdata 1165516maxresident)k llvm took 354.801
2015-06-08Add error explanation for E0014Guillaume Gomez-1/+19
2015-06-08Auto merge of #25823 - oli-obk:static_to_const_lint, r=alexcrichtonbors-22/+18
r? @eddyb
2015-06-07Add licenseChris Hellmuth-0/+10
2015-06-08Auto merge of #26018 - nrc:codegen, r=@nikomatsakisbors-89/+86
Closes #19826 r? @nikomatsakis There is still some work to do until parallel codegen is perfect - we don't pass make check due to missing the symbol for registering a macro. But we do bootstrap with codegen_units=4 and pass make check without codegen_units, so I think it should land. For the curious, make rustc-stage2 -j8: ``` codegen_units=1: real 9m18.074s user 11m59.858s sys 0m13.281s codegen_units=4: real 6m3.672s user 13m5.474s sys 0m12.146s ``` Which is a 33% speedup :-)
2015-06-07rustc_trans: 'assume' intrinsic is only available on LLVM >= 3.6David Voit-1/+25
Based on the patch from Luca Bruno. Instead of creating an empty C function in the rt, this version creates an shim noop function using llvm. This function is declared as internal, and the unsupported assume intrinsic and the shim gets completly removed by the optimizer.
2015-06-07rustc_trans: don't hardcode llvm version for conditional intrinsicsLuca Bruno-10/+27
This commit introduce a third parameter for compatible_ifn!, as new intrinsics are being added in recent LLVM releases and there is no need to hardcode a specific case. Signed-off-by: Luca Bruno <lucab@debian.org>
2015-06-07Remove useless `const`Tamir Duberstein-1/+1
2015-06-08Auto merge of #26087 - fitzgen:improve-suggestion-hueristics, r=Aatchbors-14/+35
This makes the maximum edit distance of typo suggestions a function of the typo'd name's length. FWIW, clang uses this same hueristic, and I've found their suggestions to be better than rustc's. Without something like this, you end up with suggestions that aren't related at all when there are short variable names. See also https://github.com/rust-lang/rust/issues/20028#issuecomment-109767159
2015-06-07Make the maximum edit distance of typo suggestions a function of the typo'd ↵Nick Fitzgerald-14/+35
name's length.
2015-06-08error due to rebaseNick Cameron-1/+1
2015-06-08review changes - only show closure ids in verbose modeNick Cameron-3/+14
2015-06-08Don't visit items in removed branchesNick Cameron-10/+0
Note that they will be visited anyway by base::trans_item, this just duplicates the items.
2015-06-08Tidying up, fix some minor linkage bugs, use ty flags to avoid caching ↵Nick Cameron-79/+75
closure types.
2015-06-07Add a regression test for public struct field spansChris Hellmuth-0/+20
2015-06-07StructField span should include `pub`Chris Hellmuth-1/+4
2015-06-07Make all leaks safe in language referencediwic-1/+1
Since it was determined that no leaks were unsafe, some of the documentation is still not clear about this. Here's one example.
2015-06-07Auto merge of #25912 - tshepang:better-str-examples, r=blussbors-50/+28
2015-06-07Deprecate String::from_str in favor of String::fromSimon Sapin-2/+2
With the latter is provided by the `From` conversion trait, the former is now completely redundant. Their code is identical.
2015-06-07Auto merge of #26070 - brson:nightlyfix, r=alexcrichtonbors-0/+1
Broken on nightly linux distcheck.
2015-06-07Update doctest in comments.mdChuck Bassett-0/+3
For a user following the path of reading Chapter 5: Syntax & Symantics prior to Chapter 4: Learn Rust, this will be the first time they have encountered executable tests inside documentation comments. The test will fail because the `add_one` function is not defined in the context of the doctest. This might not be the optimal place to introduce and explain the `/// #` notation but I think it is important that this snippet pass as a test when `rustdoc --test` is run against it if it is going to be shown.
2015-06-07doc: improve some of str examplesTshepang Lekhonkhobe-50/+28
2015-06-07test: Ignore gdb-pretty-struct-and-enums.rsBrian Anderson-0/+1
Broken on nightly linux distcheck.
2015-06-07change some statics to constantsOliver 'ker' Schneider-22/+18
2015-06-07Don’t ICE if fs::canonicalise fails in meta-loadSimonas Kazlauskas-7/+49
This might fail when --extern library is a symlink to an invalid location. Instead just pretend it doesn’t exist at all.
2015-06-07Auto merge of #26066 - steveklabnik:docs_on_a_plane, r=alexcrichtonbors-24/+6
When things get stabilized, they don't always have their docs updated to remove the gate.
2015-06-06Clear cached landing pads before generating a call.Eli Friedman-0/+47
Using the wrong landing pad has obvious bad effects, like dropping a value twice. Testcase written by Alex Crichton. Fixes #25089.
2015-06-07Auto merge of #26057 - audebert:master, r=alexcrichtonbors-1/+1
The constraint referenced here is: ```rust fn foo<T>(t: T) where T: Trait<AssociatedType=u32> { /* */ } ```
2015-06-06Remove many unneeded feature annotations in the docsSteve Klabnik-24/+6
When things get stabilized, they don't always have their docs updated to remove the gate.
2015-06-06Auto merge of #26047 - chuckSMASH:patch-1, r=alexcrichtonbors-1/+1
The sensible default used here for the version number in the auto-generated Cargo.toml is 0.1.0, not 0.0.1 (at least as of cargo 0.2.0-nightly efb482d).
2015-06-06fix path in toc linksfunkill-1/+1
2015-06-06Auto merge of #26050 - bluss:linked-list, r=Gankrobors-83/+132
The recent bug that was found in LinkedList reminded me of some general cleanup that's been waiting for some time. - Use a loop from the front in Drop, it works just as well and without an unsafe block - Change Rawlink methods to use `unsafe` in an idiomatic way. This does mean that we need an unsafe block for each dereference of a raw link. Even then, the extent of unsafe-critical code is even larger of course, since safety depends on the whole data structure's integrity. This is a general problem we are aware of. - Some cleanup just to try to decrease the amount of Rawlink handling.
2015-06-06Mark str::to_uppercase and str::to_lowercase as stable.Simon Sapin-5/+5
2015-06-06linked_list: Add Rawlink::fromUlrik Sverdrup-12/+14
2015-06-06linked_list: Add method Node::set_nextUlrik Sverdrup-11/+20
2015-06-06linked_list: Cleanup code in split_offUlrik Sverdrup-13/+37
2015-06-06Fix small typo in diagnostics.rsRémi Audebert-1/+1
2015-06-06Auto merge of #26038 - eddyb:dst-nested, r=luqmanabors-15/+36
Allows `Rc<RefCell<Trait>>` and other containers. Fixes #25351. r? @nrc This is the discussed strategy, more or less.
2015-06-06Auto merge of #26045 - sourcefrog:patch-1, r=alexcrichtonbors-2/+2
File handles are inherited from, not by, the parent process
2015-06-06linked_list: Use unsafe properly for Rawlink methodsUlrik Sverdrup-48/+70
2015-06-06linked_list: Use a safe loop in DropUlrik Sverdrup-11/+3