about summary refs log tree commit diff
path: root/src/test/run-pass/binding
AgeCommit message (Collapse)AuthorLines
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-2268/+0
2019-07-27tests: Add missing run-pass annotationsVadim Petrochenkov-0/+1
2019-05-30Update ui and run-pass for ellipsis_inclusive_range_patterns lintmemoryruins-0/+6
2019-05-03Update testsChristopher Vittal-1/+0
2019-04-22Remove double trailing newlinesvarkor-1/+0
2019-03-30Fix more testsFabian Drinck-2/+0
2019-01-15Rollup merge of #56044 - matthewjasper:function-param-drop-order, r=cramertjMazdak Farrokhzad-0/+68
Drop partially bound function parameters in the expected order Given the function ```rust fn foo((_x, _): (LogDrop, LogDrop), (_, _y): (LogDrop, LogDrop)) {} ``` Prior to 1.12.0 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. While this is technically a breaking change, I can't work out how anyone could be relying on this without making their code very brittle. If this is considered to be too likely to break real world code then I can revert the change and change the test to check for the current order.
2019-01-14Auto merge of #57387 - euclio:nonstandard-style-suggestions, r=oli-obkbors-64/+0
Use structured suggestions for nonstandard style lints This PR modifies the lints in the nonstandard_style group to use structured suggestions. Note that there's a bit of tricky span calculation going on for the `crate_name` attribute. It also simplifies the code a bit: I don't think the "fallback" suggestions for these lints can actually be triggered. Fixes #48103. Fixes #52414.
2019-01-12Stabilise irrefutable if-let and while-let patternsvarkor-12/+0
This stabilises RFC 2086 (https://github.com/rust-lang/rust/issues/44495). Co-Authored-By: Sebastian Malton <sebastian@malton.name>
2019-01-08improve non_upper_case_globals diagnosticsAndy Russell-64/+0
Use a structured suggestion and tighten the span to just the identifier.
2018-12-25Remove licensesMark Rousskov-950/+0
2018-12-11Fix some misbehaving testsvarkor-0/+1
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-11-29Fix broken testsvarkor-0/+1
2018-10-09Add clarifying pattern lint comment and revert testKevin Leimkuhler-1/+2
2018-10-09Simply unused_parens check and add testsKevin Leimkuhler-1/+1
2018-09-26Add `#[allow(unused_mut)]` for various cases that arise only in ↵Felix S. Klock II-0/+1
compare-mode=nll.
2018-09-26Add `#![allow(..)]` as necessary to get re-migrated run-pass tests compiling ↵Felix S. Klock II-0/+27
with clean stderr again. Most were added mechanically.
2018-09-26Migrate `src/test/ui/run-pass/*` back to `src/test/run-pass/`.Felix S. Klock II-0/+3192
Fix #54047