librustc: Remove all uses of static
from functions. rs=destatic
This commit is contained in:
parent
1616ffd0c2
commit
4634f7edae
79 changed files with 281 additions and 286 deletions
|
@ -32,7 +32,7 @@ impl<S:std::serialize::Encoder> Encodable<S> for Node {
|
|||
}
|
||||
|
||||
impl<D:Decoder> Decodable for node_id {
|
||||
static fn decode(d: &D) -> Node {
|
||||
fn decode(d: &D) -> Node {
|
||||
do d.read_struct("Node", 1) {
|
||||
Node {
|
||||
id: d.read_field(~"x", 0, || decode(d))
|
||||
|
@ -66,7 +66,7 @@ would yield functions like:
|
|||
D: Decoder,
|
||||
T: Decodable<D>
|
||||
> spanned<T>: Decodable<D> {
|
||||
static fn decode(d: &D) -> spanned<T> {
|
||||
fn decode(d: &D) -> spanned<T> {
|
||||
do d.read_rec {
|
||||
{
|
||||
node: d.read_field(~"node", 0, || decode(d)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue