about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2018-12-03Improve filter testGuillaume Gomez-3/+2
2018-12-04syntax: `dyn` is a used keyword nowVadim Petrochenkov-4/+4
2018-12-03Auto merge of #56451 - kennytm:rollup, r=kennytmbors-71/+29
Rollup of 13 pull requests Successful merges: - #56141 ([std] Osstr len clarity) - #56366 (Stabilize self_in_typedefs feature) - #56395 (Stabilize dbg!(...)) - #56401 (Move VecDeque::resize_with out of the impl<T:Clone> block) - #56402 (Improve the unstable book example for #[marker] trait) - #56412 (Update tracking issue for `extern_crate_self`) - #56416 (Remove unneeded body class selector) - #56418 (Fix failing tidy (line endings on Windows)) - #56419 (Remove some uses of try!) - #56432 (Update issue number of `shrink_to` methods to point the tracking issue) - #56433 (Add description about `crate` for parse_visibility's comment) - #56435 (make the C part of compiler-builtins opt-out) - #56438 (Remove not used `DotEq` token) Failed merges: r? @ghost
2018-12-03Handle existential types in dead code analysisOliver Scherer-0/+13
2018-12-03Auto merge of #55010 - tromey:Bug-9224-generic-parameters, r=michaelwoeristerbors-6/+44
Add template parameter debuginfo to generic types This changes debuginfo generation to add template parameters to generic types. With this change the DWARF now has DW_TAG_template_type_param for types, not just for functions, like: <2><40d>: Abbrev Number: 6 (DW_TAG_structure_type) <40e> DW_AT_name : (indirect string, offset: 0x375): Generic<i32> <412> DW_AT_byte_size : 4 <413> DW_AT_alignment : 4 ... <3><41f>: Abbrev Number: 8 (DW_TAG_template_type_param) <420> DW_AT_type : <0x42a> <424> DW_AT_name : (indirect string, offset: 0xa65e): T Closes #9224
2018-12-03Fix stderr filesJohn Ginger-0/+6
2018-12-03Rollup merge of #56412 - petrochenkov:extself, r=Centrilkennytm-1/+1
Update tracking issue for `extern_crate_self`
2018-12-03Rollup merge of #56395 - Centril:stabilize-dbg-macro, r=SimonSapinkennytm-34/+12
Stabilize dbg!(...) Per FCP in https://github.com/rust-lang/rust/issues/54306 (which is ~1 day from completion). r? @SimonSapin The PR is fairly isolated so a rollup should probably work.
2018-12-03Rollup merge of #56366 - alexreg:stabilise-self_in_typedefs, r=Centrilkennytm-36/+16
Stabilize self_in_typedefs feature [**Tracking Issue**](https://github.com/rust-lang/rust/issues/49303) r? @centril
2018-12-03Auto merge of #56358 - nikic:mergefunc-aliases, r=rkruppebors-5/+8
Enable -mergefunc-use-aliases If the Rust LLVM fork is used, enable the -mergefunc-use-aliases flag, which will create aliases for merged functions, rather than inserting a call from one to the other. A number of codegen tests needed to be adjusted, because functions that previously fell below the thunk limit are now being merged. Merging is prevented in various ways now. I expect that this is going to break something, somewhere, because it isn't able to deal with aliases properly, but we won't find out until we try :) This fixes #52651. r? @rkruppe
2018-12-03pass the parameter environment to `traits::find_associated_item`Ariel Ben-Yehuda-0/+38
dropping the param-env on the floor is obviously the wrong thing to do. The ICE was probably exposed by #54490 adding the problem-exposing use of `traits::find_associated_item`. Fixes #55380.
2018-12-02Auto merge of #56110 - varkor:inhabitedness-union-enum, r=cramertjbors-37/+82
Consider references and unions potentially inhabited during privacy-respecting inhabitedness checks It isn't settled exactly how references to uninhabited types and unions of uninhabited types should act, but we should be more conservative here, as it's likely it will be permitted to soundly have values of such types. This will also be more important in light of the changes at https://github.com/rust-lang/rust/pull/54125. cc @RalfJung
2018-12-02Delay gensym creation for "underscore items" until name resolutionVadim Petrochenkov-13/+123
Prohibit `static _` Fis unused import warnings for `use foo as _` Add more tests for `use foo as _`
2018-12-02resolve: Avoid "self-confirming" resolutions in import validationVadim Petrochenkov-15/+3
2018-12-02Auto merge of #56396 - dlrobertson:fix_va_list_tests, r=nikicbors-174/+57
tests: Simplify VaList run-make test The va_list tests were too complex and were causing some spurious test failures on Windows. Example: https://github.com/rust-lang/rust/pull/55011#issuecomment-443211097
2018-12-01Update tracking issue for `extern_crate_self`Vadim Petrochenkov-1/+1
2018-12-01resolve: Support aliasing local crate root in extern preludeVadim Petrochenkov-0/+51
2018-12-01Introduce proc_macro::Span::source_textOlivier Goffart-2/+43
2018-12-01Auto merge of #56165 - RalfJung:drop-glue-type, r=eddyb,nikomatsakisbors-37/+38
drop glue takes in mutable references, it should reflect that in its type When drop glue begins, it should retag, like all functions taking references do. But to do that, it needs to take the reference at a proper type: `&mut T`, not `*mut T`. Failing to retag can mean that the memory the reference points to remains frozen, and `EscapeToRaw` on a frozen location is a NOP, meaning later mutations cause a Stacked Borrows violation. Cc @nikomatsakis @Gankro because Stacked Borrows Cc @eddyb for the changes to miri argument passing (the intention is to allow passing `*mut [u8]` when `&mut [u8]` is expected and vice versa)
2018-12-01stabilize std::dbg!(...)Mazdak Farrokhzad-34/+12
2018-11-30Use appropriate terminology based on heuristicEsteban Küber-16/+34
2018-11-30Updated ui tests.Alexander Regueiro-5/+15
2018-11-30Removed feature gate.Alexander Regueiro-31/+1
2018-11-30Fix bug in matching on floating-point rangesvarkor-51/+23
2018-11-30Separate out precise_pointer_size_matching tests from ↵varkor-17/+50
exhaustive_integer_patterns tests
2018-11-30tests: Simplify VaList run-make testDan Robertson-174/+57
The va_list tests were too complex and were causing some spurious test failures on Windows
2018-11-30Suggest an appropriate token when encountering `pub Ident<'a>`Esteban Küber-0/+47
2018-11-30Drop function parameters in expected orderMatthew Jasper-0/+68
Given the function fn foo((_x, _): (LogDrop, LogDrop), (_, _y): (LogDrop, LogDrop)) {} Prior to 1.12 we dropped both `_x` and `_y` before the rest of their respective parameters, since then we dropped `_x` and `_y` after. The original order appears to be the correct order, as the value created later is dropped first, so we revert to that order and add a test for it.
2018-12-01Rollup merge of #56337 - phansch:fix_const_ice, r=oli-obkkennytm-0/+28
Fix const_fn ICE with non-const function pointer Fixes #56164
2018-12-01Rollup merge of #56365 - alexreg:stabilise-self_struct_ctor, r=Centrilkennytm-86/+23
Stabilize self_struct_ctor feature. [**Tracking Issue**](https://github.com/rust-lang/rust/issues/51994)
2018-12-01Rollup merge of #56367 - alexreg:move-feature-gate-tests-1, r=Centrilkennytm-0/+0
Moved some feature gate tests to correct location I evidently need to create some sort of GitHub monitor tool that yells at people when they do this in their PRs. ;-) r? @centril
2018-12-01Rollup merge of #56014 - euclio:issue-21335, r=nagisakennytm-0/+5
add test for issue #21335 Running this test with LLVM assertions enabled doesn't seem to trigger an assertion on my Mac. Fixes #21335.
2018-11-30Moved feature-gate tests to correct dir.Alexander Regueiro-0/+0
2018-11-30Updated ui tests.Alexander Regueiro-4/+3
2018-11-30Removed feature gate.Alexander Regueiro-85/+4
2018-11-30Refer to the second borrow as the "second borrow".Daan de Graaf-8/+8
2018-11-30Update existing tests with more precise error messagesvarkor-76/+102
2018-11-30Add precise_pointer_size_matching featurevarkor-0/+30
2018-11-30Stabilise exhaustive_integer_patternsvarkor-1/+1
2018-11-30Test float assign opsOliver Scherer-0/+279
2018-11-30Add trailing newlineOliver Scherer-1/+1
2018-11-30Re-add accidentally deleted testOliver Scherer-0/+16
2018-11-30Fix a compile-fail testOliver Scherer-1/+1
2018-11-30Improve the diagnostic messageOliver Scherer-34/+22
2018-11-30Reenable `const_let` feature gateOliver Scherer-354/+662
2018-11-30Add a test for single variant matchesOliver Scherer-2/+23
2018-11-30Improve the error around short circuiting and let bindingsOliver Scherer-0/+54
2018-11-30Allow `let` bindings everywhereOliver Scherer-525/+351
2018-11-30Add tests for mutable borrowsOliver Scherer-1/+32
2018-11-30Also test the `const_let` feature gate in staticsOliver Scherer-1/+54