about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2017-09-05Fix a very subtle mistake in a ui test.Masaki Hara-0/+1
2017-09-05Add tests for intercrate ambiguity hints.Masaki Hara-1/+89
2017-09-05Slightly modify hint messages.Masaki Hara-4/+4
2017-09-05Add hints when intercrate ambiguity causes overlap.Masaki Hara-22/+95
2017-09-05Auto merge of #44308 - eddyb:local-index, r=arielb1bors-362/+319
[MIR] Restrict ProjectionElem::Index and Storage{Live,Dead} to Local. (see #44285) r? @nikomatsakis
2017-09-05Auto merge of #44248 - oli-obk:spans, r=jseyfriedbors-5/+15
Produce expansion info for more builtin macros r? @jseyfried fixes #43268
2017-09-04Auto merge of #43067 - pornel:libdeps, r=nrcbors-7/+52
Compact display of static lib dependencies Fixes #33173 Instead of displaying one dependency per line, I've changed the format to display them all in one line. As a bonus they're in format of linker flags (`-lfoo`), so the output can be copy&pasted if one is actually going to link as suggested.
2017-09-04Produce expansion info for more builtin macrosOliver Schneider-5/+15
2017-09-04Auto merge of #44300 - Manishearth:clippyup, r=oli-obkbors-5/+21
Resync clippy to v0.0.156 None
2017-09-04rustc_mir: use Local instead of Lvalue in Storage{Live,Dead}.Eduard-Mihai Burtescu-54/+38
2017-09-04Auto merge of #44268 - kennytm:fix-python-bootstrap-test, r=Mark-Simulacrumbors-6/+4
rustbuild: Remove invalid doctest from bootstrap.py
2017-09-04Auto merge of #44272 - Dushistov:master, r=alexcrichtonbors-0/+23
add test for not optimized `pow` with constant power Closes #34947
2017-09-03Resync clippy to v0.0.156Manish Goregaokar-5/+21
2017-09-03Auto merge of #44263 - durka:stabilize-discriminant, r=dtolnaybors-15/+8
stabilize mem::discriminant (closes #24263)
2017-09-03Auto merge of #44261 - alexcrichton:u128-ffi-unsafe, r=eddybbors-1/+15
rustc: Flag {i,u}128 as unsafe for FFI These don't appear to have a stable ABI as noted in #41799 and the work in compiler-builtins definitely seems to be confirming it!
2017-09-03rustc_mir: use Local in ProjectionElem::Index.Eduard-Mihai Burtescu-74/+65
2017-09-03Auto merge of #44191 - arielb1:on-unimplemented-label, r=nikomatsakisbors-275/+652
More general `on_unimplemented`, with uses in `Try` Allow `on_unimplemented` directives to specify both the label and the primary message of the trait error, and allow them to be controlled by flags - currently only to be desugaring-sensitive. e.g. ```Rust #[rustc_on_unimplemented( on(all(direct, from_desugaring="?"), message="the `?` operator can only be used in a \ function that returns `Result` \ (or another type that implements `{Try}`)", label="cannot use the `?` operator in a function that returns `{Self}`"), )] ``` r? @nikomatsakis
2017-09-03rustc_mir: implement visit_local instead/along visit_lvalue where possible.Eduard-Mihai Burtescu-235/+217
2017-09-03Auto merge of #44253 - eddyb:nice-scope, r=nikomatsakisbors-659/+673
rustc: rename CodeExtent to Scope and RegionMaps to ScopeTree. r? @nikomatsakis
2017-09-03add error message for the other case tooAriel Ben-Yehuda-6/+13
2017-09-03on_unimplemented: add method-name checks and use them in TryAriel Ben-Yehuda-12/+69
2017-09-03address review commentsAriel Ben-Yehuda-31/+25
2017-09-03enable desugaring-sensitive error messages and use them in TryAriel Ben-Yehuda-9/+74
Maybe I should allow error messages to check the *specific* desugaring? Thanks @huntiep for the idea!
2017-09-03implement improved on_unimplemented directivesAriel Ben-Yehuda-50/+290
2017-09-03move the on_unimplemented logic to its own fileAriel Ben-Yehuda-142/+160
2017-09-03refactor and centralize `on_unimplemented` parsingAriel Ben-Yehuda-246/+242
2017-09-03Auto merge of #44252 - eddyb:what-is-dead-may-never-die, r=nikomatsakisbors-35/+94
Better StorageLive / StorageDead placement for constants. Fixes problems in miri (see https://github.com/solson/miri/pull/324#issuecomment-326555552) caused by the new scope rules in #43932. What I've tried to do here is always have a `StorageLive` but no `StorageDead` for `'static` slots. It might not work perfectly in all cases, but it should unblock miri. r? @nikomatsakis cc @oli-obk
2017-09-03Auto merge of #44195 - alexcrichton:remove-used-unsafe, r=nikomatsakisbors-74/+66
rustc: Remove the `used_unsafe` field on TyCtxt Now that lint levels are available for the entire compilation, this can be an entirely local lint in `effect.rs` cc #44137
2017-09-03Auto merge of #44176 - nrc:update-rls, r=alexcrichtonbors-7/+13
Update rls And expose the `CFG_VERSION` env var to tools so they can determine the version of Rust. This gets the RLS back on master and so completes the PR dance for the generators PR. r? @alexcrichton
2017-09-02Auto merge of #44108 - mattico:match-pipe, r=petrochenkovbors-2/+84
Implement RFC 1925 cc #44101
2017-09-02Auto merge of #44066 - cuviper:powerpc64-extern-abi, r=alexcrichtonbors-44/+151
powerpc64: improve extern struct ABI These fixes all have to do with the 64-bit PowerPC ELF ABI for big-endian targets. The ELF v2 ABI for powerpc64le already worked well. - Return after marking return aggregates indirect. Fixes #42757. - Pass one-member float aggregates as direct argument values. - Aggregate arguments less than 64-bit must be written in the least- significant bits of the parameter space. - Larger aggregates are instead padded at the tail. (i.e. filling MSBs, padding the remaining LSBs.) New tests were also added for the single-float aggregate, and a 3-byte aggregate to check that it's filled into LSBs. Overall, at least these formerly-failing tests now pass on powerpc64: - run-make/extern-fn-struct-passing-abi - run-make/extern-fn-with-packed-struct - run-pass/extern-pass-TwoU16s.rs - run-pass/extern-pass-TwoU8s.rs - run-pass/struct-return.rs
2017-09-02Auto merge of #43886 - oli-obk:clippy, r=nrcbors-1/+46
Add clippy as a submodule ~~This builds clippy as part of `./x.py build` (locally and in CI).~~ This allows building clippy with `./x.py build src/tools/clippy` ~~Needs https://github.com/nrc/dev-tools-team/issues/18#issuecomment-322456461 to be resolved before it can be merged.~~ Contributers can simply open a PR to clippy and point the submodule at the `pull/$pr_number/head` branch. This does **not** build clippy or test the clippy test suite at all as per https://github.com/nrc/dev-tools-team/issues/18#issuecomment-321411418 r? @nrc cc @Manishearth @llogiq @mcarton @alexcrichton
2017-09-02add test for not optimized `pow` with constant powerEvgeniy A. Dushistov-0/+23
Closes #34947
2017-09-02Remove invalid doctest from bootstrap.py.kennytm-6/+4
Make sure that if the test is failed, the CI will stop the build.
2017-09-02Auto merge of #44259 - Mark-Simulacrum:update-cargo, r=alexcrichtonbors-0/+0
Update cargo This includes https://github.com/rust-lang/cargo/pull/4447 which fixes a bug in Cargo that is needed to fix https://github.com/rust-lang/rust/issues/44237. r? @alexcrichton
2017-09-02Minor compilation fixKornel-1/+1
2017-09-02Auto merge of #44256 - GuillaumeGomez:update-html-diff-rs, r=Mark-Simulacrumbors-4/+4
Update html-diff-rs version r? @nrc
2017-09-02Auto merge of #44104 - llogiq:lowercase-lints, r=nikomatsakisbors-3/+58
add a lowercase suggestion to unknown_lints I recently wrote some tests for a clippy lint, copied the (uppercase) lint name into my test file and forgot to toggle the case. This PR adds a suggestion that would have saved me 10 minutes of debugging, so it's likely a net win 🙂 . Also it adds a UI test for the `unknown_lints` lint.
2017-09-02stabilize mem::discriminant (closes #24263)Alex Burka-15/+8
2017-09-01rustc: Flag {i,u}128 as unsafe for FFIAlex Crichton-1/+15
These don't appear to have a stable ABI as noted in #41799 and the work in compiler-builtins definitely seems to be confirming it!
2017-09-01Update cargo.Mark Simulacrum-0/+0
This includes https://github.com/rust-lang/cargo/pull/4447 which fixes a bug in Cargo that is needed to fix https://github.com/rust-lang/rust/issues/44237.
2017-09-01x86: return single-float aggregates in a float registerJosh Stone-6/+35
Following Clang's lead, and anecdotal evidence from the `float_one` part of `run-make/extern-fn-struct-passing-abi`, use a floating point register to return single-float aggregates, except on MSVC targets.
2017-09-01Exclude all windows-gnu from the float_one testJosh Stone-3/+4
2017-09-01Exclude x86_64-pc-windows-gnu from the float_one testJosh Stone-1/+5
2017-09-01powerpc64: improve extern struct ABIJosh Stone-38/+111
These fixes all have to do with the 64-bit PowerPC ELF ABI for big-endian targets. The ELF v2 ABI for powerpc64le already worked well. - Return after marking return aggregates indirect. Fixes #42757. - Pass one-member float aggregates as direct argument values. - Aggregate arguments less than 64-bit must be written in the least- significant bits of the parameter space. - Larger aggregates are instead padded at the tail. (i.e. filling MSBs, padding the remaining LSBs.) New tests were also added for the single-float aggregate, and a 3-byte aggregate to check that it's filled into LSBs. Overall, at least these formerly-failing tests now pass on powerpc64: - run-make/extern-fn-struct-passing-abi - run-make/extern-fn-with-packed-struct - run-pass/extern-pass-TwoU16s.rs - run-pass/extern-pass-TwoU8s.rs - run-pass/struct-return.rs
2017-09-02rustc_mir: always emit StorageLive even without a matching StorageDead.Eduard-Mihai Burtescu-5/+5
2017-09-02rustc_mir: actually "promote" constants' MIR to 'static by removing ↵Eduard-Mihai Burtescu-30/+89
StorageDead's.
2017-09-02Update html-diff-rs versionGuillaume Gomez-4/+4
2017-09-01Fix unstable book exampleMatt Ickstadt-2/+4
2017-09-01rustc: rename CodeExtent to Scope and RegionMaps to ScopeTree.Eduard-Mihai Burtescu-659/+673