about summary refs log tree commit diff
path: root/src/test/ui/run-pass
AgeCommit message (Collapse)AuthorLines
2019-05-20Update tests.Alexander Regueiro-30/+0
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-07Encode `TraitAlias` as if they were `Trait`Esteban Küber-0/+7
2018-10-01add a special case for literal `'static: 'a` where-clausesAriel Ben-Yehuda-0/+33
This makes evaluation more consistent with fulfillment.
2018-09-26Migrate `src/test/ui/run-pass/*` back to `src/test/run-pass/`.Felix S. Klock II-106225/+0
Fix #54047
2018-09-22stabilize pattern_parentheses featureAlex Stokes-2/+1
2018-09-22Stabilize crate_in_paths, extern_absolute_paths and extern_prelude on all ↵Eduard-Mihai Burtescu-0/+32
editions.
2018-09-16Rollup merge of #54209 - petrochenkov:mexpr, r=pnkfelixGuillaume Gomez-51/+51
Partially revert 674a5db "Fix undesirable fallout [from macro modularization]" Partially revert https://github.com/rust-lang/rust/commit/674a5db1a50e25dd60a8ee6669edee9a366c9fab ~~Closes~~ (see pnkfelix comments below) https://github.com/rust-lang/rust/issues/53675
2018-09-15rustc_resolve: use `continue` instead of `return` to "exit" a loop iteration.Eduard-Mihai Burtescu-1/+1
2018-09-15rustc_resolve: always include core, std and meta in the extern prelude.Eduard-Mihai Burtescu-0/+24
2018-09-15rustc_resolve: don't allow `::crate_name` to bypass `extern_prelude`.Eduard-Mihai Burtescu-0/+5
2018-09-14Auto merge of #54201 - eddyb:reflexive-disambiguation, r=petrochenkovbors-0/+16
rustc_resolve: don't treat uniform_paths canaries as ambiguities unless they resolve to distinct Def's. In particular, this allows this pattern that @cramertj mentioned in https://github.com/rust-lang/rust/issues/53130#issuecomment-420848814: ```rust use log::{debug, log}; fn main() { use log::{debug, log}; debug!(...); } ``` The canaries for the inner `use log::...;`, *in the macro namespace*, see the `log` macro imported at the module scope, and the (same) `log` macro, imported in the block scope inside `main`. Previously, these two possible (macro namspace) `log` resolutions would be considered ambiguous (from a forwards-compat standpoint, where we might make imports aware of block scopes). With this PR, such a case is allowed *if and only if* all the possible resolutions refer to the same definition (more specifically, because the *same* `log` macro is being imported twice). This condition subsumes previous (weaker) checks like #54005 and the second commit of #54011. Only the last commit is the main change, the other two are cleanups. r? @petrochenkov cc @Centril @joshtriplett
2018-09-14Partially revert 674a5db "Fix undesirable fallout [from macro modularization]"Vadim Petrochenkov-51/+51
2018-09-13rustc_resolve: don't treat uniform_paths canaries as ambiguities unless they ↵Eduard-Mihai Burtescu-0/+16
resolve to distinct Def's.
2018-09-13introduce SelfCtorF001-0/+129
2018-09-12Rollup merge of #54142 - pnkfelix:fix-regression-test-for-16278, r=wesleywiserkennytm-2/+4
Recover proper regression test for issue #16278. Spawned from my note https://github.com/rust-lang/rust/pull/19955#issuecomment-420430761
2018-09-12Rollup merge of #54072 - blitzerr:master, r=Mark-Simulacrumkennytm-28/+0
Stabilization change for mod.rs This change is in response to https://github.com/rust-lang/rust/issues/53125. The patch makes the feature accepted and removes the tests that tested the non-accepted status of the feature.
2018-09-11Recover proper regression test for issue #16278.Felix S. Klock II-2/+4
2018-09-09stabilize `#[used]`Jorge Aparicio-1/+0
closes #40289
2018-09-08Stabilization change for mod.rsRusty Blitzerr-28/+0
This change is in response to https://github.com/rust-lang/rust/issues/53125. The patch makes the feature accepted and removes the tests that tested the non-accepted status of the feature.
2018-09-07rustc_resolve: only prepend CrateRoot to a non-keyword segment.Eduard-Mihai Burtescu-2/+12
2018-09-07Rollup merge of #53994 - pnkfelix:issue-53764-migrate-run-pass-dirs-to-ui, ↵kennytm-0/+7557
r=alexcrichton migrate run-pass/*/ to ui/run-pass I think this is all that remains of #53764
2018-09-07Rollup merge of #53992 - ↵kennytm-0/+1299
pnkfelix:issue-53764-migrate-run-pass-borrowck-to-ui, r=nikomatsakis migrate run-pass/borrowck to ui/run-pass Part of #53764
2018-09-06Allow illegal_floating_point_literal_pattern. These will need to be updated ↵Felix S. Klock II-0/+1
at some point. Discussion can be found on rust-lang/rust#41620.
2018-09-06Allow unions_with_drop_fields for unions with members with destructorsFelix S. Klock II-0/+5
(or generics that *might* have dtors)
2018-09-06Allow various name convention lints.Felix S. Klock II-0/+7
2018-09-06Add `// run-pass` to collection of tests.Felix S. Klock II-0/+278
2018-09-06Migrated remaining `src/test/run-pass/` subdirectories to ↵Felix S. Klock II-0/+7266
`src/test/ui/run-pass/`.
2018-09-06Allow some lints to let the ported run-pass/borrowck tests get through.Felix S. Klock II-0/+3
2018-09-06Add `// run-pass` to collection of tests.Felix S. Klock II-1/+31
2018-09-06Migrated `src/test/run-pass/borrowck` to `src/test/ui/run-pass`.Felix S. Klock II-0/+1266
Just shuffling files here; the needed updates to content come later.
2018-09-06Allow more lints, mainly overflowing_literals for cases that only arose on ↵Felix S. Klock II-0/+11
32-bit.
2018-09-06Add `#![allow(stable_features)]` to ease review.Felix S. Klock II-0/+6
That is, opting to ignore stable `#![feature(..)]`, under my theory that a reviewer would prefer as much stuff to be bucketed under "ah another `#![allow(..)]` here." as possible.
2018-09-06Add `.stderr` file for test that appears to trigger a lint that cannot be ↵Felix S. Klock II-0/+36
silenced.
2018-09-06Add `.stdout` file for test of `log_syntax!` and `trace_macros!`.Felix S. Klock II-0/+3
2018-09-06Allow uses of `#[unsafe_destructor_blind_to_params]`. Should be ported to ↵Felix S. Klock II-0/+8
`#[may_dangle]`. See rust-lang/rust#34761.
2018-09-06Allow illegal_floating_point_literal_pattern. These will need to be updated ↵Felix S. Klock II-0/+5
at some point. Discussion can be found on rust-lang/rust#41620.
2018-09-06Update line numbers to reflect added lines at beginning of tests.Felix S. Klock II-7/+7
2018-09-06Add `.stderr` files for shadowed labels where the point of the test is to ↵Felix S. Klock II-0/+610
test such cases.
2018-09-06Alpha-rename label to avoid the shadowing lint (which cannot be silenced).Felix S. Klock II-4/+4
2018-09-06Add `.stderr` file for test where there are conflicting repr hints.Felix S. Klock II-0/+16
See rust-lang/rust#53857.
2018-09-06Add `#![allow(improper_ctypes)]` to extern-pass-empty.rs; note this test ↵Felix S. Klock II-0/+2
seems bogus. that is, I suspect it should be retired because it is testing behavior (namely a `#[repr(C)] struct Empty;`) that, if I understand correctly, is undefined. See also rust-lang/rust#53859.
2018-09-06Add `#[allow(improper_ctypes)]` to slew of cases that need e.g. `repr(C)`.Felix S. Klock II-0/+24
See also rust-lang/rust#53858.
2018-09-06Add `#![allow(..)]` for a slew of lints of migrated run-pass tests, to ↵Felix S. Klock II-20/+516
silence stderr output.
2018-09-06Remove references to a collection of unknown lints.Felix S. Klock II-28/+0
2018-09-06Move a bunch of auxiliary support files into `ui/run-pass/**/auxiliary`.Felix S. Klock II-0/+4253
2018-09-06Add `// run-pass` annotations to all the tests under `ui/run-pass/`.Felix S. Klock II-15/+2466
(I may have accidentally added it to some auxilliary crates as well; my emacs-macro-based methodology was pretty crude.)
2018-09-06Migrated slew of run-pass tests to various subdirectories of `ui/run-pass/`.Felix S. Klock II-0/+89288