]> git.lizzy.rs Git - rust.git/commit
Forbid static methods in object safe traits
authorNick Cameron <ncameron@mozilla.com>
Tue, 30 Dec 2014 05:30:53 +0000 (18:30 +1300)
committerNick Cameron <ncameron@mozilla.com>
Tue, 30 Dec 2014 06:05:48 +0000 (19:05 +1300)
commitcd31e6ff3987a1e0f94c64f31d6068c459126667
treee3cdeb5e4b714d039435f968fea322b3a874113e
parentfea5aa656ff4349f4d3e1fea1447d26986762ae1
Forbid static methods in object safe traits

Closes #19949 and rust-lang/rfcs#428

[breaking change]

If you have traits used with objects with static methods, you'll need to move
the static methods to a different trait.
src/librustc_typeck/check/vtable.rs