Closed
Description
In the past the way to tell the compiler that a struct wasn't copyable was to stick an empty drop {}
block at the end of it. This was hacky and non-obvious, but at least it was concise. But with the Drop trait this now expands to impl Foo : Drop { fn finalize(&self) {} }
, which is rather unfortunate. A #[noncopyable]
attribute that expanded to the above would be clearer and less verbose.