mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
bless batch
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
//! Regression test for <https://github.com/rust-lang/rust/issues/16922>.
|
||||
//@ run-pass
|
||||
|
||||
use std::any::Any;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//! Auxiliary crate for <https://github.com/rust-lang/rust/issues/17662>.
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub trait Foo<'a, T> {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//! Regression test for <https://github.com/rust-lang/rust/issues/17662>.
|
||||
//@ run-pass
|
||||
//@ aux-build:issue-17662.rs
|
||||
//@ aux-build:dyn-trait-lifetime-infer-metadata.rs
|
||||
|
||||
|
||||
extern crate issue_17662 as i;
|
||||
extern crate dyn_trait_lifetime_infer_metadata as i;
|
||||
|
||||
use std::marker;
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//! Regression test for <https://github.com/rust-lang/rust/issues/17337>.
|
||||
#![feature(staged_api)]
|
||||
#![deny(deprecated)]
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
error: use of deprecated method `Foo::foo`: text
|
||||
--> $DIR/issue-17337.rs:16:6
|
||||
--> $DIR/deprecated-unstable-method-in-staged-api.rs:17:6
|
||||
|
|
||||
LL | .foo();
|
||||
| ^^^
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/issue-17337.rs:2:9
|
||||
--> $DIR/deprecated-unstable-method-in-staged-api.rs:3:9
|
||||
|
|
||||
LL | #![deny(deprecated)]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//! Regression test for <https://github.com/rust-lang/rust/issues/17216>.
|
||||
//@ run-pass
|
||||
#![allow(unused_variables)]
|
||||
struct Leak<'a> {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! Regression test for <https://github.com/rust-lang/rust/issues/17551>.
|
||||
|
||||
use std::marker;
|
||||
|
||||
struct B<T>(marker::PhantomData<T>);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error[E0282]: type annotations needed for `B<_>`
|
||||
--> $DIR/issue-17551.rs:6:9
|
||||
--> $DIR/unconstrained-type-in-closure.rs:8:9
|
||||
|
|
||||
LL | let foo = B(marker::PhantomData);
|
||||
| ^^^ ------------------- type must be known at this point
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//! Regression test for <https://github.com/rust-lang/rust/issues/17121>.
|
||||
//@ check-pass
|
||||
#![allow(dead_code)]
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! Regression test for <https://github.com/rust-lang/rust/issues/17800>.
|
||||
|
||||
enum MyOption<T> {
|
||||
MySome(T),
|
||||
MyNone,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error[E0769]: tuple variant `MyOption::MySome` written as struct variant
|
||||
--> $DIR/issue-17800.rs:8:9
|
||||
--> $DIR/tuple-variant-as-struct-variant.rs:10:9
|
||||
|
|
||||
LL | MyOption::MySome { x: 42 } => (),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//! Regression test for <https://github.com/rust-lang/rust/issues/17954>.
|
||||
#![feature(thread_local)]
|
||||
|
||||
#[thread_local]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error[E0712]: thread-local variable borrowed past end of function
|
||||
--> $DIR/issue-17954.rs:7:13
|
||||
--> $DIR/thread-local-borrow-past-function-end.rs:8:13
|
||||
|
|
||||
LL | let a = &FOO;
|
||||
| ^^^^ thread-local variables cannot be borrowed beyond the end of the function
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//! Regression test for <https://github.com/rust-lang/rust/issues/17904>.
|
||||
//@ check-pass
|
||||
#![allow(dead_code)]
|
||||
// Test that we can parse where clauses on various forms of tuple
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//! Regression test for <https://github.com/rust-lang/rust/issues/17904>.
|
||||
// Test that we can parse a unit struct with a where clause, even if
|
||||
// it leads to an error later on since `T` is unused.
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error[E0392]: type parameter `T` is never used
|
||||
--> $DIR/issue-17904-2.rs:4:12
|
||||
--> $DIR/where-clause-on-unit-struct.rs:5:12
|
||||
|
|
||||
LL | struct Foo<T> where T: Copy;
|
||||
| ^ unused type parameter
|
||||
|
||||
Reference in New Issue
Block a user