-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Set playground-url value to default to "play.rust-lang.org" #86363
Changes from all commits
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 |
---|---|---|
|
@@ -15,5 +15,5 @@ | |
/// ``` | ||
pub fn foo() {} | ||
|
||
// @!has hidden_line/fn.foo.html invisible | ||
// @!has hidden_line/fn.foo.html '// invisible' | ||
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. Since it now appears in the url, I needed to make the check a bit bigger. |
||
// @matches - //pre "#\[derive\(PartialEq\)\] // Bar" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
// @has issue_41783/struct.Foo.html | ||
// @!has - 'space' | ||
// @!has - 'comment' | ||
// @!has - ':space' | ||
// @!has - ':comment' | ||
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. Same as above. |
||
// @has - '# <span class="ident">single' | ||
// @has - '## <span class="ident">double</span>' | ||
// @has - '### <span class="ident">triple</span>' | ||
// @has - '<span class="attribute">#[<span class="ident">outer</span>]</span>' | ||
// @has - '<span class="attribute">#![<span class="ident">inner</span>]</span>' | ||
|
||
/// ```no_run | ||
/// # # space | ||
/// # comment | ||
/// # # :space | ||
/// # :comment | ||
/// ## single | ||
/// ### double | ||
/// #### triple | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![crate_name = "foo"] | ||
|
||
// @has foo/fn.foo.html '//a[@class="test-arrow"]/@href' 'https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Alet%20x%20%3D%2012%3B%0A%7D&edition=2015' | ||
/// ``` | ||
/// let x = 12; | ||
/// ``` | ||
pub fn foo() {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// compile-flags: --playground-url="" -Z unstable-options | ||
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. This test now ensures that we can disable it by providing an empty value to |
||
|
||
#![crate_name = "foo"] | ||
|
||
//! module docs | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows to pass an empty value if we want to disable it.