remove Context::Fallible
implementations
This commit is contained in:
parent
521702ba99
commit
8c033ed044
@ -1,9 +1,7 @@
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
/// Execution context.
|
/// Execution context.
|
||||||
pub trait Context<'a>:
|
pub trait Context<'a>: FallibleCtx<'a, T = Self::_Tm> {
|
||||||
FallibleCtx<'a, T = Self::_Tm>
|
|
||||||
{
|
|
||||||
/// Type to provide for [Monad]ic representation of computation, mostly that of resolution ([`Resolution`]).
|
/// Type to provide for [Monad]ic representation of computation, mostly that of resolution ([`Resolution`]).
|
||||||
type _Tm: Monad<'a>;
|
type _Tm: Monad<'a>;
|
||||||
|
|
||||||
|
@ -75,8 +75,6 @@ impl<'a> FallibleCtx<'a> for TestContextPlain {
|
|||||||
impl<'a> Context<'a> for TestContextPlain {
|
impl<'a> Context<'a> for TestContextPlain {
|
||||||
type _Tm = Self::T;
|
type _Tm = Self::T;
|
||||||
|
|
||||||
type Fallible = instances::result::ResultFailAny;
|
|
||||||
|
|
||||||
type D = NoDiagnostic;
|
type D = NoDiagnostic;
|
||||||
|
|
||||||
type LookupError = TestLookupError<'a>;
|
type LookupError = TestLookupError<'a>;
|
||||||
|
@ -18,8 +18,6 @@ impl<'a> FallibleCtx<'a> for TestContextCounted {
|
|||||||
impl<'a> Context<'a> for TestContextCounted {
|
impl<'a> Context<'a> for TestContextCounted {
|
||||||
type _Tm = Self::T;
|
type _Tm = Self::T;
|
||||||
|
|
||||||
type Fallible = instances::result::ResultFailOver<Self::T>;
|
|
||||||
|
|
||||||
type D = NoDiagnostic;
|
type D = NoDiagnostic;
|
||||||
|
|
||||||
type LookupError = TestLookupError<'a>;
|
type LookupError = TestLookupError<'a>;
|
||||||
|
@ -17,8 +17,6 @@ impl<'a> FallibleCtx<'a> for TestContextTraced {
|
|||||||
impl<'a> Context<'a> for TestContextTraced {
|
impl<'a> Context<'a> for TestContextTraced {
|
||||||
type _Tm = Self::T;
|
type _Tm = Self::T;
|
||||||
|
|
||||||
type Fallible = instances::result::ResultFailOver<Self::T>;
|
|
||||||
|
|
||||||
type D = TracedDiagnostic;
|
type D = TracedDiagnostic;
|
||||||
|
|
||||||
type LookupError = TestLookupError<'a>;
|
type LookupError = TestLookupError<'a>;
|
||||||
|
Loading…
Reference in New Issue
Block a user