mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Fix generic-derived-type.rs and generic-obj-with-derived-type.rs.
This commit is contained in:
parent
8217ce6228
commit
1833fa1df2
@ -1068,7 +1068,7 @@ let process_crate (cx:ctxt) (crate:Ast.crate) : unit =
|
||||
TYSPEC_dictionary names
|
||||
|
||||
| Ast.COMP_named (Ast.COMP_idx i) ->
|
||||
let init j = if i + 1 == j then tv else ref TYSPEC_all in
|
||||
let init j = if i = j then tv else ref TYSPEC_all in
|
||||
TYSPEC_tuple (Array.init (i + 1) init)
|
||||
|
||||
| Ast.COMP_atom atom ->
|
||||
|
Loading…
Reference in New Issue
Block a user