Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
e836a2f
implement continue_ok and break_ok for ControlFlow
jogru0 Apr 24, 2025
b981b84
moved simple test to coretests, introduced more fleshed out doctests …
jogru0 Apr 26, 2025
6dbac3f
add nvptx_target_feature
jedbrown Feb 27, 2025
35a485d
target-feature: enable rust target features implied by target-cpu
jedbrown May 22, 2025
4653b7a
Stabilize const `TypeId::of`
oli-obk Jul 18, 2025
288a565
Upgrade semicolon_in_expressions_from_macros from warn to deny
joshtriplett Jul 23, 2025
ef608f1
Introduce `target_spec_enum` macro to avoid duplication
Noratrieb Jul 26, 2025
987a49b
bootstrap: extract `cc` query into a new function
mati865 Jul 29, 2025
9cfe5f6
bootstrap: split runtime DLL part out of `make_win_dist`
mati865 Jul 29, 2025
ec40ee4
Add documentation for unstable_feature_bound
tiif Jul 30, 2025
712c28e
Remove space
tiif Jul 30, 2025
b3f369d
Address some rustc inconsistency issues
zeroomega Jul 17, 2025
1dfa421
Add --print target-spec-json-schema
Noratrieb Jul 26, 2025
1eb9b13
Change visibility of Args new function
chotchki Aug 2, 2025
74e85a2
removed gate
Kivooeo Aug 3, 2025
23e6be2
Port #[macro_export] to the new attribute parsing infrastructure
Periodic1911 Jul 12, 2025
f6ce4ac
Anonymize binders in tail call sig
compiler-errors Aug 2, 2025
c7ea022
Enforce tail call type is related to body return type in borrowck
compiler-errors Aug 4, 2025
904e2af
Port `#[coroutine]` to the new attribute system
scrabsha Aug 1, 2025
b4f404b
Fix wrong font being used for tooltips `i` icons
GuillaumeGomez Aug 4, 2025
2260749
Add GUI regression test for tooltips `i` icons
GuillaumeGomez Aug 4, 2025
91e606b
Tweak auto trait errors
estebank Feb 28, 2025
a573fd9
Don't actually pass BB to check_call_dest
compiler-errors Aug 4, 2025
d2e3ea9
windows-gnullvm: include `libunwind.dll` in dist
mati865 Jul 29, 2025
81081f4
compiletest: add hint for when a ui test produces no errors
lolbinarycat Aug 4, 2025
7196d8c
Rehome tests/ui/issues/ tests [3/?]
Oneirical Jul 13, 2025
868bdde
Preserve the .debug_gdb_scripts section
sebastianpoeplau Aug 1, 2025
33cb419
Mark all deprecation lints in name resolution as deny-by-default and …
petrochenkov Jul 14, 2025
3e764d0
Add regression tests for seemingly fixed issues
ShoyuVanilla Aug 4, 2025
b4d923c
Embed GDB pretty printers in rlibs and dylibs
sebastianpoeplau Aug 1, 2025
5e15bae
Rollup merge of #137831 - estebank:auto-trait-err, r=compiler-errors
Zalathar Aug 6, 2025
04a83eb
Rollup merge of #138689 - jedbrown:jed/nvptx-target-feature, r=ZuseZ4
Zalathar Aug 6, 2025
1960acf
Rollup merge of #140267 - jogru0:control_flow, r=dtolnay
Zalathar Aug 6, 2025
419f09c
Rollup merge of #143679 - sebastianpoeplau:preserve-debug-gdb-scripts…
Zalathar Aug 6, 2025
90d5b23
Rollup merge of #143857 - Periodic1911:macro-export, r=jdonszelmann
Zalathar Aug 6, 2025
1a8b5bd
Rollup merge of #143929 - petrochenkov:depresolve, r=lcnr
Zalathar Aug 6, 2025
4c5b436
Rollup merge of #144133 - oli-obk:stabilize-const-type-id, r=lcnr
Zalathar Aug 6, 2025
2fc30c8
Rollup merge of #144369 - joshtriplett:mbe-expr-semi-deny-by-default,…
Zalathar Aug 6, 2025
ddc9954
Rollup merge of #144473 - zeroomega:rustc_inconsistency, r=Mark-Simul…
Zalathar Aug 6, 2025
9cf60d5
Rollup merge of #144498 - Noratrieb:rustc-json-schema, r=jieyouxu
Zalathar Aug 6, 2025
216c285
Rollup merge of #144552 - Oneirical:uncountable-integer-3, r=jieyouxu
Zalathar Aug 6, 2025
8ca7b19
Rollup merge of #144659 - mati865:gnullvm-vendor-libunwind, r=Kobzol
Zalathar Aug 6, 2025
df402fe
Rollup merge of #144676 - tiif:dev_guide_unstable_bound, r=BoxyUwU
Zalathar Aug 6, 2025
d95f02b
Rollup merge of #144794 - scrabsha:push-noqrrttovmwy, r=jdonszelmann
Zalathar Aug 6, 2025
80800d3
Rollup merge of #144835 - compiler-errors:tail-call-sig-binder, r=Waf…
Zalathar Aug 6, 2025
79459e2
Rollup merge of #144836 - chotchki:patch-1, r=tgross35
Zalathar Aug 6, 2025
4b58fad
Rollup merge of #144861 - Kivooeo:payload-as-str-stabilization, r=Chr…
Zalathar Aug 6, 2025
98a44f3
Rollup merge of #144910 - ShoyuVanilla:add-regression-tests, r=fee1-dead
Zalathar Aug 6, 2025
ed10104
Rollup merge of #144913 - GuillaumeGomez:fix-wrong-i-icon, r=fmease
Zalathar Aug 6, 2025
097664f
Rollup merge of #144917 - compiler-errors:tail-call-linked-lifetimes,…
Zalathar Aug 6, 2025
c89b0b4
Rollup merge of #144924 - lolbinarycat:compiletest-pass-directives-hi…
Zalathar Aug 6, 2025
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
Prev Previous commit
Next Next commit
Rehome tests/ui/issues/ tests [3/?]
  • Loading branch information
Oneirical committed Aug 4, 2025
commit 7196d8cd661b875401126a81641d2effc40b3d85
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// https://github.com/rust-lang/rust/issues/5754
//@ build-pass
#![allow(dead_code)]
#![allow(improper_ctypes)]


struct TwoDoubles {
r: f64,
i: f64
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/8898
//@ run-pass

fn assert_repr_eq<T: std::fmt::Debug>(obj : T, expected : String) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/43483
//@ check-pass
#![allow(dead_code)]
#![allow(unused_variables)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/21946
trait Foo {
type A;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0275]: overflow evaluating the requirement `<FooStruct as Foo>::A == _`
--> $DIR/issue-21946.rs:8:14
--> $DIR/recursive-associated-type-overflow-21946.rs:9:14
|
LL | type A = <FooStruct as Foo>::A;
| ^^^^^^^^^^^^^^^^^^^^^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/7061
//@ dont-require-annotations: NOTE

struct BarStruct;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> $DIR/issue-7061.rs:6:46
--> $DIR/mismatched-pointer-type-in-self-7061.rs:7:46
|
LL | fn foo(&'a mut self) -> Box<BarStruct> { self }
| -------------- ^^^^ expected `Box<BarStruct>`, found `&mut BarStruct`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/13665
//@ run-pass

fn foo<'r>() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/21600
fn call_it<F>(f: F) where F: Fn() { f(); }

struct A;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
--> $DIR/issue-21600.rs:14:20
--> $DIR/aliasability-violation-with-closure-21600.rs:15:20
|
LL | fn call_it<F>(f: F) where F: Fn() { f(); }
| - change this to accept `FnMut` instead of `Fn`
Expand All @@ -11,7 +11,7 @@ LL | call_it(|| x.gen_mut());
| expects `Fn` instead of `FnMut`

error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
--> $DIR/issue-21600.rs:14:17
--> $DIR/aliasability-violation-with-closure-21600.rs:15:17
|
LL | fn call_it<F>(f: F) where F: Fn() { f(); }
| - change this to accept `FnMut` instead of `Fn`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/32086
struct S(u8);
const C: S = S(10);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0532]: expected tuple struct or tuple variant, found constant `C`
--> $DIR/issue-32086.rs:5:9
--> $DIR/const-pattern-rewrite-error-32086.rs:6:9
|
LL | struct S(u8);
| ------------- similarly named tuple struct `S` defined here
Expand All @@ -8,7 +8,7 @@ LL | let C(a) = S(11);
| ^ help: a tuple struct with a similar name exists: `S`

error[E0532]: expected tuple struct or tuple variant, found constant `C`
--> $DIR/issue-32086.rs:6:9
--> $DIR/const-pattern-rewrite-error-32086.rs:7:9
|
LL | struct S(u8);
| ------------- similarly named tuple struct `S` defined here
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// https://github.com/rust-lang/rust/issues/5521
//@ run-pass
#![allow(dead_code)]
//@ aux-build:issue-5521.rs
//@ aux-build:aux-5521.rs



extern crate issue_5521 as foo;
extern crate aux_5521 as foo;

fn bar(a: foo::map) {
if false {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/46332
// Original Levenshtein distance for both of this is 1. We improved accuracy with
// additional case insensitive comparison.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0422]: cannot find struct, variant or union type `TyUInt` in this scope
--> $DIR/issue-46332.rs:9:5
--> $DIR/typo-suggestion-improvement-46332.rs:10:5
|
LL | struct TyUint {}
| ------------- similarly named struct `TyUint` defined here
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/6892
//@ run-pass
#![allow(dead_code)]
// Ensures that destructors are run for expressions of the form "let _ = e;"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/16151
//@ run-pass

// FIXME(static_mut_refs): Do not allow `static_mut_refs` lint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/20939
trait Foo {}

impl<'a> Foo for dyn Foo + 'a {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0371]: the object type `(dyn Foo + 'a)` automatically implements the trait `Foo`
--> $DIR/issue-20939.rs:3:1
--> $DIR/dyn-compatible-trait-implementation-20939.rs:4:1
|
LL | impl<'a> Foo for dyn Foo + 'a {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Foo + 'a)` automatically implements trait `Foo`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/36075
//@ check-pass
#![allow(dead_code)]
trait DeclarationParser {
Expand Down
11 changes: 0 additions & 11 deletions tests/ui/issues/issue-9188.rs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/23966
fn main() {
"".chars().fold(|_, _| (), ());
//~^ ERROR E0277
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0277]: expected a `FnMut(_, char)` closure, found `()`
--> $DIR/issue-23966.rs:2:32
--> $DIR/fold-iterator-error-23966.rs:3:32
|
LL | "".chars().fold(|_, _| (), ());
| ---- ^^ expected an `FnMut(_, char)` closure, found `()`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/15735
//@ check-pass
#![allow(dead_code)]
struct A<'a> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/75704
// Caused an infinite loop during SimlifyCfg MIR transform previously.
//
//@ build-pass
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/19100
//@ run-rustfix

#![allow(non_snake_case)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/19100
//@ run-rustfix

#![allow(non_snake_case)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
error[E0170]: pattern binding `Bar` is named the same as one of the variants of the type `Foo`
--> $DIR/issue-19100.rs:17:1
--> $DIR/unreachable-pattern-if-variant-not-imported-19100.rs:18:1
|
LL | Bar if true
| ^^^ help: to match on the variant, qualify the path: `Foo::Bar`
|
= note: `#[deny(bindings_with_variant_name)]` on by default

error[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo`
--> $DIR/issue-19100.rs:21:1
--> $DIR/unreachable-pattern-if-variant-not-imported-19100.rs:22:1
|
LL | Baz if false
| ^^^ help: to match on the variant, qualify the path: `Foo::Baz`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/22684
mod foo {
pub struct Foo;
impl Foo {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> $DIR/issue-22684.rs:17:17
--> $DIR/trait-method-resolution-over-inherent-22684.rs:18:17
|
LL | let _: () = foo::Foo.bar();
| -- ^^^^^^^^^^^^^^ expected `()`, found `bool`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/24352
fn main() {
1.0f64 - 1.0;
1.0f64 - 1 //~ ERROR E0277
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0277]: cannot subtract `{integer}` from `f64`
--> $DIR/issue-24352.rs:3:12
--> $DIR/float-integer-subtraction-error-24352.rs:4:12
|
LL | 1.0f64 - 1
| ^ no implementation for `f64 - {integer}`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/50585
fn main() {
|y: Vec<[(); for x in 0..2 {}]>| {};
//~^ ERROR mismatched types
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> $DIR/issue-50585.rs:2:18
--> $DIR/for-loop-in-vec-type-mismatchrs-50585.rs:3:18
|
LL | |y: Vec<[(); for x in 0..2 {}]>| {};
| ^^^^^^^^^^^^^^^^ expected `usize`, found `()`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/48364
fn foo() -> bool {
b"".starts_with(stringify!(foo))
//~^ ERROR mismatched types
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> $DIR/issue-48364.rs:2:21
--> $DIR/starts-with-stringify-type-mismatch-48364.rs:3:21
|
LL | b"".starts_with(stringify!(foo))
| ----------- ^^^^^^^^^^^^^^^ expected `&[u8]`, found `&str`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/32797
//@ check-pass

pub use bar::*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/17385
struct X(isize);

enum Enum {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0382]: use of moved value: `foo`
--> $DIR/issue-17385.rs:18:5
--> $DIR/matching-partially-moved-value-17385.rs:19:5
|
LL | let foo = X(1);
| --- move occurs because `foo` has type `X`, which does not implement the `Copy` trait
Expand All @@ -9,7 +9,7 @@ LL | match foo {
| ^^^^^^^^^ value used here after move
|
note: if `X` implemented `Clone`, you could clone the value
--> $DIR/issue-17385.rs:1:1
--> $DIR/matching-partially-moved-value-17385.rs:2:1
|
LL | struct X(isize);
| ^^^^^^^^ consider implementing `Clone` for this type
Expand All @@ -18,7 +18,7 @@ LL | drop(foo);
| --- you could clone this value

error[E0382]: use of moved value: `e`
--> $DIR/issue-17385.rs:25:11
--> $DIR/matching-partially-moved-value-17385.rs:26:11
|
LL | let e = Enum::Variant2;
| - move occurs because `e` has type `Enum`, which does not implement the `Copy` trait
Expand All @@ -28,7 +28,7 @@ LL | match e {
| ^ value used here after move
|
note: if `Enum` implemented `Clone`, you could clone the value
--> $DIR/issue-17385.rs:3:1
--> $DIR/matching-partially-moved-value-17385.rs:4:1
|
LL | enum Enum {
| ^^^^^^^^^ consider implementing `Clone` for this type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/32805
//@ run-pass
fn const_mir() -> f32 { 9007199791611905.0 }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/3763
// Regression test for #3763

mod my_mod {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
error[E0616]: field `priv_field` of struct `MyStruct` is private
--> $DIR/issue-3763.rs:17:32
--> $DIR/private-field-access-violation-3763.rs:18:32
|
LL | let _woohoo = (&my_struct).priv_field;
| ^^^^^^^^^^ private field

error[E0616]: field `priv_field` of struct `MyStruct` is private
--> $DIR/issue-3763.rs:20:41
--> $DIR/private-field-access-violation-3763.rs:21:41
|
LL | let _woohoo = (Box::new(my_struct)).priv_field;
| ^^^^^^^^^^ private field

error[E0624]: method `happyfun` is private
--> $DIR/issue-3763.rs:23:18
--> $DIR/private-field-access-violation-3763.rs:24:18
|
LL | fn happyfun(&self) {}
| ------------------ private method defined here
Expand All @@ -20,7 +20,7 @@ LL | (&my_struct).happyfun();
| ^^^^^^^^ private method

error[E0624]: method `happyfun` is private
--> $DIR/issue-3763.rs:25:27
--> $DIR/private-field-access-violation-3763.rs:26:27
|
LL | fn happyfun(&self) {}
| ------------------ private method defined here
Expand All @@ -29,7 +29,7 @@ LL | (Box::new(my_struct)).happyfun();
| ^^^^^^^^ private method

error[E0616]: field `priv_field` of struct `MyStruct` is private
--> $DIR/issue-3763.rs:26:26
--> $DIR/private-field-access-violation-3763.rs:27:26
|
LL | let nope = my_struct.priv_field;
| ^^^^^^^^^^ private field
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// https://github.com/rust-lang/rust/issues/22811
fn main() { println!("{}", foobar); } //~ ERROR cannot find value `foobar` in this scope
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0425]: cannot find value `foobar` in this scope
--> $DIR/issue-2281-part1.rs:1:28
--> $DIR/cannot-find-value-in-scope-22811.rs:2:28
|
LL | fn main() { println!("{}", foobar); }
| ^^^^^^ not found in this scope
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/33293
fn main() {
match 0 {
aaa::bbb(_) => ()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `aaa`
--> $DIR/issue-33293.rs:3:9
--> $DIR/unresolved-module-error-33293.rs:4:9
|
LL | aaa::bbb(_) => ()
| ^^^ use of unresolved module or unlinked crate `aaa`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/47073
type Guilty = bool;
type FineDollars = u32;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0609]: no field `00` on type `Verdict`
--> $DIR/issue-47073-zero-padded-tuple-struct-indices.rs:8:30
--> $DIR/tuple-struct-field-naming-47073.rs:9:30
|
LL | let _condemned = justice.00;
| ^^ unknown field
Expand All @@ -11,7 +11,7 @@ LL + let _condemned = justice.0;
|

error[E0609]: no field `001` on type `Verdict`
--> $DIR/issue-47073-zero-padded-tuple-struct-indices.rs:10:31
--> $DIR/tuple-struct-field-naming-47073.rs:11:31
|
LL | let _punishment = justice.001;
| ^^^ unknown field
Expand Down
11 changes: 11 additions & 0 deletions tests/ui/symbol-names/same-symbol-name-for-inner-statics-9188.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// https://github.com/rust-lang/rust/issues/9188
//@ run-pass
//@ aux-build:aux-9188.rs

extern crate aux_9188 as lib;

pub fn main() {
let a = lib::bar();
let b = lib::foo::<isize>();
assert_eq!(*a, *b);
}
Loading
Loading