mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Build fix from jmuizelaar (on ocamlc versions that notice this bug; drat, not all do)
This commit is contained in:
parent
004240e0bc
commit
48488b0dcf
@ -7,6 +7,7 @@ Other authors:
|
||||
Andreas Gal <gal@mozilla.com>
|
||||
Brendan Eich <brendan@mozilla.org>
|
||||
Dave Herman <dherman@mozilla.com>
|
||||
Jeff Mulzelaar <jmuizelaar@mozilla.com>
|
||||
Matt Brubeck <mbrubeck@limpet.net>
|
||||
Michael Bebenita <mbebenita@mozilla.com>
|
||||
Patrick Walton <pwalton@mozilla.com>
|
||||
|
@ -41,7 +41,7 @@ let alias_analysis_visitor
|
||||
begin
|
||||
fun i slot ->
|
||||
match slot.Ast.slot_mode with
|
||||
Ast.MODE_alias _ ->
|
||||
Ast.MODE_alias ->
|
||||
alias_atom args.(i)
|
||||
| _ -> ()
|
||||
end
|
||||
|
@ -1883,8 +1883,8 @@ and slot_referent_type (abi:Abi.abi) (sl:Ast.slot) : Il.referent_ty =
|
||||
|
||||
let rty = referent_type abi (slot_ty sl) in
|
||||
match sl.Ast.slot_mode with
|
||||
| Ast.MODE_local _ -> rty
|
||||
| Ast.MODE_alias _ -> sp rty
|
||||
| Ast.MODE_local -> rty
|
||||
| Ast.MODE_alias -> sp rty
|
||||
;;
|
||||
|
||||
let task_rty (abi:Abi.abi) : Il.referent_ty =
|
||||
|
@ -2859,7 +2859,7 @@ let trans_visitor
|
||||
Ast.MODE_local ->
|
||||
cell
|
||||
|
||||
| Ast.MODE_alias _ ->
|
||||
| Ast.MODE_alias ->
|
||||
if initializing
|
||||
then cell
|
||||
else deref cell
|
||||
|
Loading…
Reference in New Issue
Block a user