Skip to content

Commit 21136b8

Browse files
committed
Rename ParenthesizedArgData to ParenthesisedArgs
1 parent 95ce05c commit 21136b8

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/librustc/hir/lowering.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ impl<'a> LoweringContext<'a> {
17471747

17481748
fn lower_parenthesized_parameter_data(
17491749
&mut self,
1750-
data: &ParenthesizedArgData,
1750+
data: &ParenthesisedArgs,
17511751
) -> (hir::GenericArgs, bool) {
17521752
// Switch to `PassThrough` mode for anonymous lifetimes: this
17531753
// means that we permit things like `&Ref<T>`, where `Ref` has
@@ -1758,7 +1758,7 @@ impl<'a> LoweringContext<'a> {
17581758
AnonymousLifetimeMode::PassThrough,
17591759
|this| {
17601760
const DISALLOWED: ImplTraitContext = ImplTraitContext::Disallowed;
1761-
let &ParenthesizedArgData { ref inputs, ref output, span } = data;
1761+
let &ParenthesisedArgs { ref inputs, ref output, span } = data;
17621762
let inputs = inputs.iter().map(|ty| this.lower_ty(ty, DISALLOWED)).collect();
17631763
let mk_tup = |this: &mut Self, tys, span| {
17641764
let LoweredNodeId { node_id, hir_id } = this.next_id();

src/libsyntax/ast.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub enum GenericArgs {
146146
/// The `<'a, A,B,C>` in `foo::bar::baz::<'a, A,B,C>`
147147
AngleBracketed(AngleBracketedArgs),
148148
/// The `(A,B)` and `C` in `Foo(A,B) -> C`
149-
Parenthesized(ParenthesizedArgData),
149+
Parenthesized(ParenthesisedArgs),
150150
}
151151

152152
impl GenericArgs {
@@ -183,15 +183,15 @@ impl Into<Option<P<GenericArgs>>> for AngleBracketedArgs {
183183
}
184184
}
185185

186-
impl Into<Option<P<GenericArgs>>> for ParenthesizedArgData {
186+
impl Into<Option<P<GenericArgs>>> for ParenthesisedArgs {
187187
fn into(self) -> Option<P<GenericArgs>> {
188188
Some(P(GenericArgs::Parenthesized(self)))
189189
}
190190
}
191191

192192
/// A path like `Foo(A,B) -> C`
193193
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
194-
pub struct ParenthesizedArgData {
194+
pub struct ParenthesisedArgs {
195195
/// Overall span
196196
pub span: Span,
197197

src/libsyntax/fold.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ pub trait Folder : Sized {
193193
noop_fold_angle_bracketed_parameter_data(p, self)
194194
}
195195

196-
fn fold_parenthesized_parameter_data(&mut self, p: ParenthesizedArgData)
197-
-> ParenthesizedArgData
196+
fn fold_parenthesized_parameter_data(&mut self, p: ParenthesisedArgs)
197+
-> ParenthesisedArgs
198198
{
199199
noop_fold_parenthesized_parameter_data(p, self)
200200
}
@@ -483,12 +483,12 @@ pub fn noop_fold_angle_bracketed_parameter_data<T: Folder>(data: AngleBracketedA
483483
}
484484
}
485485

486-
pub fn noop_fold_parenthesized_parameter_data<T: Folder>(data: ParenthesizedArgData,
486+
pub fn noop_fold_parenthesized_parameter_data<T: Folder>(data: ParenthesisedArgs,
487487
fld: &mut T)
488-
-> ParenthesizedArgData
488+
-> ParenthesisedArgs
489489
{
490-
let ParenthesizedArgData { inputs, output, span } = data;
491-
ParenthesizedArgData {
490+
let ParenthesisedArgs { inputs, output, span } = data;
491+
ParenthesisedArgs {
492492
inputs: inputs.move_map(|ty| fld.fold_ty(ty)),
493493
output: output.map(|ty| fld.fold_ty(ty)),
494494
span: fld.new_span(span)

src/libsyntax/parse/parser.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
use rustc_target::spec::abi::{self, Abi};
12-
use ast::{AngleBracketedArgs, ParenthesizedArgData, AttrStyle, BareFnTy};
12+
use ast::{AngleBracketedArgs, ParenthesisedArgs, AttrStyle, BareFnTy};
1313
use ast::{GenericBound, TraitBoundModifier};
1414
use ast::Unsafety;
1515
use ast::{Mod, AnonConst, Arg, Arm, Attribute, BindingMode, TraitItemKind};
@@ -1988,7 +1988,7 @@ impl<'a> Parser<'a> {
19881988
None
19891989
};
19901990
let span = lo.to(self.prev_span);
1991-
ParenthesizedArgData { inputs, output, span }.into()
1991+
ParenthesisedArgs { inputs, output, span }.into()
19921992
};
19931993

19941994
PathSegment { ident, args }

0 commit comments

Comments
 (0)