parse: refactor fun ret ty & param ty
This commit is contained in:
parent
404013e015
commit
34d91709b6
12 changed files with 77 additions and 107 deletions
|
@ -254,7 +254,7 @@ pub struct ParenthesizedArgs {
|
|||
pub inputs: Vec<P<Ty>>,
|
||||
|
||||
/// `C`
|
||||
pub output: Option<P<Ty>>,
|
||||
pub output: FunctionRetTy,
|
||||
}
|
||||
|
||||
impl ParenthesizedArgs {
|
||||
|
@ -2185,7 +2185,7 @@ impl fmt::Debug for ImplPolarity {
|
|||
}
|
||||
|
||||
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
|
||||
pub enum FunctionRetTy {
|
||||
pub enum FunctionRetTy { // FIXME(Centril): Rename to `FnRetTy` and in HIR also.
|
||||
/// Returns type is not specified.
|
||||
///
|
||||
/// Functions default to `()` and closures default to inference.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue