-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
* checks/errors/rust-feature-gate.cc (FeatureGate::visit): cleaning file. * checks/errors/rust-feature-gate.h: cleaning file. * checks/errors/rust-feature.cc: cleaning file. gcc/testsuite/ChangeLog: * rust/compile/features/associated_type_defaults_activated.rs: Changed test to code that used the tested feature. * rust/compile/features/associated_type_defaults_not_activated.rs: New test. Will be failing, but dg-error not set up yet. Signed-off-by: lucas.plantrose <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
// check-pass | ||
Check failure on line 1 in gcc/testsuite/rust/compile/features/associated_type_defaults_activated.rs GitHub Actions / build-and-check-ubuntu-32bitTest failure (FAIL)
Check failure on line 1 in gcc/testsuite/rust/compile/features/associated_type_defaults_activated.rs GitHub Actions / build-alpine-32bit-and-check-alpine-32bitTest failure (FAIL)
Check failure on line 1 in gcc/testsuite/rust/compile/features/associated_type_defaults_activated.rs GitHub Actions / build-and-check-asanTest failure (FAIL)
Check failure on line 1 in gcc/testsuite/rust/compile/features/associated_type_defaults_activated.rs GitHub Actions / build-and-check-ubuntu-64bitTest failure (FAIL)
|
||
|
||
// This is another instance of the "normalizations don't work" issue with | ||
// defaulted associated types. | ||
|
||
#![feature(associated_type_defaults)] | ||
|
||
pub trait Emitter<'a> { | ||
type Ctxt: 'a; | ||
type CtxtBrw: 'a = &'a Self::Ctxt; | ||
|
||
fn get_cx(&'a self) -> Self::CtxtBrw; | ||
} | ||
|
||
fn main() {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// check-pass | ||
Check failure on line 1 in gcc/testsuite/rust/compile/features/associated_type_defaults_not_activated.rs GitHub Actions / build-and-check-ubuntu-32bitTest failure (FAIL)
Check failure on line 1 in gcc/testsuite/rust/compile/features/associated_type_defaults_not_activated.rs GitHub Actions / build-alpine-32bit-and-check-alpine-32bitTest failure (FAIL)
Check failure on line 1 in gcc/testsuite/rust/compile/features/associated_type_defaults_not_activated.rs GitHub Actions / build-and-check-asanTest failure (FAIL)
Check failure on line 1 in gcc/testsuite/rust/compile/features/associated_type_defaults_not_activated.rs GitHub Actions / build-and-check-ubuntu-64bitTest failure (FAIL)
|
||
|
||
// This is another instance of the "normalizations don't work" issue with | ||
// defaulted associated types. | ||
|
||
// #![feature(associated_type_defaults)] | ||
|
||
pub trait Emitter<'a> { | ||
type Ctxt: 'a; | ||
type CtxtBrw: 'a = &'a Self::Ctxt; | ||
|
||
fn get_cx(&'a self) -> Self::CtxtBrw; | ||
} | ||
|
||
fn main() {} |