about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2018-11-27Auto merge of #55402 - estebank:macro-eof-2, r=nikomatsakisbors-51/+65
Point at end of macro arm when encountering EOF Fix #52866.
2018-11-27resolve: Extern prelude is for type namespace onlyVadim Petrochenkov-0/+8
2018-11-26test: Add basic test for VaListDan Robertson-0/+243
2018-11-27resolve: Suggest `crate::` for resolving ambiguities when appropriateVadim Petrochenkov-34/+80
More precise spans for ambiguities from macros
2018-11-27resolve: Fallback to extern prelude in 2015 imports used from global 2018 ↵Vadim Petrochenkov-15/+39
edition
2018-11-27resolve: Fallback to uniform paths in 2015 imports used from global 2018 editionVadim Petrochenkov-2/+88
2018-11-27resolve: Implement edition hygiene for imports and absolute pathsVadim Petrochenkov-0/+149
Use per-span hygiene in a few other places in resolve Prefer `rust_2015`/`rust_2018` helpers to comparing editions
2018-11-27Remove duplicate tests for uniform pathsVadim Petrochenkov-312/+0
2018-11-26rustc-guide has movedMark Mansi-1/+1
2018-11-26Put all existential ty vars in the `ROOT` universescalexm-1/+1
2018-11-26add test for issue #21335Andy Russell-0/+5
Fixes #21335.
2018-11-26Emit one diagnostic for multiple misplaced lifetimesEsteban Küber-3/+19
2018-11-26Auto merge of #56070 - oli-obk:const_let, r=eddybbors-32/+316
Allow assignments in const contexts fixes https://github.com/rust-lang/rust/issues/54098 fixes https://github.com/rust-lang/rust/issues/51251 fixes https://github.com/rust-lang/rust/issues/52613
2018-11-25Try to make top-level Cargo.toml work without __CARGO_TEST_ROOT.Eduard-Mihai Burtescu-3/+9
2018-11-25Move lifetimes before the *first* type argumentEsteban Küber-2/+2
2018-11-25Suggest appropriate place for lifetime when declared after type argumentsEsteban Küber-0/+67
2018-11-25Rollup merge of #56211 - petrochenkov:fwd, r=petrochenkovPietro Albini-28/+110
[master] Forward-ports from beta https://github.com/rust-lang/rust/pull/56206 + one commit from https://github.com/rust-lang/rust/pull/55884 that was accidentally missing in https://github.com/rust-lang/rust/pull/56042 due to an off-by-one mistake in commit ranges r? @ghost
2018-11-25Rollup merge of #56207 - SimonSapin:int_to_from_bytes, r=nagisaPietro Albini-2/+2
Stabilize the int_to_from_bytes feature Fixes #52963 FCP to merge completed: https://github.com/rust-lang/rust/issues/52963#issuecomment-416548327
2018-11-25Rollup merge of #56204 - estebank:suggest-variant, r=zackmdavisPietro Albini-6/+40
Suggest correct enum variant on typo Fix #37992.
2018-11-25Rollup merge of #56151 - alexcrichton:move-out-flaky-test, r=nagisaPietro Albini-0/+25
Move a flaky process test out of libstd This test ensures that everything in `env::vars()` is inherited but that's not actually true because other tests may add env vars after we spawn the process, causing the test to be flaky! This commit moves the test to a run-pass test where it can execute in isolation. Along the way this removes a lot of the platform specificity of the test, using iteslf to print the environment instead of a foreign process.
2018-11-25Rollup merge of #56144 - tromey:Bug-55771-btreemap, r=alexcrichtonPietro Albini-8/+9
Fix BTreeSet and BTreeMap gdb pretty-printers The BTreeSet and BTreeMap gdb pretty-printers did not take the node structure into account, and consequently only worked for shallow sets. This fixes the problem by iterating over child nodes when needed. This patch avoids the current approach of implementing some of the value manipulations in debugger-indepdendent code. This was done for convenience: a type lookup was needed for the first time, and there currently are no lldb formatters for these types. Closes #55771
2018-11-25Rollup merge of #56101 - frewsxcv:frewsxcv-dyn, r=steveklabnikPietro Albini-1/+2
Incorporate `dyn` into more comments and docs. r? @rust-lang/docs
2018-11-25Rollup merge of #56072 - da-x:stabilize-literal-matcher, r=petrochenkovPietro Albini-32/+0
Stabilize macro_literal_matcher This followed FCP in #35625. Closes #35625
2018-11-25Rollup merge of #56045 - qnighy:additional-sizedness, r=cramertjPietro Albini-44/+91
Check arg/ret sizedness at ExprKind::Path This PR solves three problems: - #50940: ICE on casting unsized tuple struct constructors - Unsized tuple struct constructors were callable in presence of `unsized_locals`. - https://github.com/rust-lang/rust/issues/48055#issuecomment-437178966: we cannot relax `Sized` bounds on stable functions because of fn ptr casting These are caused by lack of `Sized`ness checks for arguments/retvals at **reference sites of `FnDef` items** (not call sites of the functions). Therefore we can basically add more `Sized` obligations on typeck. However, adding `Sized` obligations arbitrarily breaks type inference; to prevent that I added a new method `require_type_is_sized_deferred` which doesn't interfere usual type inference.
2018-11-25Rollup merge of #56024 - oli-obk:const_fn_collect_inner, r=michaelwoeristerPietro Albini-3/+30
Don't auto-inline const functions fixes #53451
2018-11-25resolve: Fix some more asserts in import validationVadim Petrochenkov-25/+61
2018-11-25resolve: Fix bad span arithmetics in import conflict diagnosticsVadim Petrochenkov-3/+20
2018-11-25resolve: Prohibit relative paths in visibilities on 2018 editionVadim Petrochenkov-0/+29
2018-11-25Stabilize the int_to_from_bytes featureSimon Sapin-2/+2
Fixes #52963
2018-11-25Auto merge of #55921 - scalexm:placeholders, r=nikomatsakisbors-2/+3
Add placeholder types Fixes #48696 (handle universes in canonicalization of type inference vars), and fixes #55098.
2018-11-25Auto merge of #55959 - matthewjasper:remove-end-region, r=nikomatsakisbors-1116/+21
Cleanup from lexical MIR borrowck removal Lexical MIR borrowck was removed months ago now, and `EndRegion`s are no longer used for MIRI verification. * Remove `rustc::mir::StatementKind::EndRegion` and the `-Zemit_end_regions` flag * Use `RegionVid` instead of `Region` in BorrowSet * Rewrite drop generation to create fewer goto terminators. r? @nikomatsakis
2018-11-24Suggest correct enum variant on typoEsteban Küber-6/+40
2018-11-24Try to work around #53332 in `src/test/run-pass/rustc-rust-log.rs`scalexm-0/+1
2018-11-24Add test for source files featureGuillaume Gomez-0/+15
2018-11-24Clean up array/slice of primitive validationOliver Scherer-0/+16
2018-11-24Remove stderr file, because the test passes nowOliver Scherer-11/+0
2018-11-24Reintroduce zst-slice reading `read_bytes` method on `Memory`Oliver Scherer-1/+2
2018-11-24Properly test for int pointers in fat pointers to str slices of zero charsOliver Scherer-21/+12
2018-11-24Add regression test for integral pointers in zst str slice fat pointersOliver Scherer-0/+26
2018-11-24Fix NLL ui testscalexm-2/+2
2018-11-23Reword EOF in macro arm messageEsteban Küber-3/+3
2018-11-23Fix proc-macro test after internal API changeEsteban Küber-2/+2
2018-11-23Keep label on moved spans and point at macro invocation on parse errorEsteban Küber-7/+17
2018-11-23Point at macro arm when it doesn't expand to an expressionEsteban Küber-0/+3
2018-11-23Reword incorrect macro invocation primary labelEsteban Küber-37/+37
2018-11-23Add label when replacing primary DUMMY_SP in macro expansionEsteban Küber-1/+1
2018-11-23Point at end of macro arm when encountering EOFEsteban Küber-15/+16
Fix #52866
2018-11-23Merge branch 'master' into frewsxcv-dynCorey Farwell-207/+431
2018-11-24Rollup merge of #56120 - SergioBenitez:subspan, r=alexcrichtonkennytm-0/+182
Add unstable Literal::subspan(). Take 2 of #55971. Still ~wrong, but now with a comment! (and less of a surface) Unblocks #49219. r? @alexcrichton
2018-11-24Rollup merge of #56097 - ogoffart:union-abi, r=eddybkennytm-0/+6
Fix invalid bitcast taking bool out of a union represented as a scalar As reported in https://github.com/rust-lang/rust/pull/54668#issuecomment-440186476