mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
This commit is contained in:
parent
ff8cbff810
commit
95fc29fa0d
255 changed files with 3550 additions and 3362 deletions
|
@ -89,11 +89,15 @@ pub fn create_element(name: QualName, prefix: Option<DOMString>,
|
|||
}
|
||||
|
||||
macro_rules! make(
|
||||
($ctor:ident $(, $arg:expr)*) => ({
|
||||
let obj = $ctor::new(name.local.as_slice().to_owned(), prefix, document $(, $arg)*);
|
||||
($ctor:ident) => ({
|
||||
let obj = $ctor::new(name.local.as_slice().to_owned(), prefix, document);
|
||||
ElementCast::from_temporary(obj)
|
||||
});
|
||||
($ctor:ident, $($arg:expr),+) => ({
|
||||
let obj = $ctor::new(name.local.as_slice().to_owned(), prefix, document, $($arg),+);
|
||||
ElementCast::from_temporary(obj)
|
||||
})
|
||||
)
|
||||
);
|
||||
|
||||
// This is a big match, and the IDs for inline-interned atoms are not very structured.
|
||||
// Perhaps we should build a perfect hash from those IDs instead.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue