replace //@ compile-flags: --edition with //@ edition

This commit is contained in:
Pietro Albini 2025-04-08 15:17:08 +02:00
parent 97c966bb40
commit cd371b90e2
No known key found for this signature in database
GPG key ID: CD76B35F7734769E
108 changed files with 181 additions and 135 deletions

View file

@ -1,5 +1,5 @@
//@ known-bug: #119095
//@ compile-flags: --edition=2021
//@ edition: 2021
fn any<T>() -> T {
loop {}

View file

@ -1,5 +1,6 @@
//@ known-bug: #120016
//@ compile-flags: -Zcrate-attr=feature(const_async_blocks) --edition=2021
//@ compile-flags: -Zcrate-attr=feature(const_async_blocks)
//@ edition: 2021
#![feature(type_alias_impl_trait, const_async_blocks)]

View file

@ -1,5 +1,5 @@
//@ known-bug: #127033
//@ compile-flags: --edition=2021
//@ edition: 2021
pub trait RaftLogStorage {
fn save_vote(vote: ()) -> impl std::future::Future + Send;

View file

@ -1,5 +1,6 @@
//@ known-bug: rust-lang/rust#128094
//@ compile-flags: -Zmir-enable-passes=+GVN --edition=2018
//@ compile-flags: -Zmir-enable-passes=+GVN
//@ edition: 2018
pub enum Request {
TestSome(T),

View file

@ -1,5 +1,6 @@
//@ known-bug: #132103
//@compile-flags: -Zvalidate-mir --edition=2018 -Zinline-mir=yes
//@ compile-flags: -Zvalidate-mir -Zinline-mir=yes
//@ edition: 2018
use core::future::{async_drop_in_place, Future};
use core::mem::{self};
use core::pin::pin;

View file

@ -1,6 +1,7 @@
//@ known-bug: #132430
//@compile-flags: --edition=2018 --crate-type=lib
//@ compile-flags: --crate-type=lib
//@ edition: 2018
#![feature(cmse_nonsecure_entry)]
struct Test;

View file

@ -1,5 +1,6 @@
//@ known-bug: #135128
//@ compile-flags: -Copt-level=1 --edition=2021
//@ compile-flags: -Copt-level=1
//@ edition: 2021
#![feature(trivial_bounds)]

View file

@ -1,5 +1,6 @@
//@ known-bug: #135470
//@ compile-flags: --edition=2021 -Copt-level=0
//@ compile-flags: -Copt-level=0
//@ edition: 2021
use std::future::Future;
trait Access {

View file

@ -1,5 +1,7 @@
//@ known-bug: #135646
//@ compile-flags: --edition=2024 -Zpolonius=next
//@ compile-flags: -Zpolonius=next
//@ edition: 2024
fn main() {
&{ [1, 2, 3][4] };
}

View file

@ -1,5 +1,5 @@
//@ known-bug: #135668
//@ compile-flags: --edition=2021
//@ edition: 2021
use std::future::Future;
pub async fn foo() {

View file

@ -1,5 +1,5 @@
//@ known-bug: #137467
//@ compile-flags: --edition=2021
//@ edition: 2021
enum Camera {
Normal { base_transform: i32 },
Volume { transform: i32 },

View file

@ -1,5 +1,5 @@
//@ known-bug: #137467
//@ compile-flags: --edition=2021
//@ edition: 2021
enum Camera {
Normal { base_transform: i32 },

View file

@ -1,5 +1,5 @@
//@ known-bug: #137467
//@ compile-flags: --edition=2021
//@ edition: 2021
fn meow(x: (u32, u32, u32)) {
let f = || {

View file

@ -1,5 +1,5 @@
//@ known-bug: #137916
//@ compile-flags: --edition=2021
//@ edition: 2021
use std::ptr::null;
async fn a() -> Box<dyn Send> {