about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2018-11-05FIXMERalf Jung-1/+1
2018-11-05visit_aggregate with an iterator; fix some comment typosRalf Jung-40/+65
2018-11-05the visitor can already load the value for visit_primitiveRalf Jung-16/+19
2018-11-05all values can convert to operatorsRalf Jung-45/+46
2018-11-05finally this actually looks like a visitorRalf Jung-132/+118
2018-11-05use more traditional walk_array/visit_array instead of the handle_array hookRalf Jung-71/+73
2018-11-05converting a VisitorValue to a MemPlace must not mutate anythingRalf Jung-11/+12
2018-11-05Also test for undef in enum discriminantRalf Jung-3/+16
The error message is sub-par, but fixing that requries moving ScalarMaybeUndef to librustc which would conflict badly with another PR that is in flight.
2018-11-05fix validation error on non-integer enum discriminantsRalf Jung-58/+79
2018-11-05let the Value handle enum projections, so the visitor does not have to careRalf Jung-30/+56
2018-11-05provide some default implementationsRalf Jung-6/+9
2018-11-05add visit() hook to the traitRalf Jung-15/+23
2018-11-05fix for pre-NLL rustcRalf Jung-1/+1
2018-11-05also allow visiting places and mplacesRalf Jung-9/+76
2018-11-05reduce the amount of traversal/projection code that the visitor has to ↵Ralf Jung-160/+237
implement itself
2018-11-05generalize the traversal part of validation to a ValueVisitorRalf Jung-305/+424
2018-11-05Auto merge of #55593 - nikic:remove-llvm-4-checks, r=rkruppebors-215/+6
Remove checks for LLVM < 4.0 While we still have to support LLVM 4.0 for Emscripten, we can drop checks for LLVM >= 4.0 and < 4.0.
2018-11-04Auto merge of #55569 - durka:must-use-external-macro, r=alexcrichtonbors-16/+44
enforce unused-must-use lint in macros Fixes #55516 by turning on the UNUSED_MUST_USE lint within macros.
2018-11-04rustc_target: pass contexts by reference, not value.Eduard-Mihai Burtescu-214/+175
2018-11-04Auto merge of #55393 - oli-obk:immediate_immediately, r=RalfJungbors-189/+196
Rename `Value` to `Immediate` for miri r? @RalfJung
2018-11-04Auto merge of #55349 - bjorn3:rustc_mir_collect_and_partition_mono_items, ↵bors-303/+280
r=oli-obk Move collect_and_partition_mono_items to rustc_mir Most of the logic of it is inside rustc_mir anyway. Also removes the single function crate rustc_metadata_utils. Based on #55225
2018-11-04Auto merge of #55432 - zackmdavis:single_life, r=nikomatsakisbors-41/+181
single life * structured ~~autofixable~~ (well, pending #53934 and rust-lang-nursery/rustfix#141) suggestions for the single-use-lifetimes lint in the case of function and method reference args * don't consider the anonymous lifetime `'_` as "single-use" (it's intended for exactly this sort of thing) ![single_life](https://user-images.githubusercontent.com/1076988/47613227-3b2b6400-da48-11e8-8efd-cb975ddf537d.png) r? @nikomatsakis
2018-11-04Auto merge of #55455 - estebank:expected-descr, r=michaelwoeristerbors-44/+66
Use token description in "expected/found" parse messages Fix #54309.
2018-11-04Auto merge of #54861 - rep-nop:find_main_in_doctest, r=estebankbors-26/+201
rustdoc: Replaces fn main search and extern crate search with proper parsing during doctests. Fixes #21299. Fixes #33731. Let me know if there's any additional changes you'd like made!
2018-11-03Auto merge of #55662 - matthiaskrgr:clippy_update, r=oli-obkbors-14/+14
submodules: update clippy from a20599ab to 71ec4ff6 Should fix clippy toolstat. Changes: ```` rustup https://github.com/rust-lang/rust/pull/55330/ Update stderr Rename test files Also lint cfg_attr(.., rustfmt::skip) Add tests from rustfmt::skip test file Run update_lints.py script Add test for non-crate-level inner attributes Differ between inner and outer attributes Add tests Add cfg_attr(rustfmt) lint Addressed comments. Fix dogfood error. Added lints `into_iter_on_ref` and `into_iter_on_array`. Fix #1565. Allow single_match_else Update stderr Add copyright statement© Fix typos Fix dogfood error Fix typo and indentation run update_lints script Add tests for unknwon_clippy_lints lint Add new lint: unknwon_clippy_lintsg clippy: fix pedantic warnings and run clippy::pedantic lints on the codebase. Fix a false-positive of needless_borrow UI test cleanup: Extract match_overlapping_arm tests UI test cleanup: Extract expect_fun_call tests Add missing code of conduct file Use slice patterns instead of padding Fix dogfood and pedantic lints ci: when installing rust-toolchain-installer-master, install it in debug mode to save some time in ci. RIIR update lints: Generate deprecated lints Replace big if/else expression with match ````
2018-11-03Auto merge of #55661 - kennytm:fix-exclude, r=alexcrichtonbors-3/+43
Fixed the bug in bootstrap where --exclude was ignored for run-pass test This should fix the 3 hour timeout on AppVeyor which happened a lot recently. Additionally, further rebalanced the AppVeyor subsets by moving "ui" and "linkchecker" into Set 2.
2018-11-03submodules: update clippy from a20599ab to 71ec4ff6Matthias Krüger-14/+14
Should fix clippy toolstat. Changes: ```` rustup https://github.com/rust-lang/rust/pull/55330/ Update stderr Rename test files Also lint cfg_attr(.., rustfmt::skip) Add tests from rustfmt::skip test file Run update_lints.py script Add test for non-crate-level inner attributes Differ between inner and outer attributes Add tests Add cfg_attr(rustfmt) lint Addressed comments. Fix dogfood error. Added lints `into_iter_on_ref` and `into_iter_on_array`. Fix #1565. Allow single_match_else Update stderr Add copyright statement© Fix typos Fix dogfood error Fix typo and indentation run update_lints script Add tests for unknwon_clippy_lints lint Add new lint: unknwon_clippy_lintsg clippy: fix pedantic warnings and run clippy::pedantic lints on the codebase. Fix a false-positive of needless_borrow UI test cleanup: Extract match_overlapping_arm tests UI test cleanup: Extract expect_fun_call tests Add missing code of conduct file Use slice patterns instead of padding Fix dogfood and pedantic lints ci: when installing rust-toolchain-installer-master, install it in debug mode to save some time in ci. RIIR update lints: Generate deprecated lints Replace big if/else expression with match ````
2018-11-04Move a few more tests into the appveyor-subset-2.kennytm-1/+6
This should allow the timings be more balanced.
2018-11-04Ensure --exclude is checked against PathSet::Suitekennytm-2/+37
Fix the recent spurious 3 hour timeouts.
2018-11-03Auto merge of #55101 - alexreg:trait-aliases, r=nikomatsakisbors-332/+631
Implement trait aliases (RFC 1733) Extends groundwork done in https://github.com/rust-lang/rust/pull/45047, and fully implements https://github.com/rust-lang/rfcs/pull/1733. CC @durka @nikomatsakis
2018-11-03Auto merge of #55646 - GuillaumeGomez:rollup, r=GuillaumeGomezbors-49/+429
Rollup of 5 pull requests Successful merges: - #54162 (Hide default impls items) - #55555 (Make `-Z ls` list the actual filename of external dependencies) - #55567 (add test for deriving Debug on uninhabited enum) - #55568 (test that rustdoc doesn't overflow on a big enum) - #55598 (publish-toolstate: ping maintainers when a tool builds again) Failed merges: r? @ghost
2018-11-03Update src/librustc_mir/monomorphize/partitioning.rsOliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer-1/+1
Co-Authored-By: bjorn3 <bjorn3@users.noreply.github.com>
2018-11-03Remove rustc_metadata_utils, which contains only one functionbjorn3-76/+35
2018-11-03Move collect_and_partition_mono_items to rustc_mirbjorn3-160/+165
2018-11-03Rollup merge of #55598 - nrc:tool-bot, r=kennytmGuillaume Gomez-3/+3
publish-toolstate: ping maintainers when a tool builds again And add @Xanewok as an RLS maintainer r? @kennytm Motivation is that I see when the RLS gets broken, but have to poll the website to see when it is fixed, I'd prefer to get pinged.
2018-11-03Rollup merge of #55568 - durka:rustdoc-big-enum, r=nikomatsakisGuillaume Gomez-0/+256
test that rustdoc doesn't overflow on a big enum Adds a test to close #25295. The test case depended on `enum_primitive` so I just basically pulled its source into an auxiliary file, is that the right way to do it?
2018-11-03Rollup merge of #55567 - durka:derive-debug-uninhabited, r=nikomatsakisGuillaume Gomez-0/+41
add test for deriving Debug on uninhabited enum Adds a test to close #38885.
2018-11-03Rollup merge of #55555 - aidanhs:aphs-better-z-ls, r=alexcrichtonGuillaume Gomez-1/+1
Make `-Z ls` list the actual filename of external dependencies The hash is pointless for external consumers - extra_filename is the thing that actually gets used, per https://github.com/rust-lang/rust/blob/ca2639e/src/librustc_metadata/locator.rs#L312-L313
2018-11-03Rollup merge of #54162 - GuillaumeGomez:hide-default-impls-items, ↵Guillaume Gomez-45/+128
r=QuietMisdreavus Hide default impls items Follow up of #51885. Fixes #54025. cc @Mark-Simulacrum r? @QuietMisdreavus And screenshots of course: <img width="1440" alt="screen shot 2018-09-12 at 23 30 35" src="https://user-images.githubusercontent.com/3050060/45454424-1ff8d500-b6e4-11e8-9257-030322495d58.png"> <img width="1440" alt="screen shot 2018-09-12 at 23 30 42" src="https://user-images.githubusercontent.com/3050060/45454431-2424f280-b6e4-11e8-8d65-db0d85ac18f0.png">
2018-11-03Move cg_llvm::back::linker to cg_utilsbjorn3-67/+80
2018-11-03Auto merge of #55330 - scalexm:bound-ty, r=nikomatsakisbors-390/+555
Add support for bound types This PR may have some slight performance impacts, I don't know how hot is the code I touched. Also, this breaks clippy and miri. r? @nikomatsakis
2018-11-03Substitute binders directlyscalexm-12/+13
2018-11-03Rename `as_bound_var` to `assert_bound_var`scalexm-4/+4
2018-11-03Fix doc commentscalexm-3/+3
2018-11-03Extend `ty::fold::RegionReplacer` to `ty::fold::BoundVarReplacer`scalexm-140/+149
Use the new `BoundVarReplacer` to perform canonical substitutions.
2018-11-03Rename `Binder::no_late_bound_regions` to `Binder::no_bound_vars`scalexm-32/+34
2018-11-03Remove `ReCanonical` in favor of `ReLateBound`scalexm-101/+98
2018-11-03Adjust bound tys indices in canonicalizationscalexm-11/+56
2018-11-03Rename `BoundTy` field `level` -> `index`scalexm-9/+9
2018-11-03Rename `BoundTyIndex` to `BoundVar`scalexm-27/+27