-
Notifications
You must be signed in to change notification settings - Fork 430
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
Custom alloc
, using stable Rust compilers, and more
#402
Commits on Jun 30, 2021
-
This brings the `alloc` crate in-tree. The code comes from Rust 1.54.0-beta.1, i.e. commit `bf62f4de3`. Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 405c9a1 - Browse repository at this point
Copy the full SHA 405c9a1View commit details -
rust: alloc: remove
BTreeMap
andBTreeSet
Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 33f31ce - Browse repository at this point
Copy the full SHA 33f31ceView commit details -
rust: alloc: remove
BinaryHeap
Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4b9f221 - Browse repository at this point
Copy the full SHA 4b9f221View commit details -
Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 37d9455 - Browse repository at this point
Copy the full SHA 37d9455View commit details -
rust: alloc: remote
LinkedList
Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 771912e - Browse repository at this point
Copy the full SHA 771912eView commit details -
rust: alloc: remove
task
moduleSigned-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2a4f8f9 - Browse repository at this point
Copy the full SHA 2a4f8f9View commit details
Commits on Jul 1, 2021
-
rust: alloc: remove parts of
vec
Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 45dde9f - Browse repository at this point
Copy the full SHA 45dde9fView commit details -
rust: alloc: remove
tests.rs
filesSigned-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e7ac457 - Browse repository at this point
Copy the full SHA e7ac457View commit details -
rust: alloc: add SPDX License Identifiers
Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for db747ba - Browse repository at this point
Copy the full SHA db747baView commit details -
rust: macros: hide docs for
module!
public statics/fnsSo that we do not trigger `missing_docs`. Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 085cf66 - Browse repository at this point
Copy the full SHA 085cf66View commit details -
rust: kernel: add docs for macro stub
So that we can enable `-Wmissing_docs` globally. Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 26a4431 - Browse repository at this point
Copy the full SHA 26a4431View commit details -
rust: kernel: clean beta Clippy
needless_borrow
warningsThe warning is now in the `style` group. Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for edd7ad5 - Browse repository at this point
Copy the full SHA edd7ad5View commit details -
rust: macros: clean beta Clippy
needless_borrow
warningsThe warning is now in the `style` group. Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e415c34 - Browse repository at this point
Copy the full SHA e415c34View commit details -
rust: compile in bootstrapping mode
Since we are going to use stable releases [*], we need to enable the bootstrapping mode to use the unstable features. [*] For the moment, it is a beta due to a fix we need for LLVM 12, but the same logic applies. Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1f1b619 - Browse repository at this point
Copy the full SHA 1f1b619View commit details -
rust: compile
alloc
from the in-tree sourcesIncludes: - Cross-building a new sysroot with our custom `alloc` in order to support `alloc` tests. - Documentation generation for in-tree `alloc`. - Split `RUSTDOC` command in two for clarity, since now we have to also handle `sysroot` differently. - Proper handling of both silent and verbose mode for tests and `cargo`. - Deny missing docs globally `alloc`. - Allow broken intra docs for `alloc`. - Do not format `rust/alloc` nor `rust/test`, including handling the case where `srctree` is a prent folder. - `make clean` now cleans `rust/doc` and `rust/test`. - Move allocs out of the second expansion section since it is in-tree now. - Other small cleanups. I want to clean this up further and factor a few things, but let's move ahead. Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 38a10b4 - Browse repository at this point
Copy the full SHA 38a10b4View commit details -
rust: alloc: disable several
new()
s,pin()
s,default()
s, etc.They are infallible, and could not be actually used because they will trigger an error when monomorphized, but it is better to just remove them. Suggested-by: Gary Guo <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b4a8689 - Browse repository at this point
Copy the full SHA b4a8689View commit details -
rust: alloc: fix unused import
from_fn
warningSigned-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for af999c4 - Browse repository at this point
Copy the full SHA af999c4View commit details -
rust: alloc: add some
try_*
methods we needIn preparation for enabling `no_global_oom_handling` for `alloc`, we need to add some new methods. They are all marked as: #[stable(feature = "kernel", since = "1.0.0")] for easy identification. Signed-off-by: Miguel Ojeda <[email protected]>
3Configuration menu - View commit details
-
Copy full SHA for 487d757 - Browse repository at this point
Copy the full SHA 487d757View commit details -
rust: kernel: use the new
try_*
methodsIn preparation for enabling `no_global_oom_handling` for `alloc`, we need to stop using methods that will disappear when enabling the configuration option. Instead, we use the new methods we just added. Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3fd100b - Browse repository at this point
Copy the full SHA 3fd100bView commit details
Commits on Jul 2, 2021
-
android: binder: use the new
try_*
methodsIn preparation for enabling `no_global_oom_handling` for `alloc`, we need to stop using methods that will disappear when enabling the configuration option. Instead, we use the new methods we just added. Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 90f1659 - Browse repository at this point
Copy the full SHA 90f1659View commit details -
rust: alloc: enable
no_global_oom_handling
Now both `alloc` and users are prepared to be compiled with `no_global_oom_handling`. Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 622b593 - Browse repository at this point
Copy the full SHA 622b593View commit details -
rustfmt: do not use unstable features
Sadly, `rustfmt` does not respect `RUSTC_BOOTSTRAP=1` yet, so we will have to avoid them for the moment. Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 023ccfc - Browse repository at this point
Copy the full SHA 023ccfcView commit details -
scripts: update
rust-analyzer
for localalloc
Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b4d81aa - Browse repository at this point
Copy the full SHA b4d81aaView commit details -
docs: rust: update with new required versions
Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ceb8b67 - Browse repository at this point
Copy the full SHA ceb8b67View commit details -
ci: call
rustfmtcheck
with the environmentNow it is needed since we use `objtree` etc. in the target. Signed-off-by: Miguel Ojeda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a9c675d - Browse repository at this point
Copy the full SHA a9c675dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bb8661 - Browse repository at this point
Copy the full SHA 3bb8661View commit details