Skip to content
Closed
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
b596a81
Remove erroneous error-pattern from run-pass test
tmiasko Oct 24, 2019
44cde5d
Update error annotations in tests that successfully compile
tmiasko Oct 24, 2019
1c9b979
Avoid mixing error patterns with error annotations
tmiasko Oct 24, 2019
3faef3c
Update error annotations positions
tmiasko Oct 24, 2019
8fc6f3f
Validate error patterns and error annotation in ui tests when present
tmiasko Oct 24, 2019
88bfc2f
Update error annotations in ui-fulldeps tests that successfully compile
tmiasko Oct 24, 2019
2f188f8
Avoid matching type in huge-struct test error annotation
tmiasko Oct 29, 2019
539de43
Allow specifying key "llvm-abiname" in target specification
archshift Oct 30, 2019
053a095
Reduce ammount of errors given unclosed delimiter
estebank Oct 26, 2019
454e2aa
Do not complain about missing `fn main()` in some cases
estebank Oct 29, 2019
b20d8d3
Statically link libstdc++ on windows-gnu
mati865 Oct 28, 2019
8971972
De-querify `trivial_dropck_outlives`.
nnethercote Nov 1, 2019
772b84a
Stabilize nested self receivers
cramertj Sep 9, 2019
176bf24
Rollup merge of #64325 - cramertj:nested-self-types, r=mikeyhew
tmandry Nov 1, 2019
a5efbe3
Rollup merge of #65759 - tmiasko:ui, r=petrochenkov
tmandry Nov 1, 2019
6ea6cdc
Rollup merge of #65838 - estebank:resilient-recovery, r=Centril
tmandry Nov 1, 2019
5326370
Rollup merge of #65911 - mati865:static-libstdcxx-mingw, r=alexcrichton
tmandry Nov 1, 2019
758e673
Rollup merge of #65953 - keystone-enclave:llvm_abiname, r=alexcrichton
tmandry Nov 1, 2019
c8354d5
Rollup merge of #66012 - nnethercote:dequery-trivial_dropck_outlives,…
tmandry Nov 1, 2019
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
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/lint-group-plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ignore-stage1

#![feature(plugin)]
#![plugin(lint_group_plugin_test)]
#![plugin(lint_group_plugin_test)] //~ WARNING use of deprecated attribute
#![allow(dead_code)]

fn lintme() { } //~ WARNING item is named 'lintme'
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/lint-plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// aux-build:lint-plugin-test.rs
// ignore-stage1
#![feature(plugin)]
#![plugin(lint_plugin_test)]
#![plugin(lint_plugin_test)] //~ WARNING use of deprecated attribute
#![allow(dead_code)]

fn lintme() { } //~ WARNING item is named 'lintme'
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/conditional-compilation/cfg-attr-multi-true.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ impl MustUseDeprecated { //~ warning: use of deprecated item

fn main() {
MustUseDeprecated::new(); //~ warning: use of deprecated item
//| warning: unused `MustUseDeprecated` that must be used
//~| warning: unused `MustUseDeprecated` that must be used
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
struct Foo<const NUM_BYTES: usize>(pub [u8; NUM_BYTES]);

fn main() {
let _ = Foo::<3>([1, 2, 3]); //~ ERROR type annotations needed
//~^ ERROR mismatched types
let _ = Foo::<3>([1, 2, 3]);
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ impl<const L: usize> BitLen for [u8; L] {
}

fn main() {
let foo = <[u8; 2]>::BIT_LEN;
let foo = <[u8; 2]>::BIT_LEN; //~ WARN unused variable
}
4 changes: 1 addition & 3 deletions src/test/ui/continue-after-missing-main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#![allow(dead_code)]

// error-pattern:`main` function not found in crate
#![allow(dead_code)] //~ ERROR `main` function not found in crate

struct Tableau<'a, MP> {
provider: &'a MP,
Expand Down
6 changes: 3 additions & 3 deletions src/test/ui/continue-after-missing-main.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ error[E0601]: `main` function not found in crate `continue_after_missing_main`
|
LL | / #![allow(dead_code)]
LL | |
LL | | // error-pattern:`main` function not found in crate
LL | |
LL | | struct Tableau<'a, MP> {
LL | | provider: &'a MP,
... |
LL | |
LL | | }
| |_^ consider adding a `main` function to `$DIR/continue-after-missing-main.rs`

error[E0623]: lifetime mismatch
--> $DIR/continue-after-missing-main.rs:30:56
--> $DIR/continue-after-missing-main.rs:28:56
|
LL | tableau: Tableau<'data_provider, AdaptedMatrixProvider<'original_data, MP>>,
| ------------------------------------------------------------------ these two types are declared with different lifetimes...
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/derive-uninhabited-enum-38885.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enum Void {}
#[derive(Debug)]
enum Foo {
Bar(u8),
Void(Void), //~ WARN never used
Void(Void), //~ WARN never constructed
}

fn main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
// Exception, a gated and deprecated attribute.

#![plugin_registrar] //~ WARN unused attribute
//~| WARN use of deprecated attribute

// UNGATED WHITE-LISTED BUILT-IN ATTRIBUTES

Expand Down Expand Up @@ -90,7 +91,7 @@
#![crate_id = "10"] //~ WARN use of deprecated attribute

// FIXME(#44232) we should warn that this isn't used.
#![feature(rust1)]
#![feature(rust1)] //~ WARN no longer requires an attribute to enable

#![no_start] //~ WARN use of deprecated attribute

Expand Down Expand Up @@ -215,20 +216,25 @@ mod macro_export {

#[plugin_registrar]
//~^ WARN unused attribute
//~| WARN use of deprecated attribute
mod plugin_registrar {
mod inner { #![plugin_registrar] }
//~^ WARN unused attribute
//~| WARN use of deprecated attribute

// for `fn f()` case, see gated-plugin_registrar.rs

#[plugin_registrar] struct S;
//~^ WARN unused attribute
//~| WARN use of deprecated attribute

#[plugin_registrar] type T = S;
//~^ WARN unused attribute
//~| WARN use of deprecated attribute

#[plugin_registrar] impl S { }
//~^ WARN unused attribute
//~| WARN use of deprecated attribute
}

#[main]
Expand Down
Loading