mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
cargo: Bump rustc to 1.89 (#36818)
Update Rustc to 1.89. Reviewable by commit. Leftover work: - #37330 - #38777 --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
8587536755
commit
3225d19907
126 changed files with 408 additions and 610 deletions
|
@ -378,16 +378,14 @@ namespace_id! {OffscreenCanvasId, OffscreenCanvasIndex, "OffscreenCanvas"}
|
|||
|
||||
// We provide ids just for unit testing.
|
||||
pub const TEST_NAMESPACE: PipelineNamespaceId = PipelineNamespaceId(1234);
|
||||
#[allow(unsafe_code)]
|
||||
pub const TEST_PIPELINE_INDEX: Index<PipelineIndex> =
|
||||
unsafe { Index(NonZeroU32::new_unchecked(5678), PhantomData) };
|
||||
Index(NonZeroU32::new(5678).unwrap(), PhantomData);
|
||||
pub const TEST_PIPELINE_ID: PipelineId = PipelineId {
|
||||
namespace_id: TEST_NAMESPACE,
|
||||
index: TEST_PIPELINE_INDEX,
|
||||
};
|
||||
#[allow(unsafe_code)]
|
||||
pub const TEST_BROWSING_CONTEXT_INDEX: Index<BrowsingContextIndex> =
|
||||
unsafe { Index(NonZeroU32::new_unchecked(8765), PhantomData) };
|
||||
Index(NonZeroU32::new(8765).unwrap(), PhantomData);
|
||||
pub const TEST_BROWSING_CONTEXT_ID: BrowsingContextId = BrowsingContextId {
|
||||
namespace_id: TEST_NAMESPACE,
|
||||
index: TEST_BROWSING_CONTEXT_INDEX,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue