Skip to content

t! macro can be replaced by '?' operator #60580

Closed

Description

@frewsxcv

This file defines a t! macro, but it seems like we can remove that macro and just use the new ? unary operator instead.

macro_rules! t {
($e:expr) => (match $e {
Ok(e) => e,
Err(e) => return e,
})
}

There might be other files with a t! macro defined.

Activity

  1. added
    E-easy
    C-cleanup
    on May 6, 2019
  2. added
    T-libs-api
    on May 6, 2019
  3. mati865 commented on May 10, 2019

    @mati865
    Member

    #37939 probably should be fixed first

  4. added a commit that references this issue on May 14, 2019
    af6ace6
  5. added 4 commits that reference this issue on May 21, 2019
    073e264
    0650084
    ea01af4
    d69ef04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupE-easyT-libs-api

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions