diff options
| author | David Wood <david@davidtw.co> | 2019-06-03 11:36:19 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2019-06-03 14:02:21 +0100 |
| commit | 2bb92aa02ff98e13970602e7a7f9555050f1dbe7 (patch) | |
| tree | 984f5bfa34b4e565abbe6437a8c5ad1bdeb7fe2d /src | |
| parent | 3c7e0eb5472592a8d429527858636b27efeee021 (diff) | |
| download | rust-2bb92aa02ff98e13970602e7a7f9555050f1dbe7.tar.gz rust-2bb92aa02ff98e13970602e7a7f9555050f1dbe7.zip | |
rustc: remove `ArgSource`
`ArgSource` is no longer used anywhere, so it can be removed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/hir/lowering.rs | 2 | ||||
| -rw-r--r-- | src/librustc/hir/mod.rs | 10 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/librustc/hir/lowering.rs b/src/librustc/hir/lowering.rs index ab7a8541126..14a6e93341e 100644 --- a/src/librustc/hir/lowering.rs +++ b/src/librustc/hir/lowering.rs @@ -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, } } @@ -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 { diff --git a/src/librustc/hir/mod.rs b/src/librustc/hir/mod.rs index eb338482eba..65fc56f2c48 100644 --- a/src/librustc/hir/mod.rs +++ b/src/librustc/hir/mod.rs @@ -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. |
