[Module] Remove DataDescription's writable field.

It was redundant, as data object declarations also have a writable
field, so just use that, avoiding the need for users to declare the
same thing twice.

Fixes #456.
This commit is contained in:
Dan Gohman
2018-08-16 18:31:05 -07:00
parent 30d09cf6b0
commit 77eb38c41f
6 changed files with 16 additions and 35 deletions

View File

@@ -193,11 +193,11 @@ impl Backend for FaerieBackend {
fn define_data(
&mut self,
name: &str,
_writable: bool,
data_ctx: &DataContext,
namespace: &ModuleNamespace<Self>,
) -> ModuleResult<FaerieCompiledData> {
let &DataDescription {
writable: _writable,
ref init,
ref function_decls,
ref data_decls,