summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2017-03-10Fix #39390 on beta.Jeffrey Seyfried-11/+25
2017-03-09Propagate expected type hints through struct literals.Eduard-Mihai Burtescu-8/+41
2017-03-09Rename expected_types_for_fn_args to expected_inputs_for_expected_output.Eduard-Mihai Burtescu-12/+12
2017-03-09trans: don't ICE when trying to create ADT trans-itemsAriel Ben-Yehuda-7/+62
ADTs are translated in-place from rustc_trans::callee, so no trans-items are needed. This fix will be superseded by the shimmir branch, but I prefer not to backport that to beta. Fixes #39823.
2017-03-09Fix const expression macro invocations.Jeffrey Seyfried-20/+45
2017-03-09Fix ICE: don't use `struct_variant` on enumsEsteban Küber-1/+39
Fix #40221 and add unittest.
2017-03-04Beta backport of #40254Simonas Kazlauskas-3/+7
2017-02-28travis: Split Android into dist/test imagesAlex Crichton-22/+82
PRs can't land againt beta right now because the android bot is filling up on disk space. I don't really know what's going on but the android bot is the longest one to run anyway so it'll benefit from being split up regardless.
2017-02-25std: Relax UnwindSafe impl for UniqueAlex Crichton-2/+5
Add the `?Sized` bound as we don't require the type to be sized. Closes #40011
2017-02-25use a more conservative inhabitableness ruleAriel Ben-Yehuda-9/+19
This is a [breaking-change] from 1.15, because this used to compile: ```Rust enum Void {} fn foo(x: &Void) { match x {} } ```
2017-02-25check_match: don't treat privately uninhabited types as uninhabitedAriel Ben-Yehuda-37/+144
Fixes #38972.
2017-02-23Fix typo in bootstrap.py info messageDirkjan Ochtman-1/+1
2017-02-23Guard against USER not existing in the environmentDirkjan Ochtman-1/+1
2017-02-23Don't check for sudo environment if vendored sources are already configuredDirkjan Ochtman-1/+1
2017-02-23pacify tidyAriel Ben-Yehuda-4/+7
2017-02-23address review commentsAriel Ben-Yehuda-1/+1
2017-02-23Inline the function `with_lvalue_ref` into `trans_transmute`Ariel Ben-Yehuda-49/+31
The function was a footgun because it created `undef` references to ZSTs, which could cause trouble were they to leak to user code.
2017-02-23remove unneeded drop of isizeAriel Ben-Yehuda-4/+0
2017-02-23emit "align 1" metadata on loads/stores of packed structsAriel Ben-Yehuda-223/+363
According to the LLVM reference: > A value of 0 or an omitted align argument means that the operation has the ABI alignment for the target. So loads/stores of fields of packed structs need to have their align set to 1. Implement that by tracking the alignment of `LvalueRef`s. Fixes #39376.
2017-02-23Fix ICE when accessing mutably an immutable enumEsteban Küber-1/+33
2017-02-23Fix ICE when parsing token trees after an error.Jeffrey Seyfried-3/+42
2017-02-23Fix ICE on certain sequence repetitions.Jeffrey Seyfried-5/+29
2017-02-23fix run-pass test that required `Copy` implNiko Matsakis-0/+2
2017-02-23remove vestiges of the old suggestion machineryNiko Matsakis-260/+118
2017-02-23add some sample UI error test casesNiko Matsakis-0/+243
These are some samples that I have been focusing on improving over time. In this PR, I mainly want to stem the bleeding where we in some cases we show an error that gives you no possible way to divine the problem.
2017-02-11Actually fix manifest generationAlex Crichton-2/+2
The previous fix contained an error where `toml::encode` returned a runtime error, so this version just constructs a literal `toml::Value`.
2017-02-11Don't include directory names in shasumsAlex Crichton-1/+2
Right now we just run `shasum` on an absolute path but right now the shasum files only include filenames, so let's use `current_dir` and just the file name to only have the file name emitted.
2017-02-11Rename manifest_version to manifest-versionAlex Crichton-4/+13
The current manifests encode this with a dash in the name, so we should preserve that!
2017-02-11rustbuild: Clean build/dist on `make clean`Alex Crichton-0/+1
Prevents stale artifacts from sticking around by accident!
2017-02-11Auto merge of #39734 - alexcrichton:beta-next, r=brsonbors-7/+35
[beta] Backporting PRs to beta This is a backport of the following PRs: * https://github.com/rust-lang/rust/pull/39478 * https://github.com/rust-lang/rust/pull/39509 * https://github.com/rust-lang/rust/pull/39517 * https://github.com/rust-lang/rust/pull/39526 * https://github.com/rust-lang/rust/pull/39599 * https://github.com/rust-lang/rust/pull/39624 * https://github.com/rust-lang/rust/pull/39710
2017-02-11Auto merge of #39711 - brson:beta-boot, r=alexcrichtonbors-1/+1
[beta] Update bootstrap compiler to 1.15.1
2017-02-11Auto merge of #39600 - alexcrichton:cargo-tarball-name2, r=brsonbors-0/+2
[beta] Fix a manifest-generation bug on beta This is a beta backport of https://github.com/rust-lang/rust/pull/39599
2017-02-10Fix a manifest-generation bug on betaAlex Crichton-0/+2
Right now all Cargo release tarballs are 'nightly', they're not on the standard channels yet.
2017-02-10Fix make tidyAndrew Cann-3/+3
2017-02-10Remove use of ptr::eqAndrew Cann-13/+18
2017-02-10Uninhabited while-let pattern fixAndrew Cann-4/+24
2017-02-10libbacktrace: Fix uninitialized variableVadim Petrochenkov-1/+3
2017-02-10rustbuild: Add x.py to source tarballsAlex Crichton-1/+2
We should be sure to add our build system entry point! Closes #39476
2017-02-10Update bootstrap compiler to 1.15.1Brian Anderson-1/+1
2017-02-09Auto merge of #39667 - alexcrichton:beta-next, r=brsonbors-0/+5
[beta] rustbuild: Pass -fPIC on 32-bit non-Windows platforms This is a smaller and more targeted backport of #39523 which drives to the heart of the issue, just passing `-fPIC` on 32-bit platforms. More rationale for this commit can be found in #39523 itself.
2017-02-08rustbuild: Pass -fPIC on 32-bit non-Windows platformsAlex Crichton-0/+5
This is a smaller and more targeted backport of #39523 which drives to the heart of the issue, just passing `-fPIC` on 32-bit platforms. More rationale for this commit can be found in #39523 itself.
2017-02-06Fix a manifest-generation bug on betaAlex Crichton-0/+2
Right now all Cargo release tarballs are 'nightly', they're not on the standard channels yet.
2017-02-06Auto merge of #39493 - alexcrichton:beta-next, r=aturonbors-1/+1
[beta] std: Fix IntoIter::as_mut_slice's signature This is a backport of #39466 to beta
2017-02-06Auto merge of #39444 - keeperofdakeys:derive-error, r=jseyfriedbors-66/+17
[beta] Give a better error message for unknown derive messages This PR improves the error message for unknown derive macros. Currently unknown derives give the following error, which is very misleading: ``` `#[derive]` for custom traits is not stable enough for use. It is deprecated and will be removed in v1.15 (see issue #29644) ``` I'm currently working on a PR that will change this (https://github.com/rust-lang/rust/pull/39442) to the following: ``` cannot find derive macro `Foo` in this scope ``` This PR backports the (as yet unmerged) error message to beta/1.16 (it's a pity that this is probably too late for 1.15). r? @jseyfried
2017-02-05[beta] Fix branch name Cargo's downloaded fromAlex Crichton-3/+1
This was a mistake not exercised until just now!
2017-02-06Delete failing testJosh Driver-51/+0
2017-02-03std: Fix IntoIter::as_mut_slice's signatureAlex Crichton-1/+1
This was intended to require `&mut self`, not `&self`, otherwise it's unsound! Closes #39465
2017-02-02Fix syntax errorJosh Driver-1/+1
2017-02-01Fixup tests for new unknown derive errorJosh Driver-10/+7
2017-02-01Add a better error message for missing derive macrosJosh Driver-14/+19