Skip to content

Commit

Permalink
rustc: remove ArgSource
Browse files Browse the repository at this point in the history
`ArgSource` is no longer used anywhere, so it can be removed.
  • Loading branch information
davidtwco committed Jun 3, 2019
1 parent 3c7e0eb commit 2bb92aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/librustc/hir/lowering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2285,7 +2285,6 @@ impl<'a> LoweringContext<'a> {
hir::Arg {
hir_id: self.lower_node_id(arg.id),
pat: self.lower_pat(&arg.pat),
source: hir::ArgSource::Normal,
}
}

Expand Down Expand Up @@ -3091,7 +3090,6 @@ impl<'a> LoweringContext<'a> {
let new_argument = hir::Arg {
hir_id: argument.hir_id,
pat: new_argument_pat,
source: hir::ArgSource::AsyncFn
};

if is_simple_argument {
Expand Down
10 changes: 0 additions & 10 deletions src/librustc/hir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1929,16 +1929,6 @@ pub struct InlineAsm {
pub struct Arg {
pub pat: P<Pat>,
pub hir_id: HirId,
pub source: ArgSource,
}

/// Represents the source of an argument in a function header.
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, HashStable)]
pub enum ArgSource {
/// Argument as specified by the user.
Normal,
/// Generated argument from `async fn` lowering.
AsyncFn,
}

/// Represents the header (not the body) of a function declaration.
Expand Down

0 comments on commit 2bb92aa

Please sign in to comment.