Skip to content

Commit

Permalink
Drop Provider API support in pre-1.81 nightlies
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 6, 2024
1 parent bf3d6f3 commit 2e99c51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#![feature(error_generic_member_access)]

use core::error::{Error, Request};
use core::fmt::{self, Debug, Display};
use std::error::{Error, Request};

struct MyError(Thing);
struct Thing;
Expand Down
4 changes: 2 additions & 2 deletions impl/src/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ fn impl_struct(input: Struct) -> TokenStream {
}
};
quote! {
fn provide<'_request>(&'_request self, #request: &mut ::std::error::Request<'_request>) {
fn provide<'_request>(&'_request self, #request: &mut ::core::error::Request<'_request>) {
#body
}
}
Expand Down Expand Up @@ -377,7 +377,7 @@ fn impl_enum(input: Enum) -> TokenStream {
}
});
Some(quote! {
fn provide<'_request>(&'_request self, #request: &mut ::std::error::Request<'_request>) {
fn provide<'_request>(&'_request self, #request: &mut ::core::error::Request<'_request>) {
#[allow(deprecated)]
match self {
#(#arms)*
Expand Down

0 comments on commit 2e99c51

Please sign in to comment.