Skip to content

Commit

Permalink
Merge pull request #371 from dtolnay/coreprovider
Browse files Browse the repository at this point in the history
Drop Provider API support in pre-1.81 nightlies
  • Loading branch information
dtolnay authored Nov 6, 2024
2 parents bf3d6f3 + 2e99c51 commit d14adfb
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 d14adfb

Please sign in to comment.