Skip to content

Commit 2bb92aa

Browse files
committed
rustc: remove ArgSource
`ArgSource` is no longer used anywhere, so it can be removed.
1 parent 3c7e0eb commit 2bb92aa

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/librustc/hir/lowering.rs

-2
Original file line numberDiff line numberDiff line change
@@ -2285,7 +2285,6 @@ impl<'a> LoweringContext<'a> {
22852285
hir::Arg {
22862286
hir_id: self.lower_node_id(arg.id),
22872287
pat: self.lower_pat(&arg.pat),
2288-
source: hir::ArgSource::Normal,
22892288
}
22902289
}
22912290

@@ -3091,7 +3090,6 @@ impl<'a> LoweringContext<'a> {
30913090
let new_argument = hir::Arg {
30923091
hir_id: argument.hir_id,
30933092
pat: new_argument_pat,
3094-
source: hir::ArgSource::AsyncFn
30953093
};
30963094

30973095
if is_simple_argument {

src/librustc/hir/mod.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1929,16 +1929,6 @@ pub struct InlineAsm {
19291929
pub struct Arg {
19301930
pub pat: P<Pat>,
19311931
pub hir_id: HirId,
1932-
pub source: ArgSource,
1933-
}
1934-
1935-
/// Represents the source of an argument in a function header.
1936-
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, HashStable)]
1937-
pub enum ArgSource {
1938-
/// Argument as specified by the user.
1939-
Normal,
1940-
/// Generated argument from `async fn` lowering.
1941-
AsyncFn,
19421932
}
19431933

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

0 commit comments

Comments
 (0)