about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2017-05-15Add links to the `thread::LocalKey` doc.Felix Raimundo-15/+30
Part of #29378 .
2017-05-13Auto merge of #41920 - arielb1:inline-drop, r=eddybbors-1/+67
remove the #[inline] attribute from drop_in_place Apparently LLVM has exponential code growth while inlining landing pads if that attribute is present. Fixes #41696. beta-nominating because regression. r? @eddyb
2017-05-13add min-llvm-versionAriel Ben-Yehuda-0/+1
2017-05-13Auto merge of #41965 - Mark-Simulacrum:rollup, r=Mark-Simulacrumbors-384/+475
Rollup of 15 pull requests - Successful merges: #41820, #41860, #41876, #41896, #41912, #41916, #41918, #41921, #41923, #41934, #41935, #41940, #41942, #41943, #41951 - Failed merges:
2017-05-13Auto merge of #41861 - arthurprs:update-jemalloc, r=alexcrichtonbors-23/+1
Update jemalloc to 4.5.0 * pointing jemalloc submodule to the 4.5.0 HEAD + generated configure script * removed the now unnecessary extra config for windows. jemalloc is now much better at configuring itself overall. Let's see what the CI think.
2017-05-13Auto merge of #41847 - alexcrichton:less-unstable-annotations, r=eddybbors-140/+201
rustc: Add a new `-Z force-unstable-if-unmarked` flag This commit adds a new `-Z` flag to the compiler for use when bootstrapping the compiler itself. We want to be able to use crates.io crates, but we also want the usage of such crates to be as ergonomic as possible! To that end compiler crates are a little tricky in that the crates.io crates are not annotated as unstable, nor do they expect to pull in unstable dependencies. To cover all these situations it's intended that the compiler will forever now bootstrap with `-Z force-unstable-if-unmarked`. This flags serves a dual purpose of forcing crates.io crates to themselves be unstable while also allowing them to use other "unstable" crates.io crates. This should mean that adding a dependency to compiler no longer requires upstream modification with unstable/staged_api attributes for inclusion!
2017-05-12Rollup merge of #41951 - Eijebong:master, r=GuillaumeGomezMark Simulacrum-0/+1
rustdoc: Break words in the location box of the sidebar. This prevents long names from overflowing. Before: ![before](https://img.bananium.fr/eijebong/afcfe18b-393e-4d3b-bc11-fe3def6659b9.png) After: ![after](https://img.bananium.fr/eijebong/9483466b-3b6c-4509-ab0f-fd0c6572ef27.png)
2017-05-12Rollup merge of #41943 - malbarbo:android-openssl, r=alexcrichtonMark Simulacrum-0/+17
bootstrap: openssl android support
2017-05-12Rollup merge of #41942 - tommyip:master, r=Mark-SimulacrumMark Simulacrum-1/+4
Fix unexpected panic with the -Z treat-err-as-bug option This fix an issue where the compiler panics even if there is no error when passed with the `-Z treat-err-as-bug` option. Fixes #35886. r? @Mark-Simulacrum
2017-05-12Rollup merge of #41940 - est31:master, r=eddybMark Simulacrum-0/+3
config.toml.example: point out that optimize = false won't speed up a full bootstrap Originally I've learned about this by @eddyb pointing this out to me over IRC, and after having told someone today the same over IRC I've thought that this is a common mistake and should be prevented by a note in config.toml.example r? @eddyb
2017-05-12Rollup merge of #41935 - iKevinY:detect-empty-files, r=Mark-SimulacrumMark Simulacrum-0/+5
Add tidy check to detect empty files Addresses #18439.
2017-05-12Rollup merge of #41934 - est31:remove_unused_macros, r=nagisaMark Simulacrum-96/+1
Remove unused macros from the codebase Thanks to the lint I've implemented in #41907 I've found some unused macros inside the rustc codebase.
2017-05-12Rollup merge of #41923 - eddyb:issue-41744, r=arielb1Mark Simulacrum-2/+21
rustc_trans: do not attempt to truncate an i1 const to i1. Fixes #41744 by skipping the truncation when it'd be a noop anyway.
2017-05-12Rollup merge of #41921 - GuillaumeGomez:fix-search-style, r=steveklabnikMark Simulacrum-0/+3
Fix search when looking to sources Before: <img width="1440" alt="screen shot 2017-05-11 at 22 33 28" src="https://cloud.githubusercontent.com/assets/3050060/25970761/03fd2ade-369a-11e7-9fd6-783c23455589.png"> After: <img width="1440" alt="screen shot 2017-05-11 at 22 34 05" src="https://cloud.githubusercontent.com/assets/3050060/25970770/09ac71ce-369a-11e7-9038-559f414e07b5.png"> r? @rust-lang/docs
2017-05-12Rollup merge of #41918 - brson:lic, r=alexcrichtonMark Simulacrum-5/+8
Annotate the license exceptions
2017-05-12Rollup merge of #41916 - mglagla:typo, r=sfacklerMark Simulacrum-1/+1
Fix typo in Iterator::size_hint example comment
2017-05-12Rollup merge of #41912 - oli-obk:patch-3, r=eddybMark Simulacrum-24/+23
Upgrade some comments to doc comments
2017-05-12Rollup merge of #41896 - tshepang:too-long, r=steveklabnikMark Simulacrum-2/+2
doc: break into 2 sentences
2017-05-12Rollup merge of #41876 - oli-obk:diagnosing_diagnostics, r=nagisaMark Simulacrum-257/+392
Refactor suggestion diagnostic API to allow for multiple suggestions r? @jonathandturner cc @nrc @petrochenkov
2017-05-12Rollup merge of #41860 - mbrubeck:docs, r=nagisaMark Simulacrum-6/+4
Remove wrong or outdated info from CString docs. None
2017-05-12Rollup merge of #41820 - devurandom:patch-1, r=alexcrichtonMark Simulacrum-1/+1
bootstrap: Output name of failed config in case of errors
2017-05-13Auto merge of #41955 - alexcrichton:update-sccache, r=eddybbors-39/+39
Update sccache binaries to mozilla/sccache@d3627d766 This commit updates the sccache binaries to fix a cache load failure seen on #41926, fixed by mozilla/sccache#119
2017-05-12Auto merge of #41926 - arielb1:box-mir, r=eddybbors-40/+41
box large variants in MIR Operand: 72 -> 24 B Statement: 192 -> 96 B Terminator: 256 -> 112 B librustc translation memory usage: 1795 -> 1669 MB next step would be interning lvalues, I suppose? cc #36799 (@urschrei - does ostn15_phf compile with this PR?) r? @eddyb
2017-05-12Add tidy check to detect empty filesKevin Yap-0/+5
Addresses #18439.
2017-05-12Update sccache binaries to mozilla/sccache@d3627d766Alex Crichton-39/+39
This commit updates the sccache binaries to fix a cache load failure seen on #41926, fixed by mozilla/sccache#119
2017-05-12rustdoc: Break words in the location box of the sidebar.Bastien Orivel-0/+1
This prevents long names from overflowing.
2017-05-12Fix unexpected panic with the -Z treat-err-as-bug optionTommy Ip-1/+4
This fix an issue where the compiler panics even if there is no error when passed with the `-Z treat-err-as-bug` option. Fixes #35886.
2017-05-12config.toml.example: add note that optimize = false won't speed up a full ↵est31-0/+3
bootstrap
2017-05-12Don't use a DUMMY_SP for reporting issues with crate importsOliver Schneider-1/+1
2017-05-12Weave the span of an import through the resolve codeOliver Schneider-64/+101
2017-05-12Remove some unused macros from the rust codebaseest31-96/+1
Removes unused macros from: * libcore * libcollections The last use of these two macros was removed in commit b64c9d56700e2c41207166fe8709711ff02488ff when the char_range_at_reverse function was been removed. * librustc_errors Their last use was removed by commits 2f2c3e178325dc1837badcd7573c2c0905fab979 and 11dc974a38fd533aa692cea213305056cd3a6902. * libsyntax_ext * librustc_trans Also, put the otry macro in back/msvc/mod.rs under the same cfg argument as the places that use it.
2017-05-12Auto merge of #41757 - alexcrichton:stabilize-crt-static, r=japaricbors-28/+16
rustc: Stabilize `-C target-feature=+crt-static` This commit stabilizes the `crt-static` feature accepted by the compiler. Note that this does not stabilize the `#[cfg]` attribute for `crt-static` as that's going to be covered by #29717. This only stabilizes a few small pieces: * The `crt-static` feature as accepted by the `-C target-feature` flag, and its connection with the platform-specific definition of `crt-static`. * The semantics of `--print cfg` printing out activated `crt-static` feature, if available. This should be enough to get the benefits of `crt-static` on stable Rust with MSVC and with musl, but sidsteps the issue of stabilizing #29717 first. Closes #37406
2017-05-12Auto merge of #41716 - nikomatsakis:issue-41677, r=arielb1bors-81/+249
enforce WF conditions after generalizing Add a `WF(T')` obligation after generalizing `T` to `T'`, if `T'` contains an unconstrained type variable in a bivariant context. Fixes #41677. Beta nominating -- regression. r? @arielb1
2017-05-11rustc: Remove #![unstable] annotationAlex Crichton-97/+121
These are now no longer necessary with `-Z force-unstable-if-unmarked`
2017-05-11rustbuild: Use `-Z force-unstable-if-unmarked`Alex Crichton-2/+18
2017-05-12box large variants in MIRAriel Ben-Yehuda-40/+41
Operand: 72 -> 24 B Statement: 192 -> 96 B Terminator: 256 -> 112 B librustc translation memory usage: 1795 -> 1669 MB next step would be interning lvalues, I suppose?
2017-05-11Auto merge of #41684 - jethrogb:feature/ntstatus, r=alexcrichtonbors-3/+38
Windows io::Error: also format NTSTATUS error codes `NTSTATUS` errors may be encoded as `HRESULT`, see [[MS-ERREF]](https://msdn.microsoft.com/en-us/library/cc231198.aspx). These error codes can still be formatted using `FormatMessageW` but require some different parameters to be passed in. I wasn't sure if this needed a test and if so, how to test it. Presumably we wouldn't want to make our tests dependent on localization-dependent strings returned from `FormatMessageW`. Users that get an `err: NTSTATUS` will need to do `io::Error::from_raw_os_error(err|0x1000_0000)` (the equivalent of [`HRESULT_FROM_NT`](https://msdn.microsoft.com/en-us/library/ms693780(VS.85).aspx))
2017-05-12rustc_trans: do not attempt to truncate an i1 const to i1.Eduard-Mihai Burtescu-2/+21
2017-05-11Fix search when looking to sourcesGuillaume Gomez-0/+3
2017-05-11remove the #[inline] attribute from drop_in_placeAriel Ben-Yehuda-1/+66
Apparently LLVM has exponential code growth while inlining landing pads if that attribute is present. Fixes #41696.
2017-05-11Annotate the license exceptionsBrian Anderson-5/+8
2017-05-11correct various error messages that changedNiko Matsakis-10/+9
The new messages seem universally better. I think these result because we recognize that we are in an invariant context more often.
2017-05-11add a WF obligation if a type variable appears in bivariant positionNiko Matsakis-18/+106
2017-05-11replace the type generalizer with one based on varianceNiko Matsakis-65/+146
2017-05-11Fix typo in size_hint example commentMartin Glagla-1/+1
2017-05-11Auto merge of #41913 - nikomatsakis:issue-41849-variance-cycle, r=eddybbors-23/+84
do not fetch variance for items when equating Fixes #41849. Problem was that evaluating the constant expression required evaluating a trait, which would equate types, which would request variance information, which it would then discard. However, computing the variance information would require determining the type of a field, which would evaluate the constant expression. (This problem will potentially arise *later* as we move to more sophisticated constants, however, where we need to check subtyping. We can tackle that when we come to it.) r? @eddyb
2017-05-11Add testJethro Beekman-0/+14
2017-05-11Upgrade some comments to doc commentsOliver Schneider-24/+23
2017-05-11do not fetch variance for items when equatingNiko Matsakis-23/+84
Fixes #41849. Problem was that evaluating the constant expression required evaluating a trait, which would equate types, which would request variance information, which it would then discard. However, computing the variance information would require determining the type of a field, which would evaluate the constant expression. (This problem will potentially arise *later* as we move to more sophisticated constants, however, where we need to check subtyping. We can tackle that when we come to it.)
2017-05-11Auto merge of #41864 - malbarbo:android-docker, r=alexcrichtonbors-5/+284
Add disabled android host builders Introduce the concept of disabled builder. A disabled builder is one that is not run by travis. It is intended to be run by the user who wants a rustc for a tier 2 or 3 platform. Off corse, there is no guarantee that it will work.