Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dtolnay/anyhow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.66
Choose a base ref
...
head repository: dtolnay/anyhow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.0.68
Choose a head ref
  • 17 commits
  • 9 files changed
  • 1 contributor

Commits on Oct 20, 2022

  1. Remove 2 frames of backtrace noise on Option's Context impl

    Repro:
    
        use anyhow::Context;
    
        fn main() -> anyhow::Result<()> {
            let result = None::<()>;
            result.context("...")
        }
    
    Before:
    
        0: anyhow::context::<impl anyhow::Context<T,core::convert::Infallible> for core::option::Option<T>>::context::{{closure}}
                  at /git/anyhow/src/context.rs:95:57
        1: core::option::Option<T>::ok_or_else
                  at /rustc/4b8f4319954ff2642690b9e5cbe4af352d095bf6/library/core/src/option.rs:1083:25
        2: anyhow::context::<impl anyhow::Context<T,core::convert::Infallible> for core::option::Option<T>>::context
                  at /git/anyhow/src/context.rs:95:9
        3: testing::main
                  at ./src/main.rs:5:5
    
    After:
    
        0: anyhow::context::<impl anyhow::Context<T,core::convert::Infallible> for core::option::Option<T>>::context
                  at /git/anyhow/src/context.rs:99:54
        1: testing::main
                  at ./src/main.rs:5:5
    dtolnay committed Oct 20, 2022

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    a8649ac View commit details
  2. Merge pull request #280 from dtolnay/contextbacktrace

    Remove 2 frames of backtrace noise on Option's Context impl
    dtolnay authored Oct 20, 2022
    Copy the full SHA
    47e902a View commit details
  3. Raise required compiler to rust 1.39

    This is required for attributes on function parameters, which I hope to
    use for #[track_caller] / Location support:
    
        unsafe fn construct<E>(
            error: E,
            vtable: &'static ErrorVTable,
            backtrace: Option<Backtrace>,
            #[cfg(track_caller)] location: &'static Location<'static>,
        ) -> Self
        where
            E: StdError + Send + Sync + 'static;
    dtolnay committed Oct 20, 2022
    Copy the full SHA
    cccc785 View commit details
  4. Copy the full SHA
    3d2b6a3 View commit details
  5. Copy the full SHA
    0b42fed View commit details

Commits on Oct 21, 2022

  1. Merge pull request #281 from dtolnay/redundantprovide

    Remove redundant Backtrace provide_ref from ContextError
    dtolnay authored Oct 21, 2022
    Copy the full SHA
    6874b52 View commit details
  2. Copy the full SHA
    fd34155 View commit details

Commits on Nov 11, 2022

  1. Copy the full SHA
    451651b View commit details

Commits on Nov 16, 2022

  1. Copy the full SHA
    8d1c734 View commit details

Commits on Nov 23, 2022

  1. Fix renamed let_underscore_drop lint

        warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop`
         --> tests/test_ensure.rs:8:5
          |
        8 |     clippy::let_underscore_drop,
          |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop`
          |
          = note: `#[warn(renamed_and_removed_lints)]` on by default
    dtolnay committed Nov 23, 2022
    Copy the full SHA
    60e8800 View commit details

Commits on Nov 26, 2022

  1. Time out workflows after 45 minutes

    GitHub's default timeout is 6 hours. Recently some of my GitHub Actions
    jobs have started randomly stalling for that long, which is inconvenient
    because it ties up a chunk of my runner quota. It apepars to be very
    rare for a job to recover after stalling. It's better to time out
    quicker and retry on a different runner.
    dtolnay committed Nov 26, 2022
    Copy the full SHA
    0bac51f View commit details

Commits on Dec 15, 2022

  1. Copy the full SHA
    acecd9b View commit details
  2. Disable backtrace CI on Rust 1.50

    The `object` crate doesn't currently work on it.
    
        $ cargo +1.50.0 check --features backtrace
        warning: unused manifest key: package.rust-version
        error: failed to parse manifest at `/home/david/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/object-0.30.0/Cargo.toml`
    
        Caused by:
          feature `resolver` is required
    
          this Cargo does not support nightly features, but if you
          switch to nightly channel you can add
          `cargo-features = ["resolver"]` to enable this feature
    dtolnay committed Dec 15, 2022
    Copy the full SHA
    0f922d7 View commit details

Commits on Dec 16, 2022

  1. Update build status badge

    dtolnay committed Dec 16, 2022
    Copy the full SHA
    613b261 View commit details

Commits on Dec 17, 2022

  1. Release 1.0.67

    dtolnay committed Dec 17, 2022
    Copy the full SHA
    1cc707b View commit details

Commits on Dec 18, 2022

  1. Opt out -Zrustdoc-scrape-examples on docs.rs

    I'd like a chance to audit all the code that rustdoc is inserting into
    the docs. Currently I am skeptical that showing anyhow's internal usages
    of APIs is a net benefit to the public documentation. I am also
    skeptical that quite so many examples are needed, and that they should
    be featured so prominently in comparison to handwritten docs. Lastly I
    wish there were a way to turn this behavior off on a more granular
    basis.
    dtolnay committed Dec 18, 2022
    Copy the full SHA
    c0a87d0 View commit details
  2. Release 1.0.68

    dtolnay committed Dec 18, 2022
    Copy the full SHA
    867763b View commit details
Loading