rustc: remove ArgSource
`ArgSource` is no longer used anywhere, so it can be removed.
This commit is contained in:
parent
3c7e0eb547
commit
2bb92aa02f
2 changed files with 0 additions and 12 deletions
|
@ -2285,7 +2285,6 @@ impl<'a> LoweringContext<'a> {
|
||||||
hir::Arg {
|
hir::Arg {
|
||||||
hir_id: self.lower_node_id(arg.id),
|
hir_id: self.lower_node_id(arg.id),
|
||||||
pat: self.lower_pat(&arg.pat),
|
pat: self.lower_pat(&arg.pat),
|
||||||
source: hir::ArgSource::Normal,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3091,7 +3090,6 @@ impl<'a> LoweringContext<'a> {
|
||||||
let new_argument = hir::Arg {
|
let new_argument = hir::Arg {
|
||||||
hir_id: argument.hir_id,
|
hir_id: argument.hir_id,
|
||||||
pat: new_argument_pat,
|
pat: new_argument_pat,
|
||||||
source: hir::ArgSource::AsyncFn
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if is_simple_argument {
|
if is_simple_argument {
|
||||||
|
|
|
@ -1929,16 +1929,6 @@ pub struct InlineAsm {
|
||||||
pub struct Arg {
|
pub struct Arg {
|
||||||
pub pat: P<Pat>,
|
pub pat: P<Pat>,
|
||||||
pub hir_id: HirId,
|
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.
|
/// Represents the header (not the body) of a function declaration.
|
||||||
|
|
Loading…
Reference in a new issue