Skip to content

Consistent no_prelude attribute #80427

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

Closed
wants to merge 12 commits into from
Closed
Prev Previous commit
Next Next commit
Update tests to use no_prelude
  • Loading branch information
Nemo157 authored and Skgland committed Jan 17, 2021
commit 2eb8049b5fc16b149d501efdde53005ea12981b3
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
// for `ByRef`. The right answer was to consider the result ambiguous
// until more type information was available.

#![feature(lang_items)]
#![no_implicit_prelude]
#![feature(no_prelude, lang_items)]
#![no_prelude]

use std::marker::Sized;
use std::option::Option::{None, Some, self};
Expand Down
3 changes: 2 additions & 1 deletion src/test/ui/associated-types/associated-types-issue-20346.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Test that we reliably check the value of the associated type.

#![crate_type = "lib"]
#![no_implicit_prelude]
#![feature(no_prelude)]
#![no_prelude]

use std::option::Option::{self, None, Some};
use std::vec::Vec;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
// for `ByRef`. The right answer was to consider the result ambiguous
// until more type information was available.

#![feature(lang_items)]
#![no_implicit_prelude]
#![feature(no_prelude, lang_items)]
#![no_prelude]

use std::marker::Sized;
use std::option::Option::{None, Some, self};
Expand Down