about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2018-06-16Auto merge of #51562 - SimonSapin:transparent, r=cramertjbors-35/+3
Stabilize #[repr(transparent)] Tracking issue FCP: https://github.com/rust-lang/rust/issues/43036#issuecomment-394094318 Reference PR: https://github.com/rust-lang-nursery/reference/pull/353
2018-06-16Auto merge of #51550 - eddyb:queries-not-maps, r=nikomatsakisbors-1/+1
rustc: rename ty::maps to ty::query. Should've never been `maps` but "query system/engine" didn't fully settle from the start. r? @michaelwoerister or @nikomatsakis
2018-06-16Add rustdoc-js tester should-fail optionGuillaume Gomez-0/+39
2018-06-14rustc: rename ty::maps to ty::query.Eduard-Mihai Burtescu-1/+1
2018-06-13Removed various update-reference and update-all-references scriptsChris Cesare-234/+0
2018-06-12Auto merge of #51519 - ExpHP:issue-51331-b, r=petrochenkovbors-4/+101
Fix for $crate var normalization in proc macro for externally defined macros Fixes #51331, a bug that has existed in at least *some* form for a year and a half. The PR includes the addition of a `fold_qpath` method to `syntax::fold::Folder`. Overriding this method is useful for folds that modify paths in a way that invalidates indices (insertion or removal of a component), as it provides the opportunity to update `qself.position` in `<A as B>::C` paths. I added it because the bugfix is messy without it. (unfortunately, grepping around the codebase, I did not see anything else that could use it.)
2018-06-12add tests for $crate in QSelf pathsMichael Lamparski-4/+101
2018-06-12Stabilize #[repr(transparent)]Simon Sapin-35/+3
Tracking issue FCP: https://github.com/rust-lang/rust/issues/43036#issuecomment-394094318 Reference PR: https://github.com/rust-lang-nursery/reference/pull/353
2018-06-11Remove some '#[feature]' attributes for stabilized featuresSimon Sapin-20/+3
2018-06-11Stabilize the #[global_allocator] attributeSimon Sapin-25/+0
Fixes https://github.com/rust-lang/rust/issues/27389
2018-06-11Stablize the alloc module without changing stability of its contents.Simon Sapin-0/+7
2018-06-11Remove some unneeded castsSimon Sapin-2/+2
2018-06-11Replace `impl GlobalAlloc for Global` with a set of free functionsMike Hommey-3/+3
2018-06-11Remove alloc::Opaque and use *mut u8 as pointer type for GlobalAllocMike Hommey-10/+10
2018-06-11Auto merge of #51480 - dtolnay:lifetime, r=kennytmbors-1/+44
Enable fall through past $:lifetime matcher ```rust macro_rules! is_lifetime { ($lifetime:lifetime) => { true }; ($other:tt) => { false }; } fn main() { println!("{}", is_lifetime!('lifetime)); println!("{}", is_lifetime!(@)); } ``` Before this fix, the `is_lifetime!` invocation would fail to compile with: ``` error: expected a lifetime, found `@` --> src/main.rs:8:33 | 8 | println!("{}", is_lifetime!(@)); | ^ ``` Fixes #50903. Fixes #51477. r? @kennytm
2018-06-11Auto merge of #51467 - toidiu:ak-51409, r=nikomatsakisbors-0/+22
create separate dep-nodes for predicates_of and explicit_predicates_of Fix for https://github.com/rust-lang/rust/issues/51409 - added incremental compilation test for infer_outlives_requirements - created separate dep-node for explicit_predicates_of
2018-06-10Auto merge of #51475 - GuillaumeGomez:fix-error-codes, r=Manishearthbors-8/+8
Fix error codes
2018-06-10Enable fall through past $:lifetime matcherDavid Tolnay-1/+44
2018-06-10Auto merge of #50205 - topecongiro:include-parens-to-type-parameter, ↵bors-10/+10
r=petrochenkov Include parens to type parameter The motivation of this PR is to fix a bug in rustfmt (cc https://github.com/rust-lang-nursery/rustfmt/issues/2630).
2018-06-10Fix error codesGuillaume Gomez-8/+8
2018-06-10Auto merge of #51196 - Havvy:remove-keywords, r=petrochenkovbors-3/+12
Implement RFC 2421, 'Keyword unreservations (pure, sizeof, alignof, offsetof) On my local machine I was getting failures in `test/ui-fulldeps`, but I was also getting them again after reverting the change, so I'm hoping that this works. I removed the test because that's what the other PR that unreserved a keyword did and I feel that it doesn't make sense/keep value to keep a test for something removed years ago.
2018-06-10create separate dep-nodes for predicates_of and explicit_predicates_oftoidiu-0/+22
2018-06-10Auto merge of #51320 - tmccombs:step-by, r=SimonSapinbors-3/+0
Stabilize Iterator::step_by Fixes #27741
2018-06-10Update testsSeiichi Uchida-6/+6
2018-06-10Include parens to type parameterSeiichi Uchida-6/+6
2018-06-09Test keyword unreservationsHavvy-0/+22
2018-06-09Implement RFC 2421, 'Keyword unreservations (pure, sizeof, alignof, offsetof)'Havvy-13/+0
2018-06-09Auto merge of #51068 - Crazycolorz5:pluseqsplitting, r=petrochenkovbors-0/+20
parser: Split `+=` into `+` and `=` where `+` is explicitly requested (such as generics) Added functions in tokens to check whether a token leads with `+`. Used them when parsing to allow for token splitting of `+=` into `+` and `=`. Fixes https://github.com/rust-lang/rust/issues/47856
2018-06-09Auto merge of #51400 - xfix:patch-6, r=kennytmbors-16/+19
Increase number of usages of `u8` in weird expressions u8 test
2018-06-09Auto merge of #51042 - matthewjasper:reenable-trivial-bounds, r=nikomatsakisbors-40/+240
Re-enable trivial bounds cc #50825 Remove implementations from global bounds in winnowing when there is ambiguity. This results in the reverse of #24066 happening sometimes. I'm not sure if anything can be done about that though. cc #48214 r? @nikomatsakis
2018-06-08Auto merge of #51448 - Mark-Simulacrum:rollup, r=Mark-Simulacrumbors-263/+704
Rollup of 13 pull requests Successful merges: - #50143 (Add deprecation lint for duplicated `macro_export`s) - #51099 (Fix Issue 38777) - #51276 (Dedup auto traits in trait objects.) - #51298 (Stabilize unit tests with non-`()` return type) - #51360 (Suggest parentheses when a struct literal needs them) - #51391 (Use spans pointing at the inside of a rustdoc attribute) - #51394 (Use scope tree depths to speed up `nearest_common_ancestor`.) - #51396 (Make the size of Option<NonZero*> a documented guarantee.) - #51401 (Warn on `repr` without hints) - #51412 (Avoid useless Vec clones in pending_obligations().) - #51427 (compiletest: autoremove duplicate .nll.* files (#51204)) - #51436 (Do not require stage 2 compiler for rustdoc) - #51437 (rustbuild: generate full list of dependencies for metadata) Failed merges:
2018-06-08Rollup merge of #51401 - estebank:warn-repr, r=cramertjMark Rousskov-202/+318
Warn on `repr` without hints Fix #51376.
2018-06-08Rollup merge of #51391 - estebank:docspan, r=GuillaumeGomezMark Rousskov-27/+131
Use spans pointing at the inside of a rustdoc attribute Follow up to #51111. Point to the link in a rustdoc attribute where intralink resolution failed, instead of the full rustdoc attribute's span. r? @GuillaumeGomez cc @kennytm
2018-06-08Rollup merge of #51360 - estebank:braces-around-literal-structs, r=nikomatsakisMark Rousskov-2/+60
Suggest parentheses when a struct literal needs them When writing a struct literal in an expression that expects a block to be started afterwards (like an `if` statement), do not suggest using the same struct literal: ``` did you mean `S { /* fields * /}`? ``` Instead, suggest surrounding the expression with parentheses: ``` did you mean `(S { /* fields * /})`? ``` Fix #47360, #50090. Leaving #42982 open to come back to this problem with a better solution.
2018-06-08Rollup merge of #51298 - Dylan-DPC:stabilise/termination-test, r=nikomatsakisMark Rousskov-28/+2
Stabilize unit tests with non-`()` return type References #48854
2018-06-08Rollup merge of #51276 - Havvy:dyn-trait-send-send, r=nikomatsakisMark Rousskov-0/+94
Dedup auto traits in trait objects. Fixes #47010 Note that the test file `run-pass/trait-object-auto-dedup.rs` passes before and after this change. It's the `ui` test that changed from compiling to not compiling. Which does make this a breaking change, but I cannot imagine anybody actually being broken by it.
2018-06-08Rollup merge of #51099 - Crazycolorz5:expectedcloseparen, r=estebankMark Rousskov-12/+54
Fix Issue 38777 When looking through for a closing bracket in the loop condition, adds them to expecteds. https://github.com/rust-lang/rust/issues/38777
2018-06-08Rollup merge of #50143 - petrochenkov:mexuniq, r=nikomatsakisMark Rousskov-2/+55
Add deprecation lint for duplicated `macro_export`s cc https://github.com/rust-lang/rust/issues/35896#issuecomment-381370556
2018-06-08Built, corrected, and run tests. Added expected stderr files.Crazycolorz5-1/+43
2018-06-08Auto merge of #51247 - ↵bors-38/+68
pnkfelix:issue-51190-report-type-moved-from-behind-borrow, r=nikomatsakis NLL: report type moved from behind borrow of array/slice When NLL has illegal move due to borrowed content in an array or slice, provide feedback about why the move wasn't a copy. Drive by: While comparing the resulting `.nll.stderr` files to their old borrowck variants, I noticed that the test for borrowck-vec-pattern-nesting.rs was not signaling some errors under NLL due to the test assuming lexical lifetimes. So I fixed that too. Fix #51190
2018-06-08Normalize associated types when checking global boundsMatthew Jasper-0/+40
2018-06-08Fix a typoMatthew Jasper-2/+2
2018-06-08 Test that object bounds are preferred over global where clause boundsMatthew Jasper-0/+28
2018-06-08Add tests for associated types and inconsistent boundsMatthew Jasper-0/+166
2018-06-08Reenable trivial boundsMatthew Jasper-38/+4
Removes extra global bounds at the winnowing stage rather than when normalizing the param_env. This avoids breaking inference when there is a global bound.
2018-06-08Rollup merge of #51417 - pietroalbini:revert-49719, r=nikomatsakiskennytm-50/+89
Revert #49719 This also needs to be backported into beta. Fixes #51416. r? @nikomatsakis
2018-06-08Rollup merge of #51389 - ollie27:rustdoc_cross_macro_src_stab, r=QuietMisdreavuskennytm-0/+49
rustdoc: Fix missing stability and src links for inlined external macros Fixes #38951 r? @QuietMisdreavus
2018-06-08Rollup merge of #51368 - varkor:panic_implementation-closures, r=eddybkennytm-0/+21
Fix the use of closures within #[panic_implementation] Fixes #51365.
2018-06-08Rollup merge of #51283 - ↵kennytm-0/+84
kennytm:fix-51279-preempt-the-warning-song-and-dance, r=nikomatsakis Deny #[cfg] and #[cfg_attr] on generic parameters. Fix #51279. Attributes on generic parameters are not expanded, meaning `#[cfg]`, `#[cfg_attr]` and attribute proc macros are entirely ignored on them. This PR makes using the first two attributes an error, because if they are correctly expanded will affect the AST and change code behavior. I'm beta-nominating this, because generic parameter attributes are stabilizing in 1.27, and if we did not reserve their usage, we may never be able to repurpose the meaning of these attributes in the Rust 2015 edition.
2018-06-08Rollup merge of #51186 - pnkfelix:remove-unneccessary-nll-stderr-files, ↵kennytm-45/+0
r=oli-obk Remove two redundant .nll.stderr files It turns out that the diagnostics generated from NLL for these cases are now exactly the same as that produced by AST borrowck, and thus we can just fallback on those `.stderr` files that already exist for AST-borrowck. Bravo! (it is a good idea to remove these files, because it slightly reduces the amount of time humans will spend reviewing the .nll.stderr fileset...) ((it *might* be worthwhile trying to change the `compiletest` code to even issue a warning when two such files have equivalent contents... but I am not going so far as to try to implement that right now...))