Skip to content

tests/ui: A New Order [7/N] #142171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Checks error handling for undefined custom attributes.
#![feature(stmt_expr_attributes)]

#[foo] //~ ERROR cannot find attribute `foo` in this scope
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
error: cannot find attribute `foo` in this scope
--> $DIR/custom_attribute.rs:3:3
--> $DIR/attr_unknown_custom_attr.rs:5:3
|
LL | #[foo]
| ^^^

error: cannot find attribute `foo` in this scope
--> $DIR/custom_attribute.rs:5:7
--> $DIR/attr_unknown_custom_attr.rs:7:7
|
LL | #[foo]
| ^^^

error: cannot find attribute `foo` in this scope
--> $DIR/custom_attribute.rs:7:7
--> $DIR/attr_unknown_custom_attr.rs:9:7
|
LL | #[foo]
| ^^^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Checks error handling for mismatched `--crate-name` and `#![crate_name]` values.
//@ compile-flags: --crate-name foo

#![crate_name = "bar"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: `--crate-name` and `#[crate_name]` are required to match, but `foo` != `bar`
--> $DIR/crate-name-mismatch.rs:3:1
--> $DIR/crate-name-mismatch.rs:5:1
|
LL | #![crate_name = "bar"]
| ^^^^^^^^^^^^^^^^^^^^^^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Unresolved multi-segment attributes are not treated as custom.
//! Unresolved multi-segment attributes are not treated as custom.
mod existent {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0433]: failed to resolve: could not find `nonexistent` in `existent`
--> $DIR/custom-attribute-multisegment.rs:5:13
--> $DIR/custom_attr_multisegment_error.rs:5:13
|
LL | #[existent::nonexistent]
| ^^^^^^^^^^^ could not find `nonexistent` in `existent`
Expand Down
7 changes: 0 additions & 7 deletions tests/ui/default-method-parsing.rs

This file was deleted.

2 changes: 2 additions & 0 deletions tests/ui/deep.rs → tests/ui/runtime/deep_recursion.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Checks deep recursion behavior.
//@ run-pass
//@ ignore-emscripten apparently blows the stack

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Checks run with a custom test framework and indexed test functions.
//@ compile-flags: --test
//@ run-pass

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//@ run-pass
//! Checks basic default method functionality.
#![allow(dead_code)]
//@ run-pass

trait Foo {
fn f(&self) {
Expand All @@ -10,9 +10,7 @@ trait Foo {
fn g(&self);
}

struct A {
x: isize
}
struct A;

impl Foo for A {
fn g(&self) {
Expand All @@ -21,6 +19,6 @@ impl Foo for A {
}

pub fn main() {
let a = A { x: 1 };
let a = A;
a.f();
}
Loading