-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Explicitly export core and std macros #139493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
14db115
2ac3f32
6c9b632
3699f8d
25f46fb
9eaeba8
114947e
24c0ac1
87be0d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,10 @@ | |
use std::cell::RefCell; | ||
use std::num::NonZero; | ||
use std::str; | ||
use std::fmt; | ||
|
||
use super::*; | ||
// Explicit import to avoid macro namespace collision. | ||
use super::{arena, client, DecodeMut, Encode, fxhash, Mark, Marked, Reader, server, Unmark, Writer}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What collision is this? Is this something that user code is likely to encounter? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here is the error that I get when not making this change:
My reasoning is a follows, this special proc macro is built together with std which gives access to std via |
||
|
||
/// Handle for a symbol string stored within the Interner. | ||
#[derive(Copy, Clone, PartialEq, Eq, Hash)] | ||
|
Uh oh!
There was an error while loading. Please reload this page.