You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lib.rs
    path of file: ./repos/swc/crates/swc_ecma_compat_es2018/src
    
    the code of the file until where you have to start completion: #![allow(clippy::vec_box)]
#![allow(clippy::boxed_local)]

use serde::Deserialize;
use swc_common::chain;
use swc_ecma_compat_common::regexp::{self, regexp};
use swc_ecma_visit::Fold;

pub use self::object_rest_spread::object_rest_spread;

mod object_rest;
pub mod object_rest_spread;
mod object_spread;

pub fn 
    
pub fn es2018(c: Config) -> impl Fold {
    chain!(
        regexp(regexp::Config {
            dot_all_regex: true,
            has_indices: false,
            lookbehind_assertion: true,
            named_capturing_groups_regex: true,
            sticky_regex: false,
            unicode_property_regex: true,
            unicode_regex: false,
            unicode_sets_regex: false,
        }),
        object_rest_spread(c.object_rest_spread)
    )
}