rustc: Handle foreign item purity correctly in resolve3

This commit is contained in:
Patrick Walton 2012-07-09 18:38:17 -07:00
parent 1bdcba3d74
commit f0fe08f1c8
1 changed files with 1 additions and 1 deletions

View File

@ -1119,7 +1119,7 @@ class Resolver {
alt foreign_item.node {
foreign_item_fn(fn_decl, type_parameters) {
let def = def_fn(local_def(foreign_item.id), impure_fn);
let def = def_fn(local_def(foreign_item.id), fn_decl.purity);
(*name_bindings).define_value(def);
do self.with_type_parameter_rib