]> git.lizzy.rs Git - rust.git/commitdiff
Add `// run-pass` to collection of tests.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 4 Sep 2018 10:05:53 +0000 (12:05 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 6 Sep 2018 11:29:24 +0000 (13:29 +0200)
30 files changed:
src/test/ui/run-pass/borrowck/borrowck-assign-to-subfield.rs
src/test/ui/run-pass/borrowck/borrowck-assignment-to-static-mut.rs
src/test/ui/run-pass/borrowck/borrowck-binding-mutbl.rs
src/test/ui/run-pass/borrowck/borrowck-borrow-from-expr-block.rs
src/test/ui/run-pass/borrowck/borrowck-borrow-of-mut-base-ptr-safe.rs
src/test/ui/run-pass/borrowck/borrowck-closures-two-imm.rs
src/test/ui/run-pass/borrowck/borrowck-field-sensitivity.rs
src/test/ui/run-pass/borrowck/borrowck-fixed-length-vecs.rs
src/test/ui/run-pass/borrowck/borrowck-freeze-frozen-mut.rs
src/test/ui/run-pass/borrowck/borrowck-lend-args.rs
src/test/ui/run-pass/borrowck/borrowck-macro-interaction-issue-6304.rs
src/test/ui/run-pass/borrowck/borrowck-move-by-capture-ok.rs
src/test/ui/run-pass/borrowck/borrowck-multiple-borrows-interior-boxes.rs
src/test/ui/run-pass/borrowck/borrowck-mut-uniq.rs
src/test/ui/run-pass/borrowck/borrowck-mut-vec-as-imm-slice.rs
src/test/ui/run-pass/borrowck/borrowck-pat-enum.rs
src/test/ui/run-pass/borrowck/borrowck-pat-reassign-no-binding.rs
src/test/ui/run-pass/borrowck/borrowck-rvalues-mutable.rs
src/test/ui/run-pass/borrowck/borrowck-scope-of-deref-issue-4666.rs
src/test/ui/run-pass/borrowck/borrowck-slice-pattern-element-loan.rs
src/test/ui/run-pass/borrowck/borrowck-static-item-in-fn.rs
src/test/ui/run-pass/borrowck/borrowck-trait-lifetime.rs
src/test/ui/run-pass/borrowck/borrowck-uniq-via-ref.rs
src/test/ui/run-pass/borrowck/borrowck-univariant-enum.rs
src/test/ui/run-pass/borrowck/borrowck-unsafe-static-mutable-borrows.rs
src/test/ui/run-pass/borrowck/borrowck-unused-mut-locals.rs
src/test/ui/run-pass/borrowck/borrowck-use-mut-borrow.rs
src/test/ui/run-pass/borrowck/two-phase-baseline.rs
src/test/ui/run-pass/borrowck/two-phase-bin-ops.rs
src/test/ui/run-pass/borrowck/two-phase-control-flow-split-before-activation.rs

index ee74a0544084e68d0221796e1c780c305c02e5c6..248e34bde09caa3a955d5c8361dfea0239f3a56f 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // pretty-expanded FIXME #23616
 
 pub fn main() {
index 302a7b96bc07d812385f5a99cb8cb2ecc78ca1a5..fa79ac84c865266ca82e59263b993b6c3bd9e9db 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // Test taken from #45641 (https://github.com/rust-lang/rust/issues/45641)
 
 // revisions: ast mir
index b6c2a3a61ea4fa2449db090716b3b4fe44a47ec1..86875a038daae85ba3516e1c4ce5329c4e46aa3f 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
+
 struct F { f: Vec<isize> }
 
 fn impure(_v: &[isize]) {
index 1d7230510df2baf65290a1e95189aff3e9b016f2..b85a9baf5a0a359caac3251968af4a01d29936ee 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 #![feature(box_syntax)]
 
 fn borrow<F>(x: &isize, f: F) where F: FnOnce(&isize) {
index b716a1a27a1955fe6786741df62bf4aafc07d86e..72634651d9593de40f20c0aaa004fb66a3517a3a 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // Test that freezing an `&mut` pointer while referent is
 // frozen is legal.
 //
index 5b15c8f0797fa659a2d218457586d925e1deff63..8c6d92c9962635509927885fc12e86248d0452db 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // Tests that two closures can simultaneously have immutable
 // access to the variable, whether that immutable access be used
 // for direct reads or for taking immutable ref. Also check
index a465c9cf811aa4b83241c2ba5121d257708de56a..a3d6f129f183e1585d02e89941ff306a8c786d4b 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // pretty-expanded FIXME #23616
 
 #![feature(box_syntax)]
index 0e33351894d14c0759e21c8f2d082a0ce3cb744e..baefdf657ea3627ee36969b9a854686b27ada423 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 
 pub fn main() {
     let x = [22];
index 380bd398a7cb2fe57d4419aa20c02c1380131f93..0ddb71d1d158772547eca5994eb69a81d879771c 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // Test that a `&mut` inside of an `&` is freezable.
 
 
index f1f0274c5cc4891d1d77cd6cc4e7317783d19132..4ec7e0a58983ea8205740ee28ddc05146481f9cb 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 
 // pretty-expanded FIXME #23616
 
index fb30c85e709631b02d60e45f6fa0fbdbb751681b..7395fcd71715890590278d48148e897d887fd2eb 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // Check that we do not ICE when compiling this
 // macro, which reuses the expression `$id`
 
index c3645867117d262fc31d92430fd45504a0f5e9dc..180a6ad8f87f48e7bdbd49d25a83ff23cfb11966 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 #![feature(box_syntax)]
 
 pub fn main() {
index f57a7bd7add44a7130f87211e027a96a68c26e4e..4650ce8d2c42f069c94e9b256425794612e25f94 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // Test case from #39963.
 
 #![feature(nll)]
index ec868bc5c85ef8ea26ddf782a6b04e2b876883bf..87dd1f1de537e1853dcb6cf9d64b4862dc9bf6e6 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 #![feature(box_syntax)]
 
 use std::mem::swap;
index 4699f376313ba8fab9b5ae4da1214a6769d1388a..b616cf25382183790b856ac9d5c1df36b4f37fee 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 
 
 fn want_slice(v: &[isize]) -> isize {
index 8de45e4205dfb9a7afd3db6957c8a08611870d4d..3b9c4aed03ec10c43ff0810ff4965a9f628b10a7 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // ignore-pretty issue #37199
 
 fn match_ref(v: Option<isize>) -> isize {
index e0a5db678d2f455d39a36876966a502ec62a45bf..1ce7a00d4235da74a03c8cbf4a078d7d163e74e9 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 
 pub fn main() {
     let mut x = None;
index 93cb0cb0af23aa501b6d0a2c96ad797d5b121dc9..936e5565eed6f66f21a7c3c530af7aed52b36c7e 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 
 struct Counter {
     value: usize
index 59a5fea769a6fcb19afe8b7f0af1fca7c2490f1c..dd832b9eee08cc38d48ede87987099eb97efc0f5 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // Tests that the scope of the pointer returned from `get()` is
 // limited to the deref operation itself, and does not infect the
 // block as a whole.
index 48d16102ff3c2366085a754e4eb4544bc5622e9f..e7c1699f7b4131a003540e6575311a2833c43e1e 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 //compile-flags: -Z borrowck=mir
 
 #![feature(slice_patterns)]
index d51d0b1d2e1fd50c769f6280827ddc5f3c35f512..809948d5423d693a24acfce2ce1a11c114838437 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // Regression test for issue #7740
 
 // pretty-expanded FIXME #23616
index 0bfa8f48650bb30c327c45ffe64573f6b3184ec3..cf7a976628e8df0db1d34aa853a5fbfee6f39ec4 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // This test verifies that casting from the same lifetime on a value
 // to the same lifetime on a trait succeeds. See issue #10766.
 
index 0ec87599c6391eabef316244cfcdc8bbe77a6812..f9b650e0e82808789cda98a3280a4d0329178001 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 
 // pretty-expanded FIXME #23616
 
index 2e8ddb08064726af9a7f3f3afe7ce0269d75a261..431d50a80c774506d7afdc8d3db71c790a5d77ea 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
+// run-pass
 
 use std::cell::Cell;
 
index de411d3096092c696574be0e78196b72ee17600e..aba46ad609f7693709adc15267ecdeeb20947348 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // revisions: ast mir
 //[mir]compile-flags: -Z borrowck=mir
 
index 7f1b6ed1701683d316d41f75254a09c5e7056080..15eaf83b50847dc990010c685365fb5007da4bec 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 #![feature(nll)]
 #![deny(unused_mut)]
 
index 8c94df6dbf454ee205545be4f4f83d4afa5f5d5e..10809c1bb0be6c528f8418a9f81dd49cb2319ffa 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // pretty-expanded FIXME #23616
 
 #![feature(box_syntax)]
index ca15591a10192deee48078ca565dca0c2691d391..561a5b3c1151bff069b4d8ff1cc8cc4b7f0ec958 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // compile-flags: -Z borrowck=mir -Z two-phase-borrows
 
 // This is the "goto example" for why we want two phase borrows.
index 1b2529d7875ab436a998d5e1e5c75ac983248959..ce601bc9a3c231160b7febdeb93918fb2d818206 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // revisions: lxl nll
 
 #![cfg_attr(nll, feature(nll))]
index 35a5422040a1710df57ff81d165e8a6605e168b1..6d06d0c7941be04ad64c78aa27fa8deec4c45c15 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// run-pass
 // revisions: lxl nll
 //[lxl]compile-flags: -Z borrowck=mir -Z two-phase-borrows